mirror of https://github.com/velour/catbase.git
Fixed the replacer to ignore "!" on secondary factoid searches.
This commit is contained in:
parent
c0e41f6940
commit
172567004a
|
@ -159,7 +159,7 @@ func (p *FactoidPlugin) trigger(message bot.Message) bool {
|
|||
return true
|
||||
}
|
||||
r := strings.NewReplacer("'", "", "\"", "", ",", "", ".", "", ":", "",
|
||||
"?", "")
|
||||
"?", "", "!", "")
|
||||
if ok, fact := p.findTrigger(r.Replace(message.Body)); ok {
|
||||
p.sayFact(message, *fact)
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue