mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
actually join and part from channel
This commit is contained in:
parent
90663c8980
commit
a33b72f4ff
2 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,6 @@ func AddChannel(target, channelName string, nb *bot.Bot) {
|
|||
log.Error(insertErr)
|
||||
return
|
||||
}
|
||||
|
||||
nb.TwitchClient.Join(channelName)
|
||||
nb.Send(target, fmt.Sprintf("Joined %s", channelName))
|
||||
}
|
||||
|
|
|
@ -30,6 +30,8 @@ func PartChannel(target, channelName string, nb *bot.Bot) {
|
|||
log.Error(insertErr)
|
||||
return
|
||||
}
|
||||
|
||||
nb.TwitchClient.Depart(channelName)
|
||||
nb.Send(target, fmt.Sprintf("Parted %s", channelName))
|
||||
|
||||
// log.Info(res)
|
||||
|
|
Loading…
Reference in a new issue