How do i make a discord bot not case sensitive? The method I'm currently using isn't working. I’ve seen other quest like this but they aren't related to what I’m doing.
import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
bot = commands.Bot(command_prefix='', case_insensitive=True) #ive tried both true/false. neither works
print("Starting...")
@bot.event
async def on_ready():
print("Logged on as {0.user}".format(bot))
@bot.event
async def on_message(message):
if message.author == bot.user:
return
elif 'hello' in message.content:
await message.delete()
await message.channel.send(‘hi')
bot.run("Token")
I want the user to be able to say either Hello or hello and it will work. Any ideas on how i would go about that?