mirror of https://github.com/velour/catbase.git
go fmt
This commit is contained in:
parent
ef0afc2ee0
commit
7a3646049c
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
// }
|
// }
|
||||||
|
|
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue