Archived
1

Add `/games_chat` command

This command will send user link to our games-enabled chat.
This commit is contained in:
2018-04-04 21:58:57 +04:00
parent f67e652ae4
commit 24e619a446
3 changed files with 24 additions and 1 deletions

View File

@@ -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)