feat(bot): setup config and status
This commit is contained in:
parent
8ffd8a7f0f
commit
aaa9e0e075
1 changed files with 14 additions and 2 deletions
14
main.go
14
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,
|
||||
Status: []*gokord.Status{
|
||||
{
|
||||
Type: gokord.GameStatus,
|
||||
Content: "Les Copaings Bot 2.0",
|
||||
Url: "",
|
||||
},
|
||||
},
|
||||
Commands: nil,
|
||||
Handlers: nil,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue