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
|
ret = true
|
||||||
} else if parts[0] == "idle" && len(parts) == 1 {
|
} else if parts[0] == "idle" && len(parts) == 1 {
|
||||||
// Find all idle times, report them.
|
// Find all idle times, report them.
|
||||||
var entries idleEntries
|
// var entries idleEntries
|
||||||
p.Coll.Find(nil).All(entries)
|
// p.Coll.Find(nil).All(entries)
|
||||||
sort.Sort(entries)
|
// sort.Sort(entries)
|
||||||
fmt.Printf("%+v\n", entries)
|
// fmt.Printf("%+v\n", entries)
|
||||||
}
|
}
|
||||||
|
|
||||||
p.record(strings.ToLower(message.User.Name))
|
p.record(strings.ToLower(message.User.Name))
|
||||||
|
|
Loading…
Reference in New Issue