AndyReifman / ArseneWenger

1 stars 12 forks source link

discord.py 2 and Slash command upgrade #89

Closed reddit-tennis closed 11 months ago

reddit-tennis commented 1 year ago

Upgrade to Discord py2 https://discordpy.readthedocs.io/en/stable/migrating.html - will now work in threads etc.

And converted to slash commands. However, not all commands are converted to slash commands as some don't work 👀

Examples:

image

image

ingenium21 commented 1 year ago

CORRRRR

AndyReifman commented 1 year ago

What needs to be done to complete this PR? It looks like it might be in a state to merge what we've got to allow others to contribute to bringing the entirety of the codebase up to date.

reddit-tennis commented 1 year ago

What needs to be done to complete this PR? It looks like it might be in a state to merge what we've got to allow others to contribute to bringing the entirety of the codebase up to date.

Good idea. Will go through them all later and let you know.

More of a demo to others to see their thoughts on slash commands

reddit-tennis commented 1 year ago

All good to review finally.

I have changed some commands back to normal (europa, copa, olympic, anysignings, copy, wengersucks)

Note I changed the way the token is loaded, simpler this way.

ingenium21 commented 1 year ago

I think those probably didn't work because they aren't on right now and fotmob doesn't return anything for them. Not anything wrong with slash commands.

Either way, when it comes time, we can edit them into slash commands.