mirror of https://github.com/velour/catbase.git
fact: add back global check
This commit is contained in:
parent
b4c0f36260
commit
07f5749f1a
|
@ -476,6 +476,9 @@ func (p *Factoid) changeFact(message msg.Message) bool {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error getting facts: ", trigger, err)
|
log.Println("Error getting facts: ", trigger, err)
|
||||||
}
|
}
|
||||||
|
if !userexp[len(userexp)-1] == 'g' {
|
||||||
|
result = result[:1]
|
||||||
|
}
|
||||||
// make the changes
|
// make the changes
|
||||||
msg := fmt.Sprintf("Changing %d facts.", len(result))
|
msg := fmt.Sprintf("Changing %d facts.", len(result))
|
||||||
p.Bot.SendMessage(message.Channel, msg)
|
p.Bot.SendMessage(message.Channel, msg)
|
||||||
|
|
Loading…
Reference in New Issue