KickerBot/main.go

21 lines
269 B
Go
Raw Normal View History

2021-12-03 12:19:55 +03:00
package main
import (
"log"
"os"
2021-12-03 14:30:10 +03:00
"kickerbot/kicker"
2021-12-03 12:19:55 +03:00
)
func main() {
token, exists := os.LookupEnv("TOKEN")
if !exists {
log.Fatal("no token specified")
}
2021-12-03 14:30:10 +03:00
Bot := kicker.Kicker{Token: token}
2021-12-03 12:19:55 +03:00
Bot.Init()
2021-12-03 14:30:10 +03:00
Bot.AddHandlers(kicker.HandlersV1)
2021-12-03 12:19:55 +03:00
Bot.Bot.Start()
}