mirror of https://github.com/velour/catbase.git
Fixed the punctuation remover
This commit is contained in:
parent
96f4ebc833
commit
c0e41f6940
|
@ -158,7 +158,8 @@ func (p *FactoidPlugin) trigger(message bot.Message) bool {
|
|||
p.sayFact(message, *fact)
|
||||
return true
|
||||
}
|
||||
r := strings.NewReplacer("'", "", "\"", "", ",", "", ".", "", ":", "")
|
||||
r := strings.NewReplacer("'", "", "\"", "", ",", "", ".", "", ":", "",
|
||||
"?", "")
|
||||
if ok, fact := p.findTrigger(r.Replace(message.Body)); ok {
|
||||
p.sayFact(message, *fact)
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue