kunt

golang IRC bot
git clone git://git.2f30.org/kunt
Log | Files | Refs | LICENSE

commit 6d9c0caadffc98691d574848d8aa74d8bf16d6e6
parent 190effea17be56cb9c638c81c52c56f76d0d65c4
Author: sin <sin@2f30.org>
Date:   Wed, 15 May 2013 19:31:22 +0100

vi sux replies

Diffstat:
Msrc/kunt/kunt.go | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/kunt/kunt.go b/src/kunt/kunt.go @@ -77,6 +77,21 @@ func cmdKunt(msg irc.Message) { "vv dawg", } } + if strings.Index(msg.Args[1], "vi ") != -1 || + strings.Index(msg.Args[1], " vi") != -1 || + strings.Index(msg.Args[1], "vim ") != -1 || + strings.Index(msg.Args[1], " vim") != -1 { + replies = []string{ + "emax ftw", + "emacs ftw!", + "EMACS!", + "ed is the standard editor.", + "emax or die", + "mg or die", + "vi sux", + "vim sux ass", + } + } idx := rand.Intn(len(replies)) kunt.ircCtx.Privmsg(msg.Args[0], string(replies[idx])) }