diff --git a/plugins/reminder/reminder.go b/plugins/reminder/reminder.go index 820b443..cd9803d 100644 --- a/plugins/reminder/reminder.go +++ b/plugins/reminder/reminder.go @@ -74,7 +74,7 @@ func reminderer(p *ReminderPlugin) { } p.mutex.Unlock() - + if reminder.from == reminder.who { reminder.from = "you" } diff --git a/plugins/twitch/twitch.go b/plugins/twitch/twitch.go index be3f96f..4ba815e 100644 --- a/plugins/twitch/twitch.go +++ b/plugins/twitch/twitch.go @@ -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 == "" { @@ -193,4 +192,4 @@ func (p *TwitchPlugin) checkTwitch(channel string, twitcher *Twitcher, alwaysPri // } // } // return true -// } \ No newline at end of file +// } diff --git a/plugins/twitch/twitch_test.go b/plugins/twitch/twitch_test.go index 4a9522d..ba0967d 100644 --- a/plugins/twitch/twitch_test.go +++ b/plugins/twitch/twitch_test.go @@ -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{