mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
1da76195c6
This new bot.py file includes the Tux class which extends commands.Bot. It handles bot setup, including database connection and cog loading, and includes event listeners for bot readiness and disconnection. It also includes a shutdown method to properly close connections and cancel outstanding tasks. feat(rolecount.py): add new RoleCount cog to display number of users in each role This new feature allows users to see the number of users in each role in the server. It supports distro, language, DE/WM, misc, and vanity roles. The role count is displayed in an embed with pagination support. refactor(run.py): improve readability by breaking down function parameters into multiple lines style(run.py): change usage from $run <code> to $run [code] for better command understanding feat(tty_roles.py): add return type to setup function for better type checking fix(ban.py): change icon_url from CASE to ACTIVE_CASE to reflect the correct case status fix(ban.py): correct the case action from BAN to the actual action feat(cases.py): add a check to ensure the slash command is used for this command feat(cases.py): add total_cases to display the total number of cases in the case list fix(cases.py): ensure the case reason and status are updated correctly fix(cases.py): correct the icon_url to reflect the correct case status fix(jail.py): change icon_url from CASE to ACTIVE_CASE to reflect the correct case status fix(jail.py): correct the case action from BAN to JAIL fix(kick.py): change icon_url from CASE to ACTIVE_CASE to reflect the correct case status feat(purge.py): add support for discord.Thread in addition to discord.TextChannel fix(purge.py): handle exceptions during message purging and provide a user-friendly error message refactor(slowmode.py): modify slowmode command to accept discord.Thread in addition to discord.TextChannel for better functionality fix(unban.py): remove unnecessary target parameter and replace with flags.username_or_id for more accurate unbanning refactor(unban.py): change error handling to include discord.NotFound exception for better error management style(unban.py, unjail.py): change icon_url from "CASE" to "ACTIVE_CASE" for better visual representation refactor(unjail.py): simplify method call to get_last_jail_case_by_target_id for cleaner code refactor(warn.py): simplify warn command structure to improve maintainability feat(warn.py): add checks for self-warn, higher role warn, and owner warn to prevent misuse style(warn.py): improve embed formatting for better readability feat(membercount.py): add staff count to membercount command for more detailed server info refactor(info.py, membercount.py, ping.py, case.py, main.py): remove unnecessary logger imports and usages for cleaner code refactor(main.py): rename client.py to bot.py for better semantics style(info.py): use discord.utils.format_dt for date formatting consistency feat(flags.py): add aliases and default values to UnbanFlags refactor(flags.py): swap positions of reason and status in CaseModifyFlags for better readability feat(flags.py): add new WarnFlags class for handling member warnings |
||
---|---|---|
.. | ||
logging | ||
tests | ||
ban.py | ||
bot.py | ||
command_cog.py | ||
console.py | ||
ctx_error_handler.py | ||
dependency-review.yml | ||
emojistats.py | ||
error_handler.py | ||
ghost_pings.py | ||
ghub.py | ||
guide.py | ||
guild.py | ||
helpers.py | ||
kaizen_ping_counter.py | ||
kick.py | ||
message.py | ||
mod.py | ||
neofetch.py | ||
notes.py | ||
on_member_update.py | ||
on_message.py | ||
permissions.py | ||
roles.py | ||
settings.ini | ||
test_error_handler.py | ||
thread.py | ||
timeout.py | ||
tools.py | ||
tux_logger.py | ||
unban.py | ||
voice.py | ||
warn.py |