aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 14:37:02 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 14:37:02 +0200
commitaaa9e0e075f9b430b866d55066aad04181821d7a (patch)
treec83cc8cd66a961599423a696f011fe096e22cbbd
parent8ffd8a7f0f48bfb5b70667a5f4c1af523f18d495 (diff)
feat(bot): setup config and status
-rw-r--r--main.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/main.go b/main.go
index 7b04e4b..b9ff27a 100644
--- a/main.go
+++ b/main.go
@@ -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,
}