mirror of https://codeberg.org/soteria/sox.git
fix: funni detection ignores case
This commit is contained in:
parent
88a046693b
commit
08740c8df9
|
|
@ -11,7 +11,7 @@ class MyBot(commands.InteractionBot):
|
|||
super().__init__(intents=disnake.Intents.all())
|
||||
|
||||
async def on_message(self, message: disnake.Message):
|
||||
if "rewrite" in message.content and "rust" in message.content and message.guild.id == int(os.environ["FUN_GUILD"]):
|
||||
if "rewrite" in message.content.lower() and "rust" in message.content.lower() and message.guild.id == int(os.environ["FUN_GUILD"]):
|
||||
await message.channel.send("never, stop asking")
|
||||
|
||||
async def on_ready(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue