mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
remove unnecessary second config call
This commit is contained in:
parent
b6028eb565
commit
79f8f34066
1 changed files with 1 additions and 2 deletions
|
@ -28,12 +28,11 @@ func NewBot(cfg *cfg.Config) *Bot {
|
|||
|
||||
func (b *Bot) Connect() error {
|
||||
log.Info("fn Connect")
|
||||
cfg := cfg.LoadConfig()
|
||||
|
||||
b.Uptime = time.Now()
|
||||
|
||||
b.twitchClient.OnPrivateMessage(func(message twitch.PrivateMessage) {
|
||||
handlers.HandlePrivateMessage(message, b.twitchClient, cfg, b.Uptime)
|
||||
handlers.HandlePrivateMessage(message, b.twitchClient, b.cfg, b.Uptime)
|
||||
})
|
||||
|
||||
b.twitchClient.OnWhisperMessage(func(message twitch.WhisperMessage) {
|
||||
|
|
Loading…
Reference in a new issue