bot: add missing mock func to fix tests

skiesel forgot.
This commit is contained in:
cws 2017-07-24 07:37:10 -04:00
parent 1bf6997144
commit d5bc4d8f45
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ func (mb *MockBot) EventReceived(msg msg.Message) {}
func (mb *MockBot) Filter(msg msg.Message, s string) string { return "" } func (mb *MockBot) Filter(msg msg.Message, s string) string { return "" }
func (mb *MockBot) LastMessage(ch string) (msg.Message, error) { return msg.Message{}, nil } func (mb *MockBot) LastMessage(ch string) (msg.Message, error) { return msg.Message{}, nil }
func (mb *MockBot) CheckAdmin(nick string) bool { return false } func (mb *MockBot) CheckAdmin(nick string) bool { return false }
func (mb *MockBot) React(string, string, msg.Message) {}
func NewMockBot() *MockBot { func NewMockBot() *MockBot {
db, err := sqlx.Open("sqlite3_custom", ":memory:") db, err := sqlx.Open("sqlite3_custom", ":memory:")