mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
accidentally joined all channel
This commit is contained in:
parent
7531a67b18
commit
cedab50ab7
1 changed files with 1 additions and 7 deletions
|
@ -16,8 +16,6 @@ func ListChannel(nb *bot.Bot) {
|
|||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
|
||||
// defer nb.MongoClient.Disconnect(ctx)
|
||||
|
||||
cur, currErr := collection.Find(ctx, bson.D{})
|
||||
|
||||
if currErr != nil {
|
||||
|
@ -32,12 +30,8 @@ func ListChannel(nb *bot.Bot) {
|
|||
|
||||
channelList := ""
|
||||
for _, ch := range channels {
|
||||
nb.TwitchClient.Join(ch.Name)
|
||||
// nb.TwitchClient.Say(ch.Name, "xd")
|
||||
channelList += ch.Name + " "
|
||||
}
|
||||
|
||||
nb.TwitchClient.Whisper("nouryqt", channelList)
|
||||
// It worked
|
||||
// nb.Send("nourybot", fmt.Sprintf("Badabing Badaboom Pepepains Joined %v channel", channelCount))
|
||||
// nb.Send("nouryqt", fmt.Sprintf("Badabing Badaboom Pepepains Joined %v channel", channelCount))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue