Add missing methods (React and GetEmojiList) to mockbot

This commit is contained in:
skkiesel 2017-07-25 06:15:44 -04:00
parent c6e1769f0f
commit 1b09106356
1 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,11 @@ func (mb *MockBot) MsgReceived(msg msg.Message) {}
func (mb *MockBot) EventReceived(msg msg.Message) {}
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) CheckAdmin(nick string) bool { return false }
func (mb *MockBot) CheckAdmin(nick string) bool { return false }
func (mb *MockBot) React(channel, reaction string, message msg.Message) {}
func (mb *MockBot) GetEmojiList() map[string]string { return make(map[string]string) }
func NewMockBot() *MockBot {
db, err := sqlx.Open("sqlite3_custom", ":memory:")