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

Update to discord.py 2.0.1, add slash command functionality #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ctrl-os
Copy link

@ctrl-os ctrl-os commented Sep 16, 2022

Added async/await model as specified by migration guide.
Changed decorators to hybrid_command

What was tested:
Bot running locally
Bot running on cloud environment
Tested the following commands:
/prefix
/cmd cmd: -question "question" -label "some-label" -hide_votes -roles "test-role" -options 1
/help
/close

IMPORTANT:
Permissions flag is now -1073615808 (adds slash command). This requires re-adding the bot to all servers its being used in to update permissions.
Privileged Gateway Intents might break something, if so may need to disable some intents, I do not have this bot on 100+ servers to test this.

Other changes:
Removed some dependencies in requirements.txt that were seemingly unused

modified secrets.py to use dotenv for easier cloud deployment
Add slash commands
@RJ1002
Copy link

RJ1002 commented Feb 24, 2023

what python version are you running?

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

Successfully merging this pull request may close these issues.

2 participants