structuring

This commit is contained in:
lyx0 2021-10-13 23:37:46 +02:00
parent 8e5687292b
commit d9f32c1276
3 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@ package bot
import (
twitch "github.com/gempir/go-twitch-irc/v2"
cfg "github.com/lyx0/nourybot/config"
cfg "github.com/lyx0/nourybot/pkg/config"
log "github.com/sirupsen/logrus"
)

View file

@ -1,8 +1,8 @@
package main
import (
"github.com/lyx0/nourybot/bot"
"github.com/lyx0/nourybot/config"
"github.com/lyx0/nourybot/cmd/bot"
config "github.com/lyx0/nourybot/pkg/config"
)
func main() {
@ -10,6 +10,8 @@ func main() {
nb := bot.NewBot(cfg)
nb.Join("nourybot")
nb.Say("nourybot", "test")
nb.Connect()
}

View file

@ -25,5 +25,4 @@ func LoadConfig() *Config {
log.Info("Config loaded succesfully")
return cfg
}