Giter Site home page Giter Site logo

Comments (11)

 avatar commented on September 25, 2024

have you enabled bot intents?

from discord-rat.

 avatar commented on September 25, 2024

make shure the bot intents look like this:
image

from discord-rat.

rohanraj-aipro avatar rohanraj-aipro commented on September 25, 2024

image

I have enabled all of them now.
Still No response

from discord-rat.

 avatar commented on September 25, 2024

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

from discord-rat.

 avatar commented on September 25, 2024

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

from discord-rat.

rohanraj-aipro avatar rohanraj-aipro commented on September 25, 2024

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

from discord-rat.

rohanraj-aipro avatar rohanraj-aipro commented on September 25, 2024

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

from discord-rat.

rohanraj-aipro avatar rohanraj-aipro commented on September 25, 2024

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

BTW, I am using interpreter. not Compiler

from discord-rat.

mategol avatar mategol commented on September 25, 2024

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

from discord-rat.

ege75753 avatar ege75753 commented on September 25, 2024

didnt work i tried it all @mategol @supergarixd

from discord-rat.

ege75753 avatar ege75753 commented on September 25, 2024

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

from discord-rat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.