#๐Ÿ”’ Not Working

56 messages ยท Page 1 of 1 (latest)

weary dragonBOT
#

Please react with โœ… to upload your file(s) to our paste bin, which is more accessible for some users.

#

@peak basin

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

alpine sandal
#

Can you show a screenshot of you running the py main.py command?

peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

alpine sandal
peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

alpine sandal
#

idk where those usernames and passwords come from but this looks sus

#

!rule 5

weary dragonBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary dragonBOT
#

The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.

#
Using intents in discord.py

Intents are a feature of Discord that tells the gateway exactly which events to send your bot. Various features of discord.py rely on having particular intents enabled, further detailed in its documentation. Since discord.py v2.0.0, it has become mandatory for developers to explicitly define the values of these intents in their code.

There are standard and privileged intents. To use privileged intents like Presences, Server Members, and Message Content, you have to first enable them in the Discord Developer Portal. In there, go to the Bot page of your application, scroll down to the Privileged Gateway Intents section, and enable the privileged intents that you need. Standard intents can be used without any changes in the developer portal.

Afterwards in your code, you need to set the intents you want to connect with in the bot's constructor using the intents keyword argument, like this:

from discord import Intents
from discord.ext import commands

# Enable all standard intents and message content
# (prefix commands generally require message content)
intents = Intents.default()
intents.message_content = True

bot = commands.Bot(command_prefix="!", intents=intents)

For more info about using intents, see discord.py's related guide, and for general information about them, see the Discord developer documentation on intents.

peak basin
#

One message removed from a suspended account.

weary dragonBOT
peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary dragonBOT
peak basin
#

One message removed from a suspended account.

weary dragonBOT
#

3. Respect staff members and listen to their instructions.

peak basin
#

One message removed from a suspended account.

weary dragonBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

alpine sandal
#

Go to #rules to read them all

peak basin
#

One message removed from a suspended account.

alpine sandal
#

Consider learning Python properly before taking any AI code slop

#

!resources have plenty of beginner level materials

weary dragonBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

alpine sandal
# weary dragon

โ˜๏ธ Resources page is linked here in blue. Click it

peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

alpine sandal
#

np ๐Ÿ™‚

peak basin
#

One message removed from a suspended account.

alpine sandal
#

sure but we won't help if its illegal or malicious.

peak basin
#

One message removed from a suspended account.

peak basin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary dragonBOT
#
Python help channel closed using Discord native close action

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.