Here is the list of all the updates that I made on this template.
- Pin
discord.pyversion to2.6.4
- Pin
discord.pyversion to2.6.3
- Added support for Docker,
docker compose upwill spin up the bot and install the requirements - Pinned
discord.pyversion in therequirements.txtfile - Removed the
config.jsonfile and replaced the rest with.envjust like the token
- Added a new
feedbackcommand for showcasing the use of modals (popups) - Some wording changes in the
README.mdfile and the project description
- Various bug fixes
- Added
-> Nonetype hint to remaining functions
- Added two context menu commands, one for users and one for messages
- Made a custom class for the bot that subclasses
commands.Bot - Don't connect to the SQLite database all the time, created a
DatabaseManagerclass that handles database operations - Changes to some Markdown files
- Using environment file or environment variable for the token
- Removed the custom checks, blacklist is gone & using discord.py's owner check
- Changed main color from
0x9C84EFto0xBEBEFE
- Added
bot.loggerto have proper logging - Added
CONTRIBUTING.mdandCODE_OF_CONDUCT.mdfiles - Overall embeds refactoring
- Issues and features templates
- Added
blacklist showcommand to see the list of blacklisted users blacklist removeandblacklist addcommands now send proper error messages
- Loading files relatively to where the
bot.pyfile is located, so that you can start the bot from anywhere in your system
- Added
@commands.bot_has_permissions()checks and handle the exception for it - Fixed
purgecommand - Removed
asynciofrom the requirements file
### Version 5.3 (17 October 2022)
- Using
aiosqliteinstead ofsqlite3for asynchronous database operations.
- Added error message when subcommands are not given
- Fixed
warning removecommand - Now using keyword arguments (
async def command(self, context, *, message):) for kick/ban reason, message to sent, etc.
- Added
load,reloadandunloadcommands. - Added
syncandunsynccommands. - Code refactoring and cleanup.
- Added the
helpcommand once again - Created a group for the
warningcommand, has following sub-commands:add- Adds a warning to the userremove- Removes a warning from the userlist- Lists all the warnings of the user
⚠️ Moved to discord.py 2.0 as it is now officially released
- Added
warningscommand that will show you all the warnings a user has - Moved the blacklist to
sqlite3database - Now using Hybrid Commands, both prefix and slash commands will get created
- When using the
warncommand, the warning will also be added in a newsqlite3database
- Fixed the custom checks not being sent in the channels correctly
- Added the
hackbancommand - Separated slash commands and normal commands so that you remove one of them more easily
- Moved normal commands in
cogs/normal - Moved slash commands in
cogs/slash
- Moved normal commands in
- Fixed some weird code
- Now using
disnake - Added a command that uses buttons (coinflip)
- Added a command that uses selection dropdown (rps)
- Every command is now in slash command and normal command (old way with prefix)
- Make sure to enable the message intents for normal commands as it's now a privileged intent.
- The slash command is above, the normal command is below
- Fixed
TypeError: 'NoneType' object is not iterablefor prefix -> Python 3.10
- Added a
@checks.is_ownercheck which raises aUserNotOwnerexception - Added a
@checks.not_blacklistedcheck which raises aUserBlacklistedexception - Using checks instead of same code for every command
- Various code cleanup
Now using slash commands
- Blacklisted users are now saved in the file
- Moved config file to JSON
- Moved the blacklist in a separate file (
blacklist.json) - The colors are no longer saved in the config file
- Added a check for
commands.MissingRequiredArgumentin the error handler - Added a disclaimer section in the README file
- Added the latency of the bot in the
pingcommand - Created the TODO list file
- Fixed some error embeds having success (green) colors
- Removed an unnecessary
self.bot.logout()statement - Removed the
dickcommand, as I want to keep this template safe for work - Renamed the names of the arguments in some commands
- The bot now tries to send an embed in the private message of the command author for the
inviteandservercommands, if this was not successful it will be sent in the channel
- Added new
dailyfactcommand that gives a random fact every day, using cool down - Fixed some typos in README.md
- Remade the
on_command_errorevent forCommandOnCooldown
- Code reformat
- Rewrote the status task
- Now using the
has_permissionsdecorator for user permissions - Using
.yamlinstead of.pyfile for config
- Fixed intents for
serverinfocommand
- Blacklisted users are being ignored when executing a command
- Added config import to moderation cog
- Added some fun commands
- Colors are saved in the config file for easier usage
- Cogs are now being loaded automatically
- Fixed some typos
- Made the kick command actually kick
- Added a template cog to create cogs easily
- Fixed the purge command
- Made the error embeds actually red...
- Made the help command dynamic
- Added a small description to all commands
- Added intents when creating the bot
- Added cogs
- Added f-strings and removed
.format() - Created config file for easier setup
- Added blacklist command
- Removed commands cool down