Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

wip: upgrade pycord to 2.0 major branch #112

Draft
wants to merge 70 commits into
base: main
Choose a base branch
from
Draft

wip: upgrade pycord to 2.0 major branch #112

wants to merge 70 commits into from

Conversation

Rainyan
Copy link
Owner

@Rainyan Rainyan commented Sep 11, 2022

Closes #77
Closes #97

Todo: squash wip stuff once complete

This branch of changes will also include the slash commands support, and probably some other updates for newer Discord features.
@Rainyan Rainyan self-assigned this Sep 11, 2022
Refactor to pass linters
The bot is now using slash commands, with the implicit "/" command
prefix, so we don't need a config option for it anymore.
Pycord 2.0 understands naive timestamps as local time, and can handle UTC aware timestamps, so we can simplify the code paths.
Change type from int to float, so that values <1 hour can be used.
Lower the value to 12 hours, since 16 seemed too long in practice, with players queueing in the evening, and still being queued during the following day's activity.
Add database support for PostgreSQL and Sqlite3, refactor stuff to modules. Wip.
@Rainyan Rainyan mentioned this pull request Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Pycord to 2.0 stable branch Support slash commands
1 participant