package main /* TODO: Save cookie file TODO: https://github.com/spf13/viper TODO: https://github.com/sirupsen/logrus / https://github.com/golang/glog TODO: https://github.com/juju/errors */ import ( "os" "os/signal" "syscall" "git.lalonde.me/matth/AltVRBot/pkg/bot" _ "github.com/joho/godotenv/autoload" ) func main() { Bot := &bot.Type{} Bot.Start() defer Bot.Close() sc := make(chan os.Signal, 1) signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill) <-sc }