From a30bda9de37b6b52083ed6a8401ab368009c7a5c Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 14 Apr 2024 14:15:40 +0200 Subject: build(go): install gokord and basic bot start --- main.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 main.go (limited to 'main.go') 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() +} -- cgit v1.2.3