Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working Help !!! (No response) #46

Open
rohanraj-aipro opened this issue Nov 29, 2022 · 11 comments
Open

Not working Help !!! (No response) #46

rohanraj-aipro opened this issue Nov 29, 2022 · 11 comments

Comments

@rohanraj-aipro
Copy link

discord

i posted !volumemax comand and many other commands. Not working.

is there a format for command that i am missing ?

@rohanraj-aipro rohanraj-aipro changed the title Not working Help !!! Not working Help !!! (No response) Nov 30, 2022
@ghost
Copy link

ghost commented Dec 4, 2022

have you enabled bot intents?

@ghost
Copy link

ghost commented Dec 4, 2022

make shure the bot intents look like this:
image

@rohanraj-aipro
Copy link
Author

image

I have enabled all of them now.
Still No response

@ghost
Copy link

ghost commented Dec 4, 2022

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
image
then administrator permissions.
image
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

@ghost
Copy link

ghost commented Dec 4, 2022

if it still doesn't work then im out of ideas

@rohanraj-aipro
Copy link
Author

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).

@rohanraj-aipro
Copy link
Author

can you post a pic of what it looks when you type any command ?

@rohanraj-aipro
Copy link
Author

and, can you also post the output of the python file ?

BTW, I am using interpreter. not Compiler

@mategol
Copy link

mategol commented Dec 5, 2022

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

@ege75753
Copy link

ege75753 commented May 1, 2023

didnt work i tried it all @mategol @supergarixd

@ege75753
Copy link

ege75753 commented May 3, 2023

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants