mirror of https://github.com/velour/catbase.git
mistyped the ' key
This commit is contained in:
parent
522a1f1c35
commit
396992f838
|
@ -158,7 +158,7 @@ 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