mirror of https://github.com/velour/catbase.git
Removed channel specific setting in talker
This commit is contained in:
parent
84e7001165
commit
ebb76e5d9c
|
@ -51,13 +51,10 @@ func (p *TalkerPlugin) Message(message bot.Message) bool {
|
||||||
body := message.Body
|
body := message.Body
|
||||||
lowermessage := strings.ToLower(body)
|
lowermessage := strings.ToLower(body)
|
||||||
|
|
||||||
if channel != p.Bot.Config.MainChannel {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if strings.HasPrefix(lowermessage, "say") {
|
if strings.HasPrefix(lowermessage, "say") {
|
||||||
msg := strings.TrimSpace(body[3:])
|
msg := strings.TrimSpace(body[3:])
|
||||||
p.Bot.SendMessage(channel, msg)
|
p.Bot.SendMessage(channel, msg)
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(lowermessage, "goatse") {
|
if strings.HasPrefix(lowermessage, "goatse") {
|
||||||
|
|
Loading…
Reference in New Issue