Added ball tattoo

This commit is contained in:
Chris Sexton 2013-02-05 15:11:03 -05:00
parent 535f1152eb
commit a779dc4720
1 changed files with 15 additions and 8 deletions

View File

@ -19,17 +19,17 @@ var goatse []string = []string{
"x \\ \\/ _--~~ ~--__| \\ | x", "x \\ \\/ _--~~ ~--__| \\ | x",
"* \\ \\_-~ ~-_\\ | *", "* \\ \\_-~ ~-_\\ | *",
"g \\_ \\ _.--------.______\\| | g", "g \\_ \\ _.--------.______\\| | g",
"o \\ \\______// _ ___ _ (_(__> \\ | o", "o \\ \\______// _ ___ _ \\_\\__> \\ | o",
"a \\ . C ___) ______ (_(____> | / a", "a \\ . C ___) ______ \\_\\____> | / a",
"t /\\ | C ____)/ \\ (_____> |_/ t", "t /\\ | C ____)/ \\ \\_____> |_/ t",
"s / /\\| C_____) | (___> / \\ s", "s / /\\| C_____) | \\___> / \\ s",
"e | ( _C_____)\\______/ // _/ / \\ e", "e | \\ _C_____)\\______/ // _/ / \\ e",
"x | \\ |__ \\\\_________// (__/ | x", "x | \\ |__ \\\\_________// \\__/ | x",
"* | \\ \\____) `---- --' | *", "* | \\ \\____) `---- --' | *",
"g | \\_ ___\\ /_ _/ | g", "g | \\_ ___\\ /_ _/ | g",
"o | / | | \\ | o", "o | / | | \\ | o",
"a | | / \\ \\ | a", "a | | / \\ \\ | a",
"t | / / | | \\ |t", "t | / / |{nick}| \\ |t",
"s | / / \\__/\\___/ | |s", "s | / / \\__/\\___/ | |s",
"e | / | | | |e", "e | / | | | |e",
"x | | | | | |x", "x | | | | | |x",
@ -54,8 +54,15 @@ func (p *TalkerPlugin) Message(message bot.Message) bool {
return false return false
} }
if message.Body == "goatse" { if strings.HasPrefix(message.Body, "goatse") {
nick := message.User.Name
if parts := strings.Split(message.Body, " "); len(parts) > 1 {
nick = parts[1]
}
for _, line := range goatse { for _, line := range goatse {
nick = fmt.Sprintf("%9.9s", nick)
line = strings.Replace(line, "{nick}", nick, 1)
p.Bot.SendMessage(channel, line) p.Bot.SendMessage(channel, line)
} }
return true return true