hdkv
/
fwzookeeper
Archived
1
Fork 0

Allow enabling direct announces

master
Vladimir Hodakov 2019-01-22 04:02:38 +04:00
parent 401f962bd2
commit ec46e63642
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
// ForwardCommand responds to fight request
func ForwardCommand(update *telegram.Update) {
message := ""
if update.Message.From.ID != 788961789 {
if update.Message.From.ID != 788961789 && !c.Config.Announces.EnableLocal {
message := "*Смотритель более не принимает прямые запросы*\n"
message += "Люди глупы и безрассудны. Им дали возможность позвать на помощь — но они пользуются ею, чтобы самоутвердиться. Довольно!\n"
message += "Зовите на помощь @fw\\_zookeeper, как живого человека — через кнопку «Позвать на помощь» в игре.\n"

View File

@ -5,5 +5,6 @@ package config
// Announces is a struct which handles announces configuration
type Announces struct {
ChannelID int64 `yaml:"channel_id"`
ChannelID int64 `yaml:"channel_id"`
EnableLocal bool `yaml:"enable_local"`
}