aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 14:15:40 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 14:15:55 +0200
commita30bda9de37b6b52083ed6a8401ab368009c7a5c (patch)
tree1213af245338b56ff5197f985ca0a37791e2ff0b /main.go
parent4d98eee01b87e10fe97873638f4c838eea45b942 (diff)
build(go): install gokord and basic bot start
Diffstat (limited to 'main.go')
-rw-r--r--main.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..7b04e4b
--- /dev/null
+++ b/main.go
@@ -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()
+}