build(go): install gokord and basic bot start

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-14 14:15:40 +02:00
parent 4d98eee01b
commit a30bda9de3
No known key found for this signature in database
GPG key ID: CF4550297832A29F
3 changed files with 111 additions and 0 deletions

23
main.go Normal file
View file

@ -0,0 +1,23 @@
package main
import (
"flag"
"github.com/anhgelus/gokord"
)
var token string
func init() {
flag.StringVar(&token, "token", "", "token of the bot")
flag.Parse()
}
func main() {
bot := gokord.Bot{
Token: token,
Status: nil,
Commands: nil,
Handlers: nil,
}
bot.Start()
}