Open rohanraj-aipro opened 1 year ago
have you enabled bot intents?
make shure the bot intents look like this:
I have enabled all of them now. Still No response
I dont really know what is happening.
Try making a new bot making shure you follow this steps:
First enable the intents as i showed.
Then in the oauth section select bot
then administrator permissions.
Get the bot into your server.
Then uninstall and reinstall the requirements of the script.
And run the script with the token in the line 21.
Dont run the script in a vm or smth like that.
When doing this do it slowly to make shure you dont miss a step
if it still doesn't work then im out of ideas
Still not working.
Output in Pycharm:-
[2022-12-04 21:24:57] [INFO ] discord.client: logging in using static token [2022-12-04 21:24:59] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 485ed6199f9003fcbc6d4c096702eb70).
can you post a pic of what it looks when you type any command ?
and, can you also post the output of the python file ?
BTW, I am using interpreter. not Compiler
Maybe problem is in this if statement?
@client.event
async def on_message(message):
if message.channel.name != channel_name:
pass
else:
# further instructions
because in all cases, program ignores message, and doing something only if this condition is True. I'm additionally curious why author didnt just
@client.event
async def on_message(message):
if message.channel.name == channel_name:
# further instructions
didnt work i tried it all @mategol @supergarixd
so hello @rohanraj-aipro i dont know if you will still find this helpfull but i found how to make it work so first u got to change the client = with all this
intents = discord.Intents.default() client = discord.Client(intents=intents) intents.message_content = True bot = commands.Bot(command_prefix='!', intents=intents)
and it should work thank you :)
i posted !volumemax comand and many other commands. Not working.
is there a format for command that i am missing ?