From efe51310c888819933972abf75c1c622f906a8e2 Mon Sep 17 00:00:00 2001 From: supopur Date: Wed, 22 Mar 2023 17:51:02 +0100 Subject: [PATCH] Fixed the thing where you could give a rating with a bot for example with /say +rep @user I am a nasty cheater --- commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands.py b/commands.py index 1dda192..08e9878 100644 --- a/commands.py +++ b/commands.py @@ -1,4 +1,4 @@ -import discord, toml +import discord, toml, os from discord.ext import commands from discord.commands import option @@ -66,6 +66,9 @@ class EssentialCommands(commands.Cog): if message.author in mentioned_users: await message.channel.send("You can't give reputation to yourself.") return + elif message.author.bot: + await message.channel.send("Bots can't give ratings...") + return comment = message.content.split(' ', 2)[2] if len(message.content.split(' ')) > 2 else '' #print(f"Rep for: {mentioned_users}")