mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-03 23:36:25 +02:00
Refactor code for improved readability and consistency across various command files
- Adjusted formatting and indentation in `rename.rs`, `suggestion.rs`, `tempvoc.rs`, `ticket.rs`, `ticket_member.rs`, and `tickets.rs` for better clarity. - Consolidated `if` statements and method calls for cleaner code in `suggestion.rs`, `tempvoc.rs`, and `ticket.rs`. - Updated the `LOGS_PER_PAGE` constant in `viewlogs.rs` to increase the number of logs displayed per page. - Removed unused `handle_boostembed` function from `logs_service.rs`. - Added new modules in `mod.rs` for better organization of command files. - Enhanced the `handle_show_pics` function in `showpics.rs` for improved member filtering. - Updated the `handle_message` function in `message_event.rs` to streamline command handling.
This commit is contained in:
+22
-22
@@ -17,6 +17,8 @@ pub mod allperms;
|
||||
pub mod autobackup;
|
||||
#[path = "admin/autoconfiglog.rs"]
|
||||
pub mod autoconfiglog;
|
||||
#[path = "admin/autopublish.rs"]
|
||||
pub mod autopublish;
|
||||
#[path = "admin/autoreact.rs"]
|
||||
pub mod autoreact;
|
||||
#[path = "admin/backup.rs"]
|
||||
@@ -55,6 +57,8 @@ pub mod changeall;
|
||||
pub mod channel;
|
||||
#[path = "general/choose.rs"]
|
||||
pub mod choose;
|
||||
#[path = "admin/claim.rs"]
|
||||
pub mod claim;
|
||||
#[path = "admin/cleanup.rs"]
|
||||
pub mod cleanup;
|
||||
#[path = "admin/clear_all_sanctions.rs"]
|
||||
@@ -69,6 +73,8 @@ pub mod clear_owners;
|
||||
pub mod clear_perms;
|
||||
#[path = "admin/clear_sanctions.rs"]
|
||||
pub mod clear_sanctions;
|
||||
#[path = "admin/close.rs"]
|
||||
pub mod close;
|
||||
#[path = "admin/cmute.rs"]
|
||||
pub mod cmute;
|
||||
pub mod command_contract;
|
||||
@@ -168,6 +174,8 @@ pub mod prefix;
|
||||
pub mod raidlog;
|
||||
#[path = "profile/remove_activity.rs"]
|
||||
pub mod remove_activity;
|
||||
#[path = "admin/rename.rs"]
|
||||
pub mod rename;
|
||||
#[path = "admin/renew.rs"]
|
||||
pub mod renew;
|
||||
#[path = "admin/reroll.rs"]
|
||||
@@ -194,10 +202,14 @@ pub mod set_boostembed;
|
||||
pub mod set_modlogs;
|
||||
#[path = "general/shadowbot.rs"]
|
||||
pub mod shadowbot;
|
||||
#[path = "general/showpics.rs"]
|
||||
pub mod showpics;
|
||||
#[path = "general/snipe.rs"]
|
||||
pub mod snipe;
|
||||
#[path = "profile/stream.rs"]
|
||||
pub mod stream;
|
||||
#[path = "admin/suggestion.rs"]
|
||||
pub mod suggestion;
|
||||
#[path = "admin/sync.rs"]
|
||||
pub mod sync;
|
||||
#[path = "admin/tempban.rs"]
|
||||
@@ -208,8 +220,18 @@ pub mod tempcmute;
|
||||
pub mod tempmute;
|
||||
#[path = "admin/temprole.rs"]
|
||||
pub mod temprole;
|
||||
#[path = "admin/tempvoc.rs"]
|
||||
pub mod tempvoc;
|
||||
#[path = "admin/tempvoc_cmd.rs"]
|
||||
pub mod tempvoc_cmd;
|
||||
#[path = "profile/theme.rs"]
|
||||
pub mod theme;
|
||||
#[path = "admin/ticket.rs"]
|
||||
pub mod ticket;
|
||||
#[path = "admin/ticket_member.rs"]
|
||||
pub mod ticket_member;
|
||||
#[path = "admin/tickets.rs"]
|
||||
pub mod tickets;
|
||||
#[path = "admin/unban.rs"]
|
||||
pub mod unban;
|
||||
#[path = "admin/unbanall.rs"]
|
||||
@@ -244,34 +266,12 @@ pub mod viewlogs;
|
||||
pub mod vocinfo;
|
||||
#[path = "admin/voicekick.rs"]
|
||||
pub mod voicekick;
|
||||
#[path = "admin/ticket.rs"]
|
||||
pub mod ticket;
|
||||
#[path = "admin/tickets.rs"]
|
||||
pub mod tickets;
|
||||
#[path = "general/showpics.rs"]
|
||||
pub mod showpics;
|
||||
#[path = "admin/suggestion.rs"]
|
||||
pub mod suggestion;
|
||||
#[path = "admin/autopublish.rs"]
|
||||
pub mod autopublish;
|
||||
#[path = "admin/tempvoc.rs"]
|
||||
pub mod tempvoc;
|
||||
#[path = "admin/tempvoc_cmd.rs"]
|
||||
pub mod tempvoc_cmd;
|
||||
#[path = "admin/voicelog.rs"]
|
||||
pub mod voicelog;
|
||||
#[path = "admin/voicemove.rs"]
|
||||
pub mod voicemove;
|
||||
#[path = "admin/warn.rs"]
|
||||
pub mod warn;
|
||||
#[path = "admin/claim.rs"]
|
||||
pub mod claim;
|
||||
#[path = "admin/close.rs"]
|
||||
pub mod close;
|
||||
#[path = "admin/rename.rs"]
|
||||
pub mod rename;
|
||||
#[path = "admin/ticket_member.rs"]
|
||||
pub mod ticket_member;
|
||||
#[path = "profile/watch.rs"]
|
||||
pub mod watch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user