mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add a channel counter and startup message
This commit is contained in:
parent
e5f737f602
commit
7b3386fb21
|
@ -2,6 +2,7 @@ package db
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/lyx0/nourybot/cmd/bot"
|
||||
|
@ -31,10 +32,14 @@ func InitialJoin(nb *bot.Bot) {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
channelCount := 0
|
||||
|
||||
for _, ch := range channels {
|
||||
nb.TwitchClient.Join(ch.Name)
|
||||
// nb.TwitchClient.Say(ch.Name, "xd")
|
||||
channelCount++
|
||||
log.Infof("Joined: %s\n", ch.Name)
|
||||
}
|
||||
|
||||
// It worked
|
||||
nb.TwitchClient.Say("nourybot", fmt.Sprintf("Badabing Badaboom Pepepains Joined %v channel", channelCount))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue