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 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())
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue