build(go): install gokord and basic bot start
This commit is contained in:
parent
4d98eee01b
commit
a30bda9de3
3 changed files with 111 additions and 0 deletions
23
main.go
Normal file
23
main.go
Normal file
|
@ -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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue