fix SetGP

This commit is contained in:
Watn3y 2023-03-20 15:20:07 +01:00
parent bde1d93369
commit eb10fde8f7

View file

@ -70,16 +70,14 @@ func SetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
}
if !commonlogic.ContainsInt64(config.BotConfig.GayPoints.ModifyUsers, update.Message.From.ID) {
if update.Message.ReplyToMessage == nil {
message := tgbotapi.MessageConfig{
BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID},
ParseMode: "html",
DisableWebPagePreview: false,
Text: "Who the fuck do you think you are telling me what to do?",
}
botIO.SendMessage(message, bot)
return
message := tgbotapi.MessageConfig{
BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID},
ParseMode: "html",
DisableWebPagePreview: false,
Text: "Who the fuck do you think you are telling me what to do?",
}
botIO.SendMessage(message, bot)
return
}
cmd := strings.ToLower(update.Message.Command())