diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-14 14:37:02 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-14 14:37:02 +0200 |
| commit | aaa9e0e075f9b430b866d55066aad04181821d7a (patch) | |
| tree | c83cc8cd66a961599423a696f011fe096e22cbbd /main.go | |
| parent | 8ffd8a7f0f48bfb5b70667a5f4c1af523f18d495 (diff) | |
feat(bot): setup config and status
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -3,6 +3,7 @@ package main import ( "flag" "github.com/anhgelus/gokord" + "github.com/anhgelus/gokord/utils" ) var token string @@ -13,9 +14,20 @@ func init() { } func main() { + err := gokord.SetupConfigs([]gokord.ConfigInfo{}) + if err != nil { + utils.SendError(err) + } + bot := gokord.Bot{ - Token: token, - Status: nil, + Token: token, + Status: []*gokord.Status{ + { + Type: gokord.GameStatus, + Content: "Les Copaings Bot 2.0", + Url: "", + }, + }, Commands: nil, Handlers: nil, } |
