From 535f1152eba5156ab642eaaeef39405adde4b7b7 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 5 Feb 2013 14:52:11 -0500 Subject: [PATCH] Added goatse response --- plugins/talker.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/plugins/talker.go b/plugins/talker.go index 71cb92c..41dc3a7 100644 --- a/plugins/talker.go +++ b/plugins/talker.go @@ -8,6 +8,34 @@ import ( "time" ) +var goatse []string = []string{ + "* g o a t s e x * g o a t s e x * g o a t s e x *", + "g g", + "o / \\ \\ / \\ o", + "a| | \\ | | a", + "t| `. | | : t", + "s` | | \\| | s", + "e \\ | / / \\\\\\ --__ \\\\ : e", + "x \\ \\/ _--~~ ~--__| \\ | x", + "* \\ \\_-~ ~-_\\ | *", + "g \\_ \\ _.--------.______\\| | g", + "o \\ \\______// _ ___ _ (_(__> \\ | o", + "a \\ . C ___) ______ (_(____> | / a", + "t /\\ | C ____)/ \\ (_____> |_/ t", + "s / /\\| C_____) | (___> / \\ s", + "e | ( _C_____)\\______/ // _/ / \\ e", + "x | \\ |__ \\\\_________// (__/ | x", + "* | \\ \\____) `---- --' | *", + "g | \\_ ___\\ /_ _/ | g", + "o | / | | \\ | o", + "a | | / \\ \\ | a", + "t | / / | | \\ |t", + "s | / / \\__/\\___/ | |s", + "e | / | | | |e", + "x | | | | | |x", + "* g o a t s e x * g o a t s e x * g o a t s e x *", +} + type TalkerPlugin struct { Bot *bot.Bot } @@ -26,6 +54,13 @@ func (p *TalkerPlugin) Message(message bot.Message) bool { return false } + if message.Body == "goatse" { + for _, line := range goatse { + p.Bot.SendMessage(channel, line) + } + return true + } + if len(message.User.Name) != 9 { msg := fmt.Sprintf("Hey %s, we really like to have 9 character nicks because we're crazy OCD and stuff.", message.User.Name)