feat(bot): setup config and status

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-14 14:37:02 +02:00
parent 8ffd8a7f0f
commit aaa9e0e075
No known key found for this signature in database
GPG key ID: CF4550297832A29F

16
main.go
View file

@ -3,6 +3,7 @@ package main
import ( import (
"flag" "flag"
"github.com/anhgelus/gokord" "github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/utils"
) )
var token string var token string
@ -13,9 +14,20 @@ func init() {
} }
func main() { func main() {
err := gokord.SetupConfigs([]gokord.ConfigInfo{})
if err != nil {
utils.SendError(err)
}
bot := gokord.Bot{ bot := gokord.Bot{
Token: token, Token: token,
Status: nil, Status: []*gokord.Status{
{
Type: gokord.GameStatus,
Content: "Les Copaings Bot 2.0",
Url: "",
},
},
Commands: nil, Commands: nil,
Handlers: nil, Handlers: nil,
} }