Add `/games_chat
` command
This command will send user link to our games-enabled chat.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// i2_bot – Instinct PokememBro Bot
|
||||
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
|
||||
// Copyright (c) 2017-2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package router
|
||||
|
||||
@@ -64,6 +64,9 @@ func (r *Router) routePrivateRequest(update tgbotapi.Update, playerRaw *dbmappin
|
||||
case update.Message.Command() == "bastion":
|
||||
c.Talkers.BastionMessage(&update, playerRaw)
|
||||
return "ok"
|
||||
case update.Message.Command() == "games_chat":
|
||||
c.Talkers.GamesMessage(&update, playerRaw)
|
||||
return "ok"
|
||||
|
||||
case pokedexMsg.MatchString(text):
|
||||
c.Pokedexer.PokememesList(&update)
|
||||
|
Reference in New Issue
Block a user