feat(status): new status with version of the bot
This commit is contained in:
parent
55c9a2a75f
commit
67ad70ec84
1 changed files with 8 additions and 3 deletions
11
main.go
11
main.go
|
@ -13,6 +13,10 @@ import (
|
||||||
|
|
||||||
var token string
|
var token string
|
||||||
|
|
||||||
|
const (
|
||||||
|
Version = "2.2.0" // git version: 0.2.0 (it's the v2 of the bot)
|
||||||
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
flag.StringVar(&token, "token", "", "token of the bot")
|
flag.StringVar(&token, "token", "", "token of the bot")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
@ -125,17 +129,18 @@ func main() {
|
||||||
{
|
{
|
||||||
Type: gokord.WatchStatus,
|
Type: gokord.WatchStatus,
|
||||||
Content: "Les Copaings",
|
Content: "Les Copaings",
|
||||||
Url: "",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Type: gokord.GameStatus,
|
Type: gokord.GameStatus,
|
||||||
Content: "dev par @anhgelus",
|
Content: "dev par @anhgelus",
|
||||||
Url: "",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Type: gokord.ListeningStatus,
|
Type: gokord.ListeningStatus,
|
||||||
Content: "http 418, I'm a tea pot",
|
Content: "http 418, I'm a tea pot",
|
||||||
Url: "",
|
},
|
||||||
|
{
|
||||||
|
Type: gokord.GameStatus,
|
||||||
|
Content: "Les Copaings Bot " + Version,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Commands: []*gokord.GeneralCommand{
|
Commands: []*gokord.GeneralCommand{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue