From eb10fde8f7f7e00e8fb5230eae43e1a866e766a3 Mon Sep 17 00:00:00 2001 From: Watn3y Date: Mon, 20 Mar 2023 15:20:07 +0100 Subject: [PATCH] fix SetGP --- commands/gaypoints/gaypoints.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/commands/gaypoints/gaypoints.go b/commands/gaypoints/gaypoints.go index 42243ae..53de4ab 100644 --- a/commands/gaypoints/gaypoints.go +++ b/commands/gaypoints/gaypoints.go @@ -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())