mirror-nourybot/cmd/main.go

18 lines
237 B
Go
Raw Normal View History

2021-10-13 23:24:02 +02:00
package main
2021-10-13 23:29:29 +02:00
import (
2021-10-13 23:37:46 +02:00
"github.com/lyx0/nourybot/cmd/bot"
2021-10-14 00:19:35 +02:00
"github.com/lyx0/nourybot/pkg/config"
2021-10-13 23:29:29 +02:00
)
2021-10-13 23:24:02 +02:00
func main() {
2021-10-13 23:29:29 +02:00
cfg := config.LoadConfig()
nb := bot.NewBot(cfg)
nb.Join("nourybot")
2021-10-13 23:37:46 +02:00
2021-10-14 00:19:35 +02:00
nb.Say("nourybot", "HeyGuys")
2021-10-13 23:37:46 +02:00
2021-10-13 23:29:29 +02:00
nb.Connect()
2021-10-13 23:24:02 +02:00
}