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
purge
command - Removed
asyncio
from the requirements file
### Version 5.3 (17 October 2022)
- Using
aiosqlite
instead ofsqlite3
for asynchronous database operations.
- Added error message when subcommands are not given
- Fixed
warning remove
command - Now using keyword arguments (
async def command(self, context, *, message):
) for kick/ban reason, message to sent, etc.
- Added
load
,reload
andunload
commands. - Added
sync
andunsync
commands. - Code refactoring and cleanup.
- Added the
help
command once again - Created a group for the
warning
command, 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
warnings
command that will show you all the warnings a user has - Moved the blacklist to
sqlite3
database - Now using Hybrid Commands, both prefix and slash commands will get created
- When using the
warn
command, the warning will also be added in a newsqlite3
database
- Fixed the custom checks not being sent in the channels correctly
- Added the
hackban
command - 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 iterable
for prefix -> Python 3.10
- Added a
@checks.is_owner
check which raises aUserNotOwner
exception - Added a
@checks.not_blacklisted
check which raises aUserBlacklisted
exception - 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.MissingRequiredArgument
in the error handler - Added a disclaimer section in the README file
- Added the latency of the bot in the
ping
command - Created the TODO list file
- Fixed some error embeds having success (green) colors
- Removed an unnecessary
self.bot.logout()
statement - Removed the
dick
command, 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
invite
andserver
commands, if this was not successful it will be sent in the channel
- Added new
dailyfact
command that gives a random fact every day, using cool down - Fixed some typos in README.md
- Remade the
on_command_error
event forCommandOnCooldown
- Code reformat
- Rewrote the status task
- Now using the
has_permissions
decorator for user permissions - Using
.yaml
instead of.py
file for config
- Fixed intents for
serverinfo
command
- 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