mirror of https://github.com/velour/catbase.git
Quick formatting fix for searching for factoids
This commit is contained in:
parent
63785e7102
commit
22fef34db5
|
@ -101,7 +101,6 @@ func (p *FactoidPlugin) learnFact(message bot.Message, trigger, operator, fact s
|
|||
}
|
||||
p.Coll.Insert(newfact)
|
||||
p.LastFact = &newfact
|
||||
fmt.Println(newfact.Id)
|
||||
return true
|
||||
}
|
||||
|
||||
|
@ -307,7 +306,7 @@ func (p *FactoidPlugin) changeFact(message bot.Message) bool {
|
|||
if i != 0 {
|
||||
msg = fmt.Sprintf("%s |", msg)
|
||||
}
|
||||
msg = fmt.Sprintf("%s %s %s", msg, fact.Operator, fact.Action)
|
||||
msg = fmt.Sprintf("%s <%s> %s", msg, fact.Operator, fact.Action)
|
||||
}
|
||||
if count > 4 {
|
||||
msg = fmt.Sprintf("%s | ...and %d others", msg, count)
|
||||
|
|
Loading…
Reference in New Issue