From 1b09106356a99de1432919136341d93e055edb66 Mon Sep 17 00:00:00 2001 From: skkiesel Date: Tue, 25 Jul 2017 06:15:44 -0400 Subject: [PATCH] Add missing methods (React and GetEmojiList) to mockbot --- bot/mock.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bot/mock.go b/bot/mock.go index 193c5ee..adfd08f 100644 --- a/bot/mock.go +++ b/bot/mock.go @@ -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:")