Fixed the punctuation remover

This commit is contained in:
Chris Sexton 2012-12-30 11:26:26 -05:00
parent 96f4ebc833
commit c0e41f6940
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ 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