mirror of https://github.com/velour/catbase.git
Removing idle code because it crashes
This commit is contained in:
parent
0144e7ee6a
commit
1a0747c3fa
|
@ -72,10 +72,10 @@ func (p *DowntimePlugin) Message(message bot.Message) bool {
|
|||
ret = true
|
||||
} else if parts[0] == "idle" && len(parts) == 1 {
|
||||
// Find all idle times, report them.
|
||||
var entries idleEntries
|
||||
p.Coll.Find(nil).All(entries)
|
||||
sort.Sort(entries)
|
||||
fmt.Printf("%+v\n", entries)
|
||||
// var entries idleEntries
|
||||
// p.Coll.Find(nil).All(entries)
|
||||
// sort.Sort(entries)
|
||||
// fmt.Printf("%+v\n", entries)
|
||||
}
|
||||
|
||||
p.record(strings.ToLower(message.User.Name))
|
||||
|
|
Loading…
Reference in New Issue