Initial commit

This commit is contained in:
2022-10-27 01:55:23 +00:00
commit 9fa4eb31dc
15 changed files with 660 additions and 0 deletions

23
main.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"flag"
"log"
"github.com/manleydev/bird-bot/app"
)
func main() {
var config_file string
flag.StringVar(&config_file, "c", "birdbot.yaml", "Path to config file")
flag.Parse()
bot := app.NewBot()
if err := bot.Initialize(config_file); err != nil {
log.Fatal("Failed to initialize: ", err)
}
if err := bot.Run(); err != nil {
log.Fatal(err)
}
}