notsniped / discord-snipe-bot

A simple message content sniping Discord bot which you can run yourself!
GNU General Public License v3.0
7 stars 5 forks source link

Switch client API wrapper library from discord.py to PyCord #20

Closed notsniped closed 1 year ago

notsniped commented 1 year ago

Moving from discord.py to PyCord

As you might know, all NKA bots (including my own bots) are switching from discord.py to PyCord. This change was delayed as the project was abandoned a little, but now since the bot is back to development phase, I am switching it.

The advantage of using PyCord is simple: speed, reliability, features.

As well as all of these, Discord has removed direct support for prefix commands, which makes it a more sensible decision to switch to slash commands.

This is why we are switching from discord.py to PyCord.

notsniped commented 1 year ago

Fun fact: This proposed update also helped with debloating the code by removing duplicate commands of different types, and minimising the number of class instances and modules needed.