Here is the list of all the updates that I made on this template.
- 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