fix SetGP
This commit is contained in:
parent
bde1d93369
commit
eb10fde8f7
1 changed files with 7 additions and 9 deletions
|
@ -70,16 +70,14 @@ func SetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !commonlogic.ContainsInt64(config.BotConfig.GayPoints.ModifyUsers, update.Message.From.ID) {
|
if !commonlogic.ContainsInt64(config.BotConfig.GayPoints.ModifyUsers, update.Message.From.ID) {
|
||||||
if update.Message.ReplyToMessage == nil {
|
message := tgbotapi.MessageConfig{
|
||||||
message := tgbotapi.MessageConfig{
|
BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID},
|
||||||
BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID},
|
ParseMode: "html",
|
||||||
ParseMode: "html",
|
DisableWebPagePreview: false,
|
||||||
DisableWebPagePreview: false,
|
Text: "Who the fuck do you think you are telling me what to do?",
|
||||||
Text: "Who the fuck do you think you are telling me what to do?",
|
|
||||||
}
|
|
||||||
botIO.SendMessage(message, bot)
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
botIO.SendMessage(message, bot)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := strings.ToLower(update.Message.Command())
|
cmd := strings.ToLower(update.Message.Command())
|
||||||
|
|
Loading…
Reference in a new issue