KickerBot/kicker.go

23 lines
295 B
Go
Raw Normal View History

2021-12-03 12:19:55 +03:00
package main
import (
"log"
"os"
"godotkicker/bot"
)
func main() {
token, exists := os.LookupEnv("TOKEN")
if !exists {
log.Fatal("no token specified")
}
Bot := bot.Bot{Token: token}
Bot.Init()
Bot.AddHandlers(bot.HandlersV1)
log.Print("successfuly launched")
Bot.Bot.Start()
}