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() p.mutex.Unlock()
if reminder.from == reminder.who { if reminder.from == reminder.who {
reminder.from = "you" 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 { // func (p *TwitchPlugin) getTwitchStreams(channel string) bool {
// token := p.Bot.config.Twitch.Token // token := p.Bot.config.Twitch.Token
// if token == "" || token == "<Your Token>" { // if token == "" || token == "<Your Token>" {
@ -193,4 +192,4 @@ func (p *TwitchPlugin) checkTwitch(channel string, twitcher *Twitcher, alwaysPri
// } // }
// } // }
// return true // return true
// } // }

View File

@ -28,7 +28,7 @@ func makeMessage(payload string) msg.Message {
func makeTwitchPlugin(t *testing.T) (*TwitchPlugin, *bot.MockBot) { func makeTwitchPlugin(t *testing.T) (*TwitchPlugin, *bot.MockBot) {
mb := bot.NewMockBot() mb := bot.NewMockBot()
c := New(mb) 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) assert.NotNil(t, c)
c.twitchList["drseabass"] = &Twitcher{ c.twitchList["drseabass"] = &Twitcher{