event system
This commit is contained in:
11
bot/event.go
Normal file
11
bot/event.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user