blob: b9ff27afccaa163c2c22a79f4379ba20f06949e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package main
import (
"flag"
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/utils"
)
var token string
func init() {
flag.StringVar(&token, "token", "", "token of the bot")
flag.Parse()
}
func main() {
err := gokord.SetupConfigs([]gokord.ConfigInfo{})
if err != nil {
utils.SendError(err)
}
bot := gokord.Bot{
Token: token,
Status: []*gokord.Status{
{
Type: gokord.GameStatus,
Content: "Les Copaings Bot 2.0",
Url: "",
},
},
Commands: nil,
Handlers: nil,
}
bot.Start()
}
|