feat(bot): setup config and status
This commit is contained in:
parent
8ffd8a7f0f
commit
aaa9e0e075
1 changed files with 14 additions and 2 deletions
16
main.go
16
main.go
|
@ -3,6 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"github.com/anhgelus/gokord"
|
"github.com/anhgelus/gokord"
|
||||||
|
"github.com/anhgelus/gokord/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
var token string
|
var token string
|
||||||
|
@ -13,9 +14,20 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
err := gokord.SetupConfigs([]gokord.ConfigInfo{})
|
||||||
|
if err != nil {
|
||||||
|
utils.SendError(err)
|
||||||
|
}
|
||||||
|
|
||||||
bot := gokord.Bot{
|
bot := gokord.Bot{
|
||||||
Token: token,
|
Token: token,
|
||||||
Status: nil,
|
Status: []*gokord.Status{
|
||||||
|
{
|
||||||
|
Type: gokord.GameStatus,
|
||||||
|
Content: "Les Copaings Bot 2.0",
|
||||||
|
Url: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
Commands: nil,
|
Commands: nil,
|
||||||
Handlers: nil,
|
Handlers: nil,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue