This commit is contained in:
cws 2017-01-05 09:49:27 -05:00
parent ef0afc2ee0
commit 7a3646049c
3 changed files with 3 additions and 4 deletions

View File

@ -74,7 +74,7 @@ func reminderer(p *ReminderPlugin) {
}
p.mutex.Unlock()
if reminder.from == reminder.who {
reminder.from = "you"
}

View File

@ -160,7 +160,6 @@ func (p *TwitchPlugin) checkTwitch(channel string, twitcher *Twitcher, alwaysPri
}
}
// func (p *TwitchPlugin) getTwitchStreams(channel string) bool {
// token := p.Bot.config.Twitch.Token
// if token == "" || token == "<Your Token>" {
@ -193,4 +192,4 @@ func (p *TwitchPlugin) checkTwitch(channel string, twitcher *Twitcher, alwaysPri
// }
// }
// return true
// }
// }

View File

@ -28,7 +28,7 @@ func makeMessage(payload string) msg.Message {
func makeTwitchPlugin(t *testing.T) (*TwitchPlugin, *bot.MockBot) {
mb := bot.NewMockBot()
c := New(mb)
c.config.Twitch.Users = map[string][]string{ "test" : []string{"drseabass"}}
c.config.Twitch.Users = map[string][]string{"test": []string{"drseabass"}}
assert.NotNil(t, c)
c.twitchList["drseabass"] = &Twitcher{