1
0
mirror of https://github.com/velour/catbase.git synced 2025-04-05 04:31:41 +00:00

bot: make plugins run async

This commit is contained in:
cws 2017-06-28 09:18:41 -04:00
parent f30955cdef
commit a602917008

@ -29,12 +29,14 @@ func (b *bot) MsgReceived(msg msg.Message) {
goto RET
}
go (func() {
for _, name := range b.pluginOrdering {
p := b.plugins[name]
if p.Message(msg) {
break
}
}
})()
RET:
b.logIn <- msg