mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
structuring
This commit is contained in:
parent
8e5687292b
commit
d9f32c1276
3 changed files with 5 additions and 4 deletions
|
@ -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"
|
||||
)
|
||||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -25,5 +25,4 @@ func LoadConfig() *Config {
|
|||
log.Info("Config loaded succesfully")
|
||||
|
||||
return cfg
|
||||
|
||||
}
|
Loading…
Reference in a new issue