1
0
mirror of https://github.com/velour/catbase.git synced 2025-04-05 04:31:41 +00:00

mistyped the ' key

This commit is contained in:
Chris Sexton 2012-11-11 11:18:13 -05:00
parent 522a1f1c35
commit 396992f838

@ -158,7 +158,7 @@ func (p *FactoidPlugin) trigger(message bot.Message) bool {
p.sayFact(message, *fact) p.sayFact(message, *fact)
return true return true
} }
r := strings.NewReplacer(",", "", "\"", "", ",", "", ".", "", ":", "") r := strings.NewReplacer("'", "", "\"", "", ",", "", ".", "", ":", "")
if ok, fact := p.findTrigger(r.Replace(message.Body)); ok { if ok, fact := p.findTrigger(r.Replace(message.Body)); ok {
p.sayFact(message, *fact) p.sayFact(message, *fact)
return true return true