You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
457 B

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"
)
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
}