mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
idk
This commit is contained in:
parent
dbaa4ed180
commit
b6028eb565
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,6 @@ func NewBot(cfg *cfg.Config) *Bot {
|
||||||
return &Bot{
|
return &Bot{
|
||||||
cfg: cfg,
|
cfg: cfg,
|
||||||
twitchClient: twitchClient,
|
twitchClient: twitchClient,
|
||||||
Uptime: time.Now(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +30,8 @@ func (b *Bot) Connect() error {
|
||||||
log.Info("fn Connect")
|
log.Info("fn Connect")
|
||||||
cfg := cfg.LoadConfig()
|
cfg := cfg.LoadConfig()
|
||||||
|
|
||||||
|
b.Uptime = time.Now()
|
||||||
|
|
||||||
b.twitchClient.OnPrivateMessage(func(message twitch.PrivateMessage) {
|
b.twitchClient.OnPrivateMessage(func(message twitch.PrivateMessage) {
|
||||||
handlers.HandlePrivateMessage(message, b.twitchClient, cfg, b.Uptime)
|
handlers.HandlePrivateMessage(message, b.twitchClient, cfg, b.Uptime)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue