event system

This commit is contained in:
JunDao
2019-05-02 00:39:43 +08:00
parent 45820c10f5
commit 1f0bdf19a3
4 changed files with 84 additions and 22 deletions

11
bot/event.go Normal file
View File

@ -0,0 +1,11 @@
package bot
import (
"github.com/Tnze/go-mc/chat"
)
type eventBroker struct {
GameStart func() error
ChatMsg func(msg chat.Message) error
Disconnect func(reason chat.Message) error
}