actually join and part from channel

This commit is contained in:
lyx0 2021-10-29 15:32:13 +02:00
parent 90663c8980
commit a33b72f4ff
2 changed files with 3 additions and 1 deletions

View file

@ -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))
}

View file

@ -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)