hdkv
/
i2_bot
Archived
1
Fork 0

Add GrStatsBot to permitted users, add Numb13 to donaters

master
Vladimir Hodakov 2018-04-08 22:32:51 +04:00
parent d2f172c316
commit 87214a9973
2 changed files with 4 additions and 3 deletions

View File

@ -24,10 +24,10 @@ func (ct *Chatter) userPrivilegesCheck(update *tgbotapi.Update, user *tgbotapi.U
}
// There are special users, which will bypass these checks
specialUsers := []string{"gantz_yaka", "agentpb", "pbhelp", "i2_bot", "i2_dev_bot"}
specialUsers := []string{"gantz_yaka", "agentpb", "pbhelp", "i2_bot", "i2_dev_bot", "grstatsbot"}
for j := range specialUsers {
if strings.ToLower(user.UserName) == specialUsers[j] {
if strings.Contains(strings.ToLower(user.UserName), specialUsers[j]) {
// This is for PokememBro admins, they can join any chat at any time
return true
}
@ -44,7 +44,7 @@ func (ct *Chatter) userPrivilegesCheck(update *tgbotapi.Update, user *tgbotapi.U
c.Log.Debug("Checking user rights in headquarters chat...")
}
if update.Message.Chat.ID == gamesChatID && strings.Contains(strings.ToLower(user.UserName), "bot") {
if update.Message.Chat.ID == gamesChatID && user.IsBot {
c.Log.Debug("Game bot with username @" + user.UserName + " passed filtration")
return true
}

View File

@ -109,6 +109,7 @@ func (t *Talkers) HelpMessage(update *tgbotapi.Update, playerRaw *dbmapping.Play
message += "Для поддержания сервера и его стабильной оплаты нужны средства. К сожалению, далеко не всегда они находятся в нужный момент, но всегда есть люди, готовые помочь. Я благодарю их за поддержку:\n\n"
message += "\\* @Lenorag\n"
message += "\\* @vanushinvi\n"
message += "\\* @Numb13\n"
message += "\\* @TechniqueOne\n"
message += "\\* @Antropophag\n"
message += "\\* @nokio404\n"