diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-14 14:15:40 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-14 14:15:55 +0200 |
| commit | a30bda9de37b6b52083ed6a8401ab368009c7a5c (patch) | |
| tree | 1213af245338b56ff5197f985ca0a37791e2ff0b /main.go | |
| parent | 4d98eee01b87e10fe97873638f4c838eea45b942 (diff) | |
build(go): install gokord and basic bot start
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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() +} |
