mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-03 15:07:37 +02:00
clean dossier commands et correction quelque commands
This commit is contained in:
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for AddroleCommand {
|
||||
examples: &["+addrole @User @Membre"],
|
||||
alias_source_key: "addrole",
|
||||
default_aliases: &["ar"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for AutoBackupCommand {
|
||||
examples: &["+autobackup serveur 3", "+autobackup emoji 7"],
|
||||
alias_source_key: "autobackup",
|
||||
default_aliases: &["abkp"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for AutoconfiglogCommand {
|
||||
examples: &["+autoconfiglog"],
|
||||
alias_source_key: "autoconfiglog",
|
||||
default_aliases: &["acl"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for AutoReactCommand {
|
||||
examples: &["+autoreact add #general 😀", "+autoreact list"],
|
||||
alias_source_key: "autoreact",
|
||||
default_aliases: &["ar", "reactauto"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,7 @@ impl crate::commands::command_contract::CommandSpec for BackupCommand {
|
||||
],
|
||||
alias_source_key: "backup",
|
||||
default_aliases: &["bkp"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for BanCommand {
|
||||
examples: &["+ban @User"],
|
||||
alias_source_key: "ban",
|
||||
default_aliases: &["b"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for BanlistCommand {
|
||||
examples: &["+banlist"],
|
||||
alias_source_key: "banlist",
|
||||
default_aliases: &["bls"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -87,6 +87,7 @@ impl crate::commands::command_contract::CommandSpec for BlCommand {
|
||||
examples: &["+bl", "+help bl"],
|
||||
alias_source_key: "bl",
|
||||
default_aliases: &["bls"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,6 +92,7 @@ impl crate::commands::command_contract::CommandSpec for BlinfoCommand {
|
||||
examples: &["+blinfo", "+bo", "+help blinfo"],
|
||||
alias_source_key: "blinfo",
|
||||
default_aliases: &["bli"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for BoostembedCommand {
|
||||
examples: &["+boostembed on", "+boostembed test"],
|
||||
alias_source_key: "boostembed",
|
||||
default_aliases: &["bembed"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for BoostlogCommand {
|
||||
examples: &["+boostlog on #logs", "+boostlog off"],
|
||||
alias_source_key: "boostlog",
|
||||
default_aliases: &["blog"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for BringAllCommand {
|
||||
examples: &["+bringall #Event", "+bringall"],
|
||||
alias_source_key: "bringall",
|
||||
default_aliases: &["ball", "vbring"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@ impl crate::commands::command_contract::CommandSpec for ButtonCommand {
|
||||
],
|
||||
alias_source_key: "button",
|
||||
default_aliases: &["btn"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for CleanupCommand {
|
||||
examples: &["+cleanup #General"],
|
||||
alias_source_key: "cleanup",
|
||||
default_aliases: &["vclean", "vcleanup"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for ClearAllSanctionsCommand
|
||||
examples: &["+clear all sanctions"],
|
||||
alias_source_key: "clear_all_sanctions",
|
||||
default_aliases: &["casanctions"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,7 @@ impl crate::commands::command_contract::CommandSpec for ClearBlCommand {
|
||||
examples: &["+clear bl", "+cl", "+help clear bl"],
|
||||
alias_source_key: "clear_bl",
|
||||
default_aliases: &["cbl"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for ClearMessagesCommand {
|
||||
examples: &["+clear 20", "+clear 20 @User"],
|
||||
alias_source_key: "clear_messages",
|
||||
default_aliases: &["purge"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,7 @@ impl crate::commands::command_contract::CommandSpec for ClearOwnersCommand {
|
||||
examples: &["+clear owners", "+cs", "+help clear owners"],
|
||||
alias_source_key: "clear_owners",
|
||||
default_aliases: &["cro"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for ClearSanctionsCommand {
|
||||
examples: &["+clear sanctions @User"],
|
||||
alias_source_key: "clear_sanctions",
|
||||
default_aliases: &["csanctions"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for CmuteCommand {
|
||||
examples: &["+cmute @User"],
|
||||
alias_source_key: "cmute",
|
||||
default_aliases: &["cm"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@ impl crate::commands::command_contract::CommandSpec for CreateCommand {
|
||||
],
|
||||
alias_source_key: "create",
|
||||
default_aliases: &["mkemoji", "ce"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for DelSanctionCommand {
|
||||
examples: &["+del sanction @User 1"],
|
||||
alias_source_key: "del_sanction",
|
||||
default_aliases: &["delsanction"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for DelroleCommand {
|
||||
examples: &["+delrole @User @Membre"],
|
||||
alias_source_key: "delrole",
|
||||
default_aliases: &["dr"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for DerankCommand {
|
||||
examples: &["+derank @User"],
|
||||
alias_source_key: "derank",
|
||||
default_aliases: &["drk"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for EmbedCommand {
|
||||
examples: &["+embed"],
|
||||
alias_source_key: "embed",
|
||||
default_aliases: &["emb"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for EndCommand {
|
||||
examples: &["+end giveaway 123456789012345678"],
|
||||
alias_source_key: "end",
|
||||
default_aliases: &["gend"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for GiveawayCommand {
|
||||
examples: &["+giveaway"],
|
||||
alias_source_key: "giveaway",
|
||||
default_aliases: &["gstart", "gw"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for HideCommand {
|
||||
examples: &["+hide", "+hide #general"],
|
||||
alias_source_key: "hide",
|
||||
default_aliases: &["hd"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for HideallCommand {
|
||||
examples: &["+hideall"],
|
||||
alias_source_key: "hideall",
|
||||
default_aliases: &["hda"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,7 @@ impl crate::commands::command_contract::CommandSpec for InviteCommand {
|
||||
examples: &["+invite", "+ie", "+help invite"],
|
||||
alias_source_key: "invite",
|
||||
default_aliases: &["ivt"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,7 @@ impl crate::commands::command_contract::CommandSpec for JoinCommand {
|
||||
],
|
||||
alias_source_key: "join",
|
||||
default_aliases: &["jset"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for KickCommand {
|
||||
examples: &["+kick @User"],
|
||||
alias_source_key: "kick",
|
||||
default_aliases: &["k"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,7 @@ impl crate::commands::command_contract::CommandSpec for LeaveCommand {
|
||||
examples: &["+leave", "+le", "+help leave"],
|
||||
alias_source_key: "leave",
|
||||
default_aliases: &["lvg"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@ impl crate::commands::command_contract::CommandSpec for LeaveSettingsCommand {
|
||||
],
|
||||
alias_source_key: "leave_settings",
|
||||
default_aliases: &["lset"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for LockCommand {
|
||||
examples: &["+lock", "+lock #general"],
|
||||
alias_source_key: "lock",
|
||||
default_aliases: &["lk"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for LockallCommand {
|
||||
examples: &["+lockall"],
|
||||
alias_source_key: "lockall",
|
||||
default_aliases: &["lka"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for MassiveRoleCommand {
|
||||
examples: &["+massiverole @VIP", "+massiverole @VIP @Membres"],
|
||||
alias_source_key: "massiverole",
|
||||
default_aliases: &["mrole", "mr"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for MessagelogCommand {
|
||||
examples: &["+messagelog on #logs", "+messagelog off"],
|
||||
alias_source_key: "messagelog",
|
||||
default_aliases: &["msglog"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for ModlogCommand {
|
||||
examples: &["+modlog on #logs", "+modlog off"],
|
||||
alias_source_key: "modlog",
|
||||
default_aliases: &["mlog"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for MuteCommand {
|
||||
examples: &["+mute @User abus"],
|
||||
alias_source_key: "mute",
|
||||
default_aliases: &["tmute"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for MutelistCommand {
|
||||
examples: &["+mutelist"],
|
||||
alias_source_key: "mutelist",
|
||||
default_aliases: &["ml"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for NewStickerCommand {
|
||||
examples: &["+newsticker cool_pack"],
|
||||
alias_source_key: "newsticker",
|
||||
default_aliases: &["stcreate", "nst"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for NologCommand {
|
||||
examples: &["+nolog add #secret all", "+nolog del #secret message"],
|
||||
alias_source_key: "nolog",
|
||||
default_aliases: &["nlg"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,7 @@ impl crate::commands::command_contract::CommandSpec for OwnerCommand {
|
||||
examples: &["+owner", "+or", "+help owner"],
|
||||
alias_source_key: "owner",
|
||||
default_aliases: &["own"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for RaidlogCommand {
|
||||
examples: &["+raidlog #logs", "+raidlog off"],
|
||||
alias_source_key: "raidlog",
|
||||
default_aliases: &["rdlog"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for RenewCommand {
|
||||
examples: &["+renew", "+renew #general"],
|
||||
alias_source_key: "renew",
|
||||
default_aliases: &["nuke", "rebuildch"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for RerollCommand {
|
||||
examples: &["+reroll"],
|
||||
alias_source_key: "reroll",
|
||||
default_aliases: &["rro", "greroll"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for RolelogCommand {
|
||||
examples: &["+rolelog on #logs", "+rolelog off"],
|
||||
alias_source_key: "rolelog",
|
||||
default_aliases: &["rlog"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for SanctionsCommand {
|
||||
examples: &["+sanctions @User"],
|
||||
alias_source_key: "sanctions",
|
||||
default_aliases: &["sanct"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,7 @@ impl crate::commands::command_contract::CommandSpec for SayCommand {
|
||||
examples: &["+say", "+sy", "+help say"],
|
||||
alias_source_key: "say",
|
||||
default_aliases: &["sym"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@ impl crate::commands::command_contract::CommandSpec for SetBoostembedCommand {
|
||||
],
|
||||
alias_source_key: "set_boostembed",
|
||||
default_aliases: &["sboostembed"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for SetModlogsCommand {
|
||||
examples: &["+set modlogs", "+set modlogs warn off"],
|
||||
alias_source_key: "set_modlogs",
|
||||
default_aliases: &["smodlog"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for SyncCommand {
|
||||
examples: &["+sync all", "+sync #general"],
|
||||
alias_source_key: "sync",
|
||||
default_aliases: &["chsync"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for TempbanCommand {
|
||||
examples: &["+tempban @User 1d"],
|
||||
alias_source_key: "tempban",
|
||||
default_aliases: &["tb"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for TempcmuteCommand {
|
||||
examples: &["+tempcmute @User 5m"],
|
||||
alias_source_key: "tempcmute",
|
||||
default_aliases: &["tcm"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for TempmuteCommand {
|
||||
examples: &["+tempmute @User 10m"],
|
||||
alias_source_key: "tempmute",
|
||||
default_aliases: &["tm"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for TempRoleCommand {
|
||||
examples: &["+temprole @User @VIP 2h"],
|
||||
alias_source_key: "temprole",
|
||||
default_aliases: &["trole", "tmprole"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for UnbanCommand {
|
||||
examples: &["+unban @User"],
|
||||
alias_source_key: "unban",
|
||||
default_aliases: &["ub"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for UnbanAllCommand {
|
||||
examples: &["+unbanall"],
|
||||
alias_source_key: "unbanall",
|
||||
default_aliases: &["uball", "clearbans"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,6 +74,7 @@ impl crate::commands::command_contract::CommandSpec for UnblCommand {
|
||||
examples: &["+unbl", "+ul", "+help unbl"],
|
||||
alias_source_key: "unbl",
|
||||
default_aliases: &["unb"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for UncmuteCommand {
|
||||
examples: &["+uncmute @User"],
|
||||
alias_source_key: "uncmute",
|
||||
default_aliases: &["ucm"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for UnhideCommand {
|
||||
examples: &["+unhide", "+unhide #general"],
|
||||
alias_source_key: "unhide",
|
||||
default_aliases: &["uhd"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for UnhideallCommand {
|
||||
examples: &["+unhideall"],
|
||||
alias_source_key: "unhideall",
|
||||
default_aliases: &["uhda"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for UnlockCommand {
|
||||
examples: &["+unlock", "+unlock #general"],
|
||||
alias_source_key: "unlock",
|
||||
default_aliases: &["ulk"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for UnlockallCommand {
|
||||
examples: &["+unlockall"],
|
||||
alias_source_key: "unlockall",
|
||||
default_aliases: &["ulka"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for UnMassiveRoleCommand {
|
||||
examples: &["+unmassiverole @VIP", "+unmassiverole @VIP @Membres"],
|
||||
alias_source_key: "unmassiverole",
|
||||
default_aliases: &["umrole", "umr"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for UnmuteCommand {
|
||||
examples: &["+unmute @User"],
|
||||
alias_source_key: "unmute",
|
||||
default_aliases: &["um"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for UnmuteallCommand {
|
||||
examples: &["+unmuteall"],
|
||||
alias_source_key: "unmuteall",
|
||||
default_aliases: &["uma"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -83,6 +83,7 @@ impl crate::commands::command_contract::CommandSpec for UnownerCommand {
|
||||
examples: &["+unowner", "+ur", "+help unowner"],
|
||||
alias_source_key: "unowner",
|
||||
default_aliases: &["uow"],
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for UnTempRoleCommand {
|
||||
examples: &["+untemprole @User @VIP"],
|
||||
alias_source_key: "untemprole",
|
||||
default_aliases: &["untrole", "deltrole"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for VoiceKickCommand {
|
||||
examples: &["+voicekick @User", "+voicekick @U1 @U2"],
|
||||
alias_source_key: "voicekick",
|
||||
default_aliases: &["vk", "vdisconnect"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ impl crate::commands::command_contract::CommandSpec for VoicelogCommand {
|
||||
examples: &["+voicelog on #logs", "+voicelog off"],
|
||||
alias_source_key: "voicelog",
|
||||
default_aliases: &["vlog"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for VoiceMoveCommand {
|
||||
examples: &["+voicemove #General #Event"],
|
||||
alias_source_key: "voicemove",
|
||||
default_aliases: &["vmove", "vmoveall"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ impl crate::commands::command_contract::CommandSpec for WarnCommand {
|
||||
examples: &["+warn @User spam"],
|
||||
alias_source_key: "warn",
|
||||
default_aliases: &["avert"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ pub struct CommandMetadata {
|
||||
pub key: &'static str,
|
||||
pub command: &'static str,
|
||||
pub category: &'static str,
|
||||
pub default_permission: u8,
|
||||
pub params: &'static str,
|
||||
pub summary: &'static str,
|
||||
pub description: &'static str,
|
||||
|
||||
@@ -145,6 +145,7 @@ impl crate::commands::command_contract::CommandSpec for AlladminsCommand {
|
||||
examples: &["+alladmins", "+as", "+help alladmins"],
|
||||
alias_source_key: "alladmins",
|
||||
default_aliases: &["aad"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -128,6 +128,7 @@ impl crate::commands::command_contract::CommandSpec for AllbotsCommand {
|
||||
examples: &["+allbots", "+as", "+help allbots"],
|
||||
alias_source_key: "allbots",
|
||||
default_aliases: &["abt"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,6 +73,7 @@ impl crate::commands::command_contract::CommandSpec for BannerCommand {
|
||||
examples: &["+banner", "+br", "+help banner"],
|
||||
alias_source_key: "banner",
|
||||
default_aliases: &["bnr"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -140,6 +140,7 @@ impl crate::commands::command_contract::CommandSpec for BoostersCommand {
|
||||
examples: &["+boosters", "+bs", "+help boosters"],
|
||||
alias_source_key: "boosters",
|
||||
default_aliases: &["bst"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,6 +144,7 @@ impl crate::commands::command_contract::CommandSpec for BotadminsCommand {
|
||||
examples: &["+botadmins", "+bs", "+help botadmins"],
|
||||
alias_source_key: "botadmins",
|
||||
default_aliases: &["bad"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -103,6 +103,7 @@ impl crate::commands::command_contract::CommandSpec for CalcCommand {
|
||||
examples: &["+calc", "+cc", "+help calc"],
|
||||
alias_source_key: "calc",
|
||||
default_aliases: &["clc"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,6 +107,7 @@ impl crate::commands::command_contract::CommandSpec for ChannelCommand {
|
||||
examples: &["+channel", "+cl", "+help channel"],
|
||||
alias_source_key: "channel",
|
||||
default_aliases: &["chl"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for ChooseCommand {
|
||||
examples: &["+choose rouge | bleu | vert"],
|
||||
alias_source_key: "choose",
|
||||
default_aliases: &["pick", "random"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,6 +92,7 @@ impl crate::commands::command_contract::CommandSpec for EmojiCommand {
|
||||
examples: &["+emoji", "+ei", "+help emoji"],
|
||||
alias_source_key: "emoji",
|
||||
default_aliases: &["emj"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,6 @@ use crate::db::{
|
||||
DbPoolKey, get_help_aliases_enabled, get_help_perms_enabled, get_help_type,
|
||||
list_command_aliases,
|
||||
};
|
||||
use crate::permissions;
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
enum HelpLayout {
|
||||
@@ -55,6 +54,7 @@ struct HelpPage {
|
||||
struct CommandDoc {
|
||||
key: &'static str,
|
||||
command: &'static str,
|
||||
default_permission: u8,
|
||||
params: &'static str,
|
||||
summary: &'static str,
|
||||
description: &'static str,
|
||||
@@ -161,8 +161,8 @@ fn help_page_for_command(
|
||||
"owner" | "unowner" | "clear_owners" | "bl" | "unbl" | "blinfo" | "clear_bl"
|
||||
| "allbots" | "alladmins" | "botadmins" | "mainprefix" | "prefix" | "mp" | "invite"
|
||||
| "leave" | "discussion" => "administration",
|
||||
"perms" | "del" | "clear_perms" | "allperms" | "alias" | "help" | "helptype"
|
||||
| "helpalias" => "permissions",
|
||||
"perms" | "del" | "clear_perms" | "allperms" | "alias" | "help"
|
||||
| "helpsetting" => "permissions",
|
||||
_ => match meta.category {
|
||||
"general" => "infos",
|
||||
"profile" => "bot",
|
||||
@@ -311,6 +311,7 @@ fn command_doc(key: &str) -> Option<CommandDoc> {
|
||||
Some(CommandDoc {
|
||||
key: meta.key,
|
||||
command: meta.command,
|
||||
default_permission: meta.default_permission,
|
||||
params: meta.params,
|
||||
summary: meta.summary,
|
||||
description: meta.description,
|
||||
@@ -418,7 +419,7 @@ fn help_lookup_to_key(input: &str) -> Option<&'static str> {
|
||||
"del perm" => Some("del_perm"),
|
||||
"clear perms" => Some("clear_perms"),
|
||||
"alias" => Some("alias"),
|
||||
"helpsetting" => Some("helpsetting"),
|
||||
"helpsetting" | "helpetting" => Some("helpsetting"),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
@@ -474,7 +475,7 @@ fn help_page_content(
|
||||
let summary = meta.summary;
|
||||
let alias_key = meta.alias_source_key;
|
||||
let permission = if perms_enabled {
|
||||
format!(" {}", format_permission_level(permissions::default_permission(meta.key)))
|
||||
format!(" {}", format_permission_level(meta.default_permission))
|
||||
} else {
|
||||
String::new()
|
||||
};
|
||||
@@ -740,18 +741,26 @@ pub async fn handle_help(ctx: &Context, msg: &Message, args: &[&str]) {
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n");
|
||||
|
||||
let embed = CreateEmbed::new()
|
||||
let mut embed = CreateEmbed::new()
|
||||
.title(format!("Aide commande · +{}", doc.command))
|
||||
.description(doc.description)
|
||||
.field("Commande", format!("`+{}`", doc.command), false)
|
||||
.field("Clé ACL", format!("`{}`", doc.key), false)
|
||||
.field("Catégorie", help_page_title_for_command_key(doc.key), false)
|
||||
.field("Permission", permission_level_description(permissions::default_permission(doc.key)), false)
|
||||
.field("Alias", alias_text, false)
|
||||
.field("Paramètres", doc.params, false)
|
||||
.field("Résumé", doc.summary, false)
|
||||
.field("Exemples", truncate_text(&examples, 1024), false)
|
||||
.color(crate::commands::common::theme_color(ctx).await);
|
||||
.field("Exemples", truncate_text(&examples, 1024), false);
|
||||
|
||||
if state.perms_enabled {
|
||||
embed = embed.field(
|
||||
"Permission",
|
||||
permission_level_description(doc.default_permission),
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
||||
embed = embed.color(crate::commands::common::theme_color(ctx).await);
|
||||
|
||||
let _ = msg
|
||||
.channel_id
|
||||
@@ -794,6 +803,7 @@ impl crate::commands::command_contract::CommandSpec for HelpCommand {
|
||||
examples: &["+help", "+hp", "+help help"],
|
||||
alias_source_key: "help",
|
||||
default_aliases: &["hp"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ impl crate::commands::command_contract::CommandSpec for LoadingCommand {
|
||||
examples: &["+loading 10s Traitement en cours"],
|
||||
alias_source_key: "loading",
|
||||
default_aliases: &["loadbar", "bar"],
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -86,6 +86,7 @@ impl crate::commands::command_contract::CommandSpec for MemberCommand {
|
||||
examples: &["+member", "+mr", "+help member"],
|
||||
alias_source_key: "member",
|
||||
default_aliases: &["mbr"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,6 +73,7 @@ impl crate::commands::command_contract::CommandSpec for PicCommand {
|
||||
examples: &["+pic", "+pc", "+help pic"],
|
||||
alias_source_key: "pic",
|
||||
default_aliases: &["pfp"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,6 +59,7 @@ impl crate::commands::command_contract::CommandSpec for PingCommand {
|
||||
examples: &["+ping", "+pg", "+help ping"],
|
||||
alias_source_key: "ping",
|
||||
default_aliases: &["pg"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -101,6 +101,7 @@ impl crate::commands::command_contract::CommandSpec for RoleCommand {
|
||||
examples: &["+role", "+re", "+help role"],
|
||||
alias_source_key: "role",
|
||||
default_aliases: &["rol"],
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user