mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-03 23:36:25 +02:00
chore(commands): reorganize command files by metadata categories
This commit is contained in:
@@ -74,13 +74,13 @@ impl crate::commands::command_contract::CommandSpec for AutoBackupCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "autobackup",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "<serveur/emoji> <jours>",
|
||||
description: "Definit l'intervalle en jours des backups automatiques.",
|
||||
examples: &["+autobackup serveur 3", "+autobackup emoji 7"],
|
||||
default_aliases: &["abkp"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -118,7 +118,7 @@ impl crate::commands::command_contract::CommandSpec for AutopublishCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "autopublish",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "on|off [#canal]",
|
||||
description: "Affiche, active ou desactive la publication automatique des annonces.",
|
||||
examples: &[
|
||||
@@ -128,7 +128,7 @@ impl crate::commands::command_contract::CommandSpec for AutopublishCommand {
|
||||
],
|
||||
default_aliases: &["apb"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,13 +144,13 @@ impl crate::commands::command_contract::CommandSpec for AutoReactCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "autoreact",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "<add/del> <salon> <emoji> | list",
|
||||
description: "Ajoute, retire et liste les reactions automatiquement appliquees aux messages d'un salon.",
|
||||
examples: &["+autoreact add #general 😀", "+autoreact list"],
|
||||
default_aliases: &["ar", "reactauto"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -164,7 +164,7 @@ impl crate::commands::command_contract::CommandSpec for BackupCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "backup",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "<serveur/emoji> <nom> | list/delete/load",
|
||||
description: "Cree, liste, supprime et recharge des backups serveur ou emojis.",
|
||||
examples: &[
|
||||
@@ -174,7 +174,7 @@ impl crate::commands::command_contract::CommandSpec for BackupCommand {
|
||||
],
|
||||
default_aliases: &["bkp"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ impl crate::commands::command_contract::CommandSpec for ButtonCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "button",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "<add/del> <lien>",
|
||||
description: "Ajoute ou supprime un bouton de decoration personnalise sur un message du bot.",
|
||||
examples: &[
|
||||
@@ -53,7 +53,7 @@ impl crate::commands::command_contract::CommandSpec for ButtonCommand {
|
||||
],
|
||||
default_aliases: &["btn"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,7 @@ impl crate::commands::command_contract::CommandSpec for CreateCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "create",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "[emoji/url] [nom]",
|
||||
description: "Cree un emoji custom a partir d'une image, d'un lien ou d'un emoji nitro.",
|
||||
examples: &[
|
||||
@@ -99,7 +99,7 @@ impl crate::commands::command_contract::CommandSpec for CreateCommand {
|
||||
],
|
||||
default_aliases: &["mkemoji", "ce"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,13 +24,13 @@ impl crate::commands::command_contract::CommandSpec for NewStickerCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "newsticker",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "[nom]",
|
||||
description: "Cree un nouveau sticker a partir d'un sticker ou fichier repondu.",
|
||||
examples: &["+newsticker cool_pack"],
|
||||
default_aliases: &["stcreate", "nst"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -197,13 +197,13 @@ impl crate::commands::command_contract::CommandSpec for PiconlyCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "piconly",
|
||||
category: "outils",
|
||||
category: "automation",
|
||||
params: "<add/del> [salon]",
|
||||
description: "Definit ou supprime un salon selfie, ou les membres ne peuvent envoyer que des photos.",
|
||||
examples: &["+piconly", "+piconly add #selfie", "+piconly del #selfie"],
|
||||
default_aliases: &["selfieonly"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -78,13 +78,13 @@ impl crate::commands::command_contract::CommandSpec for ChangeCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "change",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<commande> <niveau 0-9> | reset",
|
||||
description: "Definit le niveau ACL requis pour une commande ou reinitialise les overrides.",
|
||||
examples: &["+change", "+ce", "+help change"],
|
||||
default_aliases: &["chg"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 9,
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ impl crate::commands::command_contract::CommandSpec for ChangeallCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "changeall",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<niveau_source 0-9> <niveau_cible 0-9>",
|
||||
description: "Remplace en masse un niveau ACL source par un niveau ACL cible.",
|
||||
examples: &["+changeall", "+cl", "+help changeall"],
|
||||
@@ -88,13 +88,13 @@ impl crate::commands::command_contract::CommandSpec for CompetCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "compet",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<texte[, ,texte2,...]>",
|
||||
description: "Configure la rotation des messages d activite en mode competing.",
|
||||
examples: &["+compet", "+ct", "+help compet"],
|
||||
default_aliases: &["cpt"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,13 +32,13 @@ impl crate::commands::command_contract::CommandSpec for DndCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "dnd",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "aucun",
|
||||
description: "Change le statut du bot en do not disturb et sauvegarde ce statut.",
|
||||
examples: &["+dnd", "+dd", "+help dnd"],
|
||||
default_aliases: &["dnm"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,13 +32,13 @@ impl crate::commands::command_contract::CommandSpec for IdleCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "idle",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "aucun",
|
||||
description: "Change le statut du bot en idle et sauvegarde ce statut.",
|
||||
examples: &["+idle", "+ie", "+help idle"],
|
||||
default_aliases: &["idl"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,13 +32,13 @@ impl crate::commands::command_contract::CommandSpec for InvisibleCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "invisible",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "aucun",
|
||||
description: "Change le statut du bot en invisible et sauvegarde ce statut.",
|
||||
examples: &["+invisible", "+ie", "+help invisible"],
|
||||
default_aliases: &["ivs"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,13 +88,13 @@ impl crate::commands::command_contract::CommandSpec for ListenCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "listen",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<texte[, ,texte2,...]>",
|
||||
description: "Configure la rotation des messages d activite en mode listening.",
|
||||
examples: &["+listen", "+ln", "+help listen"],
|
||||
default_aliases: &["lsn"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ impl crate::commands::command_contract::CommandSpec for MainprefixCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "mainprefix",
|
||||
category: "administration",
|
||||
category: "botconfig",
|
||||
params: "<prefix>",
|
||||
description: "Definit le prefixe principal utilise par le bot sur tous les serveurs.",
|
||||
examples: &["+mainprefix", "+mx", "+help mainprefix"],
|
||||
@@ -32,13 +32,13 @@ impl crate::commands::command_contract::CommandSpec for OnlineCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "online",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "aucun",
|
||||
description: "Change le statut du bot en online et sauvegarde ce statut.",
|
||||
examples: &["+online", "+oe", "+help online"],
|
||||
default_aliases: &["onl"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,13 +88,13 @@ impl crate::commands::command_contract::CommandSpec for PlaytoCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "playto",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<texte[, ,texte2,...]>",
|
||||
description: "Configure la rotation des messages d activite en mode playing.",
|
||||
examples: &["+playto", "+po", "+help playto"],
|
||||
default_aliases: &["ply"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,13 +58,13 @@ impl crate::commands::command_contract::CommandSpec for PrefixCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "prefix",
|
||||
category: "administration",
|
||||
category: "botconfig",
|
||||
params: "<prefix>",
|
||||
description: "Definit le prefixe du serveur courant.",
|
||||
examples: &["+prefix", "+px", "+help prefix"],
|
||||
default_aliases: &["pfx"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,13 +35,13 @@ impl crate::commands::command_contract::CommandSpec for RemoveActivityCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "remove_activity",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "aucun",
|
||||
description: "Arrete la rotation d activite et retire lactivite courante du bot.",
|
||||
examples: &["+remove activity", "+ry", "+help remove activity"],
|
||||
default_aliases: &["rma"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -322,13 +322,13 @@ impl crate::commands::command_contract::CommandSpec for SetCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "set",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "name <nom> | pic <url> | banner <url> | profil <nom> ;; <url_pic> ;; <url_banner> | perm ...",
|
||||
description: "Modifie le nom, lavatar, la banniere ou des options avancees via les sous commandes.",
|
||||
examples: &["+set", "+st", "+help set"],
|
||||
default_aliases: &["cfg"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,7 @@ impl crate::commands::command_contract::CommandSpec for ShadowbotCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "shadowbot",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "aucun",
|
||||
description: "Affiche les informations globales et letat du bot.",
|
||||
examples: &["+shadowbot", "+st", "+help shadowbot"],
|
||||
@@ -88,13 +88,13 @@ impl crate::commands::command_contract::CommandSpec for StreamCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "stream",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<texte[, ,texte2,...]>",
|
||||
description: "Configure la rotation des messages d activite en mode streaming.",
|
||||
examples: &["+stream", "+sm", "+help stream"],
|
||||
default_aliases: &["stm"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,13 +51,13 @@ impl crate::commands::command_contract::CommandSpec for ThemeCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "theme",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<couleur|#hex|0xhex>",
|
||||
description: "Met a jour la couleur principale des embeds du bot.",
|
||||
examples: &["+theme", "+te", "+help theme"],
|
||||
default_aliases: &["thm"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,13 +88,13 @@ impl crate::commands::command_contract::CommandSpec for WatchCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "watch",
|
||||
category: "bot",
|
||||
category: "botconfig",
|
||||
params: "<texte[, ,texte2,...]>",
|
||||
description: "Configure la rotation des messages d activite en mode watching.",
|
||||
examples: &["+watch", "+wh", "+help watch"],
|
||||
default_aliases: &["wtc"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -66,13 +66,13 @@ impl crate::commands::command_contract::CommandSpec for BringAllCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "bringall",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "[salon_vocal_destination]",
|
||||
description: "Deplace tous les membres actuellement en vocal vers un salon cible.",
|
||||
examples: &["+bringall #Event", "+bringall"],
|
||||
default_aliases: &["ball", "vbring"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,13 +37,13 @@ impl crate::commands::command_contract::CommandSpec for HideCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "hide",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "[salon]",
|
||||
description: "Retire la visibilite d un salon.",
|
||||
examples: &["+hide", "+hide #general"],
|
||||
default_aliases: &["hd"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ impl crate::commands::command_contract::CommandSpec for HideallCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "hideall",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "aucun",
|
||||
description: "Retire la visibilite de tous les salons.",
|
||||
examples: &["+hideall"],
|
||||
@@ -37,13 +37,13 @@ impl crate::commands::command_contract::CommandSpec for LockCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "lock",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "[salon]",
|
||||
description: "Verrouille un salon texte ou vocal.",
|
||||
examples: &["+lock", "+lock #general"],
|
||||
default_aliases: &["lk"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@ impl crate::commands::command_contract::CommandSpec for LockallCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "lockall",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "aucun",
|
||||
description: "Verrouille tous les salons du serveur.",
|
||||
examples: &["+lockall"],
|
||||
@@ -110,7 +110,7 @@ impl crate::commands::command_contract::CommandSpec for PublicCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "public",
|
||||
category: "moderation",
|
||||
category: "channel",
|
||||
params: "<on/off> | <allow/deny/reset> [#salon]",
|
||||
description: "Active/desactive les commandes publiques globalement ou par salon.",
|
||||
examples: &[
|
||||
@@ -120,7 +120,7 @@ impl crate::commands::command_contract::CommandSpec for PublicCommand {
|
||||
],
|
||||
default_aliases: &["pubc"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,13 +55,13 @@ impl crate::commands::command_contract::CommandSpec for RenewCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "renew",
|
||||
category: "moderation",
|
||||
category: "channel",
|
||||
params: "[salon]",
|
||||
description: "Supprime puis recree un salon textuel en conservant les options principales.",
|
||||
examples: &["+renew", "+renew #general"],
|
||||
default_aliases: &["nuke", "rebuildch"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -114,13 +114,13 @@ impl crate::commands::command_contract::CommandSpec for SlowmodeCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "slowmode",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "<duree> [salon]",
|
||||
description: "Modifie la duree du mode lent sur un salon texte (maximum 6 heures).",
|
||||
examples: &["+slowmode 10s", "+slowmode 2m #general", "+slowmode off"],
|
||||
default_aliases: &["sm"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1504,13 +1504,13 @@ impl crate::commands::command_contract::CommandSpec for TempvocCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "tempvoc",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "[cmd]",
|
||||
description: "Affiche le menu de configuration du systeme de vocaux temporaires.",
|
||||
examples: &["+tempvoc", "+tempvoc cmd", "+help tempvoc"],
|
||||
default_aliases: &[],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,7 @@ impl crate::commands::command_contract::CommandSpec for TempvocCmdCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "tempvoc_cmd",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "aucun",
|
||||
description: "Affiche un rappel des commandes et du fonctionnement de tempvoc.",
|
||||
examples: &["+tempvoc cmd", "+help tempvoc_cmd"],
|
||||
@@ -37,13 +37,13 @@ impl crate::commands::command_contract::CommandSpec for UnhideCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "unhide",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "[salon]",
|
||||
description: "Rend a nouveau visible un salon.",
|
||||
examples: &["+unhide", "+unhide #general"],
|
||||
default_aliases: &["uhd"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ impl crate::commands::command_contract::CommandSpec for UnhideallCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "unhideall",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "aucun",
|
||||
description: "Rend visibles tous les salons du serveur.",
|
||||
examples: &["+unhideall"],
|
||||
@@ -37,13 +37,13 @@ impl crate::commands::command_contract::CommandSpec for UnlockCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "unlock",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "[salon]",
|
||||
description: "Deverrouille un salon texte ou vocal.",
|
||||
examples: &["+unlock", "+unlock #general"],
|
||||
default_aliases: &["ulk"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@ impl crate::commands::command_contract::CommandSpec for UnlockallCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "unlockall",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "aucun",
|
||||
description: "Deverrouille tous les salons du serveur.",
|
||||
examples: &["+unlockall"],
|
||||
@@ -41,13 +41,13 @@ impl crate::commands::command_contract::CommandSpec for VoiceKickCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "voicekick",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "<membre...>",
|
||||
description: "Deconnecte un ou plusieurs membres de leur salon vocal actuel.",
|
||||
examples: &["+voicekick @User", "+voicekick @U1 @U2"],
|
||||
default_aliases: &["vk", "vdisconnect"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -66,13 +66,13 @@ impl crate::commands::command_contract::CommandSpec for VoiceMoveCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "voicemove",
|
||||
category: "salons_vocal",
|
||||
category: "channel",
|
||||
params: "<salon_source> <salon_destination>",
|
||||
description: "Deplace tous les membres d'un salon vocal vers un autre salon.",
|
||||
examples: &["+voicemove #General #Event"],
|
||||
default_aliases: &["vmove", "vmoveall"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -351,13 +351,13 @@ impl crate::commands::command_contract::CommandSpec for AutoconfiglogCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "autoconfiglog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "aucun",
|
||||
description: "Cree automatiquement les salons de logs et les configure.",
|
||||
examples: &["+autoconfiglog"],
|
||||
default_aliases: &["acl"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -678,13 +678,13 @@ impl crate::commands::command_contract::CommandSpec for BoostembedCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "boostembed",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "[on|off|test|settings]",
|
||||
description: "Ouvre un panneau avec composants pour paramétrer l'embed boost et le salon où il est envoyé.",
|
||||
examples: &["+boostembed", "+boostembed settings", "+boostembed test"],
|
||||
default_aliases: &["bembed"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,13 +59,13 @@ impl crate::commands::command_contract::CommandSpec for BoostlogCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "boostlog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "<on [salon]|off>",
|
||||
description: "Active ou desactive les logs de boosts.",
|
||||
examples: &["+boostlog on #logs", "+boostlog off"],
|
||||
default_aliases: &["blog"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -126,7 +126,7 @@ impl crate::commands::command_contract::CommandSpec for JoinCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "join",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "settings [on/off] [salon] [message]",
|
||||
description: "Permet de configurer les actions quand un membre rejoint.",
|
||||
examples: &[
|
||||
@@ -135,7 +135,7 @@ impl crate::commands::command_contract::CommandSpec for JoinCommand {
|
||||
],
|
||||
default_aliases: &["jset"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -127,7 +127,7 @@ impl crate::commands::command_contract::CommandSpec for LeaveSettingsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "leave_settings",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "settings [on/off] [salon] [message]",
|
||||
description: "Configure les actions a executer quand un membre quitte le serveur.",
|
||||
examples: &[
|
||||
@@ -136,7 +136,7 @@ impl crate::commands::command_contract::CommandSpec for LeaveSettingsCommand {
|
||||
],
|
||||
default_aliases: &["lset"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,13 +59,13 @@ impl crate::commands::command_contract::CommandSpec for MessagelogCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "messagelog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "<on [salon]|off>",
|
||||
description: "Active ou desactive les logs des messages supprimes et edites.",
|
||||
examples: &["+messagelog on #logs", "+messagelog off"],
|
||||
default_aliases: &["msglog"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,13 +59,13 @@ impl crate::commands::command_contract::CommandSpec for ModlogCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "modlog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "<on [salon]|off>",
|
||||
description: "Active ou desactive les logs de moderation dans un salon cible.",
|
||||
examples: &["+modlog on #logs", "+modlog off"],
|
||||
default_aliases: &["mlog"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -110,13 +110,13 @@ impl crate::commands::command_contract::CommandSpec for NologCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "nolog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "<add/del> [salon] [message|voice|all]",
|
||||
description: "Desactive ou reactive les logs message/voice pour certains salons.",
|
||||
examples: &["+nolog add #secret all", "+nolog del #secret message"],
|
||||
default_aliases: &["nlg"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,13 +53,13 @@ impl crate::commands::command_contract::CommandSpec for RaidlogCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "raidlog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "[salon]|off",
|
||||
description: "Active les logs antiraid dans un salon ou les desactive.",
|
||||
examples: &["+raidlog #logs", "+raidlog off"],
|
||||
default_aliases: &["rdlog"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,13 +59,13 @@ impl crate::commands::command_contract::CommandSpec for RolelogCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "rolelog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "<on [salon]|off>",
|
||||
description: "Active ou desactive les logs des roles.",
|
||||
examples: &["+rolelog on #logs", "+rolelog off"],
|
||||
default_aliases: &["rlog"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,7 +100,7 @@ impl crate::commands::command_contract::CommandSpec for SetBoostembedCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "set_boostembed",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "<title|description|color> <valeur>",
|
||||
description: "Configure le titre, la description et la couleur de l embed boost.",
|
||||
examples: &[
|
||||
@@ -109,7 +109,7 @@ impl crate::commands::command_contract::CommandSpec for SetBoostembedCommand {
|
||||
],
|
||||
default_aliases: &["sboostembed"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -113,13 +113,13 @@ impl crate::commands::command_contract::CommandSpec for SetModlogsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "set_modlogs",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "[event on/off]",
|
||||
description: "Affiche ou modifie les evenements qui apparaissent dans les logs de moderation.",
|
||||
examples: &["+set modlogs", "+set modlogs warn off"],
|
||||
default_aliases: &["smodlog"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -258,13 +258,13 @@ impl crate::commands::command_contract::CommandSpec for ViewLogsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "viewlogs",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "[page]",
|
||||
description: "Affiche les derniers logs d'audit du serveur avec pagination. Les logs incluent tous les événements (modération, messages, rôles, salons, etc.)",
|
||||
examples: &["+viewlogs", "+viewlogs 2"],
|
||||
default_aliases: &["vlogs", "audit"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 0,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,13 +59,13 @@ impl crate::commands::command_contract::CommandSpec for VoicelogCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "voicelog",
|
||||
category: "logs",
|
||||
category: "config",
|
||||
params: "<on [salon]|off>",
|
||||
description: "Active ou desactive les logs de l activite vocale.",
|
||||
examples: &["+voicelog on #logs", "+voicelog off"],
|
||||
default_aliases: &["vlog"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -103,13 +103,13 @@ impl crate::commands::command_contract::CommandSpec for EndCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "end",
|
||||
category: "outils",
|
||||
category: "event",
|
||||
params: "giveaway <id_message>",
|
||||
description: "Permet de stopper instantanement un giveaway avec l'identifiant du message.",
|
||||
examples: &["+end giveaway 123456789012345678"],
|
||||
default_aliases: &["gend"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 0,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,13 +46,13 @@ impl crate::commands::command_contract::CommandSpec for GiveawayCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "giveaway",
|
||||
category: "outils",
|
||||
category: "event",
|
||||
params: "aucun",
|
||||
description: "Affiche une interface rapide pour initier un giveaway depuis le salon courant.",
|
||||
examples: &["+giveaway"],
|
||||
default_aliases: &["gstart", "gw"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,13 +59,13 @@ impl crate::commands::command_contract::CommandSpec for RerollCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "reroll",
|
||||
category: "outils",
|
||||
category: "event",
|
||||
params: "aucun (en reponse a un message)",
|
||||
description: "Choisit un nouveau gagnant depuis le message cible.",
|
||||
examples: &["+reroll"],
|
||||
default_aliases: &["rro", "greroll"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -95,7 +95,7 @@ impl crate::commands::command_contract::CommandSpec for CalcCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "calc",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "<expression>",
|
||||
description: "Evalue une expression numerique simple et renvoie le resultat.",
|
||||
examples: &["+calc", "+cc", "+help calc"],
|
||||
@@ -74,13 +74,13 @@ impl crate::commands::command_contract::CommandSpec for ChooseCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "choose",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "<option1 | option2 | ...>",
|
||||
description: "Lance un tirage au sort instantane parmi les options donnees.",
|
||||
examples: &["+choose rouge | bleu | vert"],
|
||||
default_aliases: &["pick", "random"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -69,13 +69,13 @@ impl crate::commands::command_contract::CommandSpec for EmbedCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "embed",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "title | description (v1)",
|
||||
description: "Affiche un generateur d'embed interactif version rapide.",
|
||||
examples: &["+embed"],
|
||||
default_aliases: &["emb"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 2,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ impl crate::commands::command_contract::CommandSpec for EmojiCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "emoji",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "<emoji>",
|
||||
description: "Affiche les details dun emoji fourni.",
|
||||
examples: &["+emoji", "+ei", "+help emoji"],
|
||||
@@ -100,13 +100,13 @@ impl crate::commands::command_contract::CommandSpec for LoadingCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "loading",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "<duree> <message>",
|
||||
description: "Anime une barre de progression avec la duree et le texte fournis.",
|
||||
examples: &["+loading 10s Traitement en cours"],
|
||||
default_aliases: &["loadbar", "bar"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,13 +28,13 @@ impl crate::commands::command_contract::CommandSpec for SayCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "say",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "<message...>",
|
||||
description: "Envoie un message brut dans le salon courant via le bot.",
|
||||
examples: &["+say", "+sy", "+help say"],
|
||||
default_aliases: &["sym"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -70,13 +70,13 @@ impl crate::commands::command_contract::CommandSpec for SnipeCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "snipe",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "[index]",
|
||||
description: "Affiche le dernier message supprime dans le salon ou un index de messages supprimes.",
|
||||
examples: &["+snipe", "+se", "+help snipe"],
|
||||
default_aliases: &["snp"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 0,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -504,7 +504,7 @@ impl crate::commands::command_contract::CommandSpec for SuggestionCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "suggestion",
|
||||
category: "outils",
|
||||
category: "fun",
|
||||
params: "<contenu...> | settings",
|
||||
description: "Publie une suggestion utilisateur ou ouvre le panneau de configuration.",
|
||||
examples: &[
|
||||
@@ -137,13 +137,13 @@ impl crate::commands::command_contract::CommandSpec for AlladminsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "alladmins",
|
||||
category: "administration",
|
||||
category: "info",
|
||||
params: "aucun",
|
||||
description: "Affiche les membres qui possedent des droits administrateur sur le serveur.",
|
||||
examples: &["+alladmins", "+as", "+help alladmins"],
|
||||
default_aliases: &["aad"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 0,
|
||||
default_permission: 2,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -120,7 +120,7 @@ impl crate::commands::command_contract::CommandSpec for AllbotsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "allbots",
|
||||
category: "administration",
|
||||
category: "info",
|
||||
params: "aucun",
|
||||
description: "Affiche la liste des membres bots presents sur le serveur courant.",
|
||||
examples: &["+allbots", "+as", "+help allbots"],
|
||||
@@ -65,7 +65,7 @@ impl crate::commands::command_contract::CommandSpec for BannerCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "banner",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "<@membre/ID>",
|
||||
description: "Affiche la banniere de profil dun utilisateur cible ou de lauteur.",
|
||||
examples: &["+banner", "+br", "+help banner"],
|
||||
@@ -132,7 +132,7 @@ impl crate::commands::command_contract::CommandSpec for BoostersCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "boosters",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "aucun",
|
||||
description: "Affiche les membres qui boostent actuellement le serveur.",
|
||||
examples: &["+boosters", "+bs", "+help boosters"],
|
||||
@@ -99,7 +99,7 @@ impl crate::commands::command_contract::CommandSpec for ChannelCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "channel",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "<#salon/ID>",
|
||||
description: "Affiche les informations utiles dun salon texte ou vocal cible.",
|
||||
examples: &["+channel", "+cl", "+help channel"],
|
||||
@@ -78,7 +78,7 @@ impl crate::commands::command_contract::CommandSpec for MemberCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "member",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "<@membre/ID>",
|
||||
description: "Affiche les informations dun membre dans le serveur courant.",
|
||||
examples: &["+member", "+mr", "+help member"],
|
||||
@@ -65,7 +65,7 @@ impl crate::commands::command_contract::CommandSpec for PicCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "pic",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "<@membre/ID>",
|
||||
description: "Affiche la photo de profil dun utilisateur cible ou de lauteur.",
|
||||
examples: &["+pic", "+pc", "+help pic"],
|
||||
@@ -51,7 +51,7 @@ impl crate::commands::command_contract::CommandSpec for PingCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "ping",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "aucun",
|
||||
description: "Affiche le temps de reponse du bot et met a jour un embed avec la latence calculee.",
|
||||
examples: &["+ping", "+pg", "+help ping"],
|
||||
@@ -93,7 +93,7 @@ impl crate::commands::command_contract::CommandSpec for RoleCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "role",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "<@&rôle/ID>",
|
||||
description: "Affiche les informations utiles dun role cible.",
|
||||
examples: &["+role", "+re", "+help role"],
|
||||
@@ -87,7 +87,7 @@ impl crate::commands::command_contract::CommandSpec for RolemembersCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "rolemembers",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "<@&rôle/ID>",
|
||||
description: "Affiche les membres associes a un role donne.",
|
||||
examples: &["+rolemembers", "+rs", "+help rolemembers"],
|
||||
@@ -158,7 +158,7 @@ impl crate::commands::command_contract::CommandSpec for ServerCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "server",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "pic | banner | list",
|
||||
description: "Affiche licone ou la banniere du serveur, ou liste les serveurs du bot selon la sous commande.",
|
||||
examples: &["+server", "+sr", "+help server"],
|
||||
@@ -59,7 +59,7 @@ impl crate::commands::command_contract::CommandSpec for ServerinfoCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "serverinfo",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "[ID_serveur]",
|
||||
description: "Affiche les informations principales dun serveur comme nom, id et statistiques.",
|
||||
examples: &["+serverinfo", "+so", "+help serverinfo"],
|
||||
@@ -62,7 +62,7 @@ impl crate::commands::command_contract::CommandSpec for ShowpicsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "showpics",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "[nombre 1-5]",
|
||||
description: "Affiche jusqua 5 avatars de membres du serveur.",
|
||||
examples: &["+show pics", "+help showpics"],
|
||||
@@ -65,7 +65,7 @@ impl crate::commands::command_contract::CommandSpec for UserCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "user",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "<@membre/ID>",
|
||||
description: "Affiche les informations principales dun utilisateur cible.",
|
||||
examples: &["+user", "+ur", "+help user"],
|
||||
@@ -69,7 +69,7 @@ impl crate::commands::command_contract::CommandSpec for VocinfoCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "vocinfo",
|
||||
category: "infos",
|
||||
category: "info",
|
||||
params: "[ID_salon_vocal]",
|
||||
description: "Affiche les informations dun salon vocal cible ou du salon vocal courant.",
|
||||
examples: &["+vocinfo", "+vo", "+help vocinfo"],
|
||||
+142
-142
@@ -5,321 +5,321 @@ pub mod addrole;
|
||||
pub mod admin_common;
|
||||
pub mod admin_service;
|
||||
pub mod advanced_tools;
|
||||
#[path = "permissions/alias.rs"]
|
||||
#[path = "perms/alias.rs"]
|
||||
pub mod alias;
|
||||
#[path = "administration/alladmins.rs"]
|
||||
#[path = "info/alladmins.rs"]
|
||||
pub mod alladmins;
|
||||
#[path = "administration/allbots.rs"]
|
||||
#[path = "info/allbots.rs"]
|
||||
pub mod allbots;
|
||||
#[path = "permissions/allperms.rs"]
|
||||
#[path = "perms/allperms.rs"]
|
||||
pub mod allperms;
|
||||
#[path = "roles/ancien.rs"]
|
||||
pub mod ancien;
|
||||
#[path = "moderation/antilink.rs"]
|
||||
#[path = "security/antilink.rs"]
|
||||
pub mod antilink;
|
||||
#[path = "moderation/antimassmention.rs"]
|
||||
#[path = "security/antimassmention.rs"]
|
||||
pub mod antimassmention;
|
||||
#[path = "moderation/antiraideautoconfig.rs"]
|
||||
#[path = "security/antiraideautoconfig.rs"]
|
||||
pub mod antiraideautoconfig;
|
||||
#[path = "moderation/antispam.rs"]
|
||||
#[path = "security/antispam.rs"]
|
||||
pub mod antispam;
|
||||
#[path = "outils/autobackup.rs"]
|
||||
#[path = "automation/autobackup.rs"]
|
||||
pub mod autobackup;
|
||||
#[path = "logs/autoconfiglog.rs"]
|
||||
#[path = "config/autoconfiglog.rs"]
|
||||
pub mod autoconfiglog;
|
||||
pub mod automod_service;
|
||||
#[path = "outils/autopublish.rs"]
|
||||
#[path = "automation/autopublish.rs"]
|
||||
pub mod autopublish;
|
||||
#[path = "outils/autoreact.rs"]
|
||||
#[path = "automation/autoreact.rs"]
|
||||
pub mod autoreact;
|
||||
#[path = "outils/backup.rs"]
|
||||
#[path = "automation/backup.rs"]
|
||||
pub mod backup;
|
||||
#[path = "moderation/badwords.rs"]
|
||||
#[path = "security/badwords.rs"]
|
||||
pub mod badwords;
|
||||
#[path = "moderation/ban.rs"]
|
||||
#[path = "mod/ban.rs"]
|
||||
pub mod ban;
|
||||
#[path = "moderation/banlist.rs"]
|
||||
#[path = "mod/banlist.rs"]
|
||||
pub mod banlist;
|
||||
#[path = "infos/banner.rs"]
|
||||
#[path = "info/banner.rs"]
|
||||
pub mod banner;
|
||||
#[path = "administration/bl.rs"]
|
||||
#[path = "owner/bl.rs"]
|
||||
pub mod bl;
|
||||
#[path = "administration/blinfo.rs"]
|
||||
#[path = "owner/blinfo.rs"]
|
||||
pub mod blinfo;
|
||||
#[path = "logs/boostembed.rs"]
|
||||
#[path = "config/boostembed.rs"]
|
||||
pub mod boostembed;
|
||||
#[path = "infos/boosters.rs"]
|
||||
#[path = "info/boosters.rs"]
|
||||
pub mod boosters;
|
||||
#[path = "logs/boostlog.rs"]
|
||||
#[path = "config/boostlog.rs"]
|
||||
pub mod boostlog;
|
||||
#[path = "administration/botadmins.rs"]
|
||||
#[path = "owner/botadmins.rs"]
|
||||
pub mod botadmins;
|
||||
pub mod botconfig_common;
|
||||
pub mod botconfig_service;
|
||||
#[path = "salons_vocal/bringall.rs"]
|
||||
#[path = "channel/bringall.rs"]
|
||||
pub mod bringall;
|
||||
#[path = "outils/button.rs"]
|
||||
#[path = "automation/button.rs"]
|
||||
pub mod button;
|
||||
#[path = "outils/calc.rs"]
|
||||
#[path = "fun/calc.rs"]
|
||||
pub mod calc;
|
||||
#[path = "bot/change.rs"]
|
||||
#[path = "botconfig/change.rs"]
|
||||
pub mod change;
|
||||
#[path = "bot/changeall.rs"]
|
||||
#[path = "botconfig/changeall.rs"]
|
||||
pub mod changeall;
|
||||
#[path = "infos/channel.rs"]
|
||||
#[path = "info/channel.rs"]
|
||||
pub mod channel;
|
||||
#[path = "outils/choose.rs"]
|
||||
#[path = "fun/choose.rs"]
|
||||
pub mod choose;
|
||||
#[path = "outils/claim.rs"]
|
||||
#[path = "ticket/claim.rs"]
|
||||
pub mod claim;
|
||||
#[path = "moderation/cleanup.rs"]
|
||||
#[path = "mod/cleanup.rs"]
|
||||
pub mod cleanup;
|
||||
#[path = "moderation/clear_all_sanctions.rs"]
|
||||
#[path = "mod/clear_all_sanctions.rs"]
|
||||
pub mod clear_all_sanctions;
|
||||
#[path = "moderation/clear_badwords.rs"]
|
||||
#[path = "mod/clear_badwords.rs"]
|
||||
pub mod clear_badwords;
|
||||
#[path = "administration/clear_bl.rs"]
|
||||
#[path = "owner/clear_bl.rs"]
|
||||
pub mod clear_bl;
|
||||
#[path = "moderation/clear_limit.rs"]
|
||||
#[path = "mod/clear_limit.rs"]
|
||||
pub mod clear_limit;
|
||||
#[path = "moderation/clear_messages.rs"]
|
||||
#[path = "mod/clear_messages.rs"]
|
||||
pub mod clear_messages;
|
||||
#[path = "administration/clear_owners.rs"]
|
||||
#[path = "owner/clear_owners.rs"]
|
||||
pub mod clear_owners;
|
||||
#[path = "permissions/clear_perms.rs"]
|
||||
#[path = "perms/clear_perms.rs"]
|
||||
pub mod clear_perms;
|
||||
#[path = "moderation/clear_sanctions.rs"]
|
||||
#[path = "mod/clear_sanctions.rs"]
|
||||
pub mod clear_sanctions;
|
||||
#[path = "outils/close.rs"]
|
||||
#[path = "ticket/close.rs"]
|
||||
pub mod close;
|
||||
#[path = "moderation/cmute.rs"]
|
||||
#[path = "mod/cmute.rs"]
|
||||
pub mod cmute;
|
||||
pub mod command_contract;
|
||||
pub mod common;
|
||||
#[path = "bot/compet.rs"]
|
||||
#[path = "botconfig/compet.rs"]
|
||||
pub mod compet;
|
||||
#[path = "outils/create.rs"]
|
||||
#[path = "automation/create.rs"]
|
||||
pub mod create;
|
||||
#[path = "permissions/del.rs"]
|
||||
#[path = "perms/del.rs"]
|
||||
pub mod del;
|
||||
#[path = "moderation/del_sanction.rs"]
|
||||
#[path = "mod/del_sanction.rs"]
|
||||
pub mod del_sanction;
|
||||
#[path = "roles/delrole.rs"]
|
||||
pub mod delrole;
|
||||
#[path = "roles/derank.rs"]
|
||||
pub mod derank;
|
||||
#[path = "administration/discussion.rs"]
|
||||
#[path = "owner/discussion.rs"]
|
||||
pub mod discussion;
|
||||
#[path = "bot/dnd.rs"]
|
||||
#[path = "botconfig/dnd.rs"]
|
||||
pub mod dnd;
|
||||
#[path = "outils/embed.rs"]
|
||||
#[path = "fun/embed.rs"]
|
||||
pub mod embed;
|
||||
#[path = "outils/emoji.rs"]
|
||||
#[path = "fun/emoji.rs"]
|
||||
pub mod emoji;
|
||||
#[path = "outils/end.rs"]
|
||||
#[path = "event/end.rs"]
|
||||
pub mod end;
|
||||
#[path = "outils/giveaway.rs"]
|
||||
#[path = "event/giveaway.rs"]
|
||||
pub mod giveaway;
|
||||
#[path = "permissions/help.rs"]
|
||||
#[path = "perms/help.rs"]
|
||||
pub mod help;
|
||||
#[path = "permissions/helpsetting.rs"]
|
||||
#[path = "perms/helpsetting.rs"]
|
||||
pub mod helpsetting;
|
||||
#[path = "salons_vocal/hide.rs"]
|
||||
#[path = "channel/hide.rs"]
|
||||
pub mod hide;
|
||||
#[path = "salons_vocal/hideall.rs"]
|
||||
#[path = "channel/hideall.rs"]
|
||||
pub mod hideall;
|
||||
#[path = "bot/idle.rs"]
|
||||
#[path = "botconfig/idle.rs"]
|
||||
pub mod idle;
|
||||
#[path = "bot/invisible.rs"]
|
||||
#[path = "botconfig/invisible.rs"]
|
||||
pub mod invisible;
|
||||
#[path = "administration/invite.rs"]
|
||||
#[path = "owner/invite.rs"]
|
||||
pub mod invite;
|
||||
#[path = "logs/join.rs"]
|
||||
#[path = "config/join.rs"]
|
||||
pub mod join;
|
||||
#[path = "moderation/kick.rs"]
|
||||
#[path = "mod/kick.rs"]
|
||||
pub mod kick;
|
||||
#[path = "administration/leave.rs"]
|
||||
#[path = "owner/leave.rs"]
|
||||
pub mod leave;
|
||||
#[path = "logs/leave_settings.rs"]
|
||||
#[path = "config/leave_settings.rs"]
|
||||
pub mod leave_settings;
|
||||
#[path = "moderation/link.rs"]
|
||||
#[path = "security/link.rs"]
|
||||
pub mod link;
|
||||
#[path = "bot/listen.rs"]
|
||||
#[path = "botconfig/listen.rs"]
|
||||
pub mod listen;
|
||||
#[path = "outils/loading.rs"]
|
||||
#[path = "fun/loading.rs"]
|
||||
pub mod loading;
|
||||
#[path = "salons_vocal/lock.rs"]
|
||||
#[path = "channel/lock.rs"]
|
||||
pub mod lock;
|
||||
#[path = "salons_vocal/lockall.rs"]
|
||||
#[path = "channel/lockall.rs"]
|
||||
pub mod lockall;
|
||||
pub mod logs_command_helpers;
|
||||
pub mod logs_service;
|
||||
#[path = "administration/mainprefix.rs"]
|
||||
#[path = "botconfig/mainprefix.rs"]
|
||||
pub mod mainprefix;
|
||||
#[path = "roles/massiverole.rs"]
|
||||
pub mod massiverole;
|
||||
#[path = "infos/member.rs"]
|
||||
#[path = "info/member.rs"]
|
||||
pub mod member;
|
||||
#[path = "logs/messagelog.rs"]
|
||||
#[path = "config/messagelog.rs"]
|
||||
pub mod messagelog;
|
||||
pub mod moderation_channel_helpers;
|
||||
pub mod moderation_sanction_helpers;
|
||||
pub mod moderation_tools;
|
||||
#[path = "logs/modlog.rs"]
|
||||
#[path = "config/modlog.rs"]
|
||||
pub mod modlog;
|
||||
#[path = "administration/mp.rs"]
|
||||
#[path = "owner/mp.rs"]
|
||||
pub mod mp;
|
||||
#[path = "moderation/mute.rs"]
|
||||
#[path = "mod/mute.rs"]
|
||||
pub mod mute;
|
||||
#[path = "moderation/mutelist.rs"]
|
||||
#[path = "mod/mutelist.rs"]
|
||||
pub mod mutelist;
|
||||
#[path = "moderation/muterole.rs"]
|
||||
#[path = "mod/muterole.rs"]
|
||||
pub mod muterole;
|
||||
#[path = "outils/newsticker.rs"]
|
||||
#[path = "automation/newsticker.rs"]
|
||||
pub mod newsticker;
|
||||
#[path = "roles/noderank.rs"]
|
||||
pub mod noderank;
|
||||
#[path = "logs/nolog.rs"]
|
||||
#[path = "config/nolog.rs"]
|
||||
pub mod nolog;
|
||||
#[path = "bot/online.rs"]
|
||||
#[path = "botconfig/online.rs"]
|
||||
pub mod online;
|
||||
#[path = "administration/owner.rs"]
|
||||
#[path = "owner/owner.rs"]
|
||||
pub mod owner;
|
||||
#[path = "permissions/perms.rs"]
|
||||
#[path = "perms/perms.rs"]
|
||||
pub mod perms;
|
||||
pub mod perms_helpers;
|
||||
pub mod perms_service;
|
||||
#[path = "infos/pic.rs"]
|
||||
#[path = "info/pic.rs"]
|
||||
pub mod pic;
|
||||
#[path = "outils/piconly.rs"]
|
||||
#[path = "automation/piconly.rs"]
|
||||
pub mod piconly;
|
||||
#[path = "infos/ping.rs"]
|
||||
#[path = "info/ping.rs"]
|
||||
pub mod ping;
|
||||
#[path = "bot/playto.rs"]
|
||||
#[path = "botconfig/playto.rs"]
|
||||
pub mod playto;
|
||||
#[path = "administration/prefix.rs"]
|
||||
#[path = "botconfig/prefix.rs"]
|
||||
pub mod prefix;
|
||||
#[path = "moderation/public.rs"]
|
||||
#[path = "channel/public.rs"]
|
||||
pub mod public;
|
||||
#[path = "moderation/punish.rs"]
|
||||
#[path = "mod/punish.rs"]
|
||||
pub mod punish;
|
||||
#[path = "logs/raidlog.rs"]
|
||||
#[path = "config/raidlog.rs"]
|
||||
pub mod raidlog;
|
||||
#[path = "bot/remove_activity.rs"]
|
||||
#[path = "botconfig/remove_activity.rs"]
|
||||
pub mod remove_activity;
|
||||
#[path = "outils/rename.rs"]
|
||||
#[path = "ticket/rename.rs"]
|
||||
pub mod rename;
|
||||
#[path = "moderation/renew.rs"]
|
||||
#[path = "channel/renew.rs"]
|
||||
pub mod renew;
|
||||
#[path = "outils/reroll.rs"]
|
||||
#[path = "event/reroll.rs"]
|
||||
pub mod reroll;
|
||||
#[path = "moderation/resetantiraide.rs"]
|
||||
#[path = "security/resetantiraide.rs"]
|
||||
pub mod resetantiraide;
|
||||
#[path = "infos/role.rs"]
|
||||
#[path = "info/role.rs"]
|
||||
pub mod role;
|
||||
#[path = "logs/rolelog.rs"]
|
||||
#[path = "config/rolelog.rs"]
|
||||
pub mod rolelog;
|
||||
#[path = "infos/rolemembers.rs"]
|
||||
#[path = "info/rolemembers.rs"]
|
||||
pub mod rolemembers;
|
||||
#[path = "roles/rolemenu.rs"]
|
||||
pub mod rolemenu;
|
||||
#[path = "moderation/sanctions.rs"]
|
||||
#[path = "mod/sanctions.rs"]
|
||||
pub mod sanctions;
|
||||
#[path = "outils/say.rs"]
|
||||
#[path = "fun/say.rs"]
|
||||
pub mod say;
|
||||
#[path = "infos/server.rs"]
|
||||
#[path = "info/server.rs"]
|
||||
pub mod server;
|
||||
#[path = "infos/serverinfo.rs"]
|
||||
#[path = "info/serverinfo.rs"]
|
||||
pub mod serverinfo;
|
||||
#[path = "bot/set.rs"]
|
||||
#[path = "botconfig/set.rs"]
|
||||
pub mod set;
|
||||
#[path = "logs/set_boostembed.rs"]
|
||||
#[path = "config/set_boostembed.rs"]
|
||||
pub mod set_boostembed;
|
||||
#[path = "logs/set_modlogs.rs"]
|
||||
#[path = "config/set_modlogs.rs"]
|
||||
pub mod set_modlogs;
|
||||
#[path = "moderation/set_muterole.rs"]
|
||||
#[path = "mod/set_muterole.rs"]
|
||||
pub mod set_muterole;
|
||||
#[path = "bot/shadowbot.rs"]
|
||||
#[path = "botconfig/shadowbot.rs"]
|
||||
pub mod shadowbot;
|
||||
#[path = "infos/showpics.rs"]
|
||||
#[path = "info/showpics.rs"]
|
||||
pub mod showpics;
|
||||
#[path = "salons_vocal/slowmode.rs"]
|
||||
#[path = "channel/slowmode.rs"]
|
||||
pub mod slowmode;
|
||||
#[path = "outils/snipe.rs"]
|
||||
#[path = "fun/snipe.rs"]
|
||||
pub mod snipe;
|
||||
#[path = "moderation/spam.rs"]
|
||||
#[path = "security/spam.rs"]
|
||||
pub mod spam;
|
||||
#[path = "bot/stream.rs"]
|
||||
#[path = "botconfig/stream.rs"]
|
||||
pub mod stream;
|
||||
#[path = "moderation/strikes.rs"]
|
||||
#[path = "security/strikes.rs"]
|
||||
pub mod strikes;
|
||||
#[path = "outils/suggestion.rs"]
|
||||
#[path = "fun/suggestion.rs"]
|
||||
pub mod suggestion;
|
||||
#[path = "roles/sync.rs"]
|
||||
pub mod sync;
|
||||
#[path = "moderation/tempban.rs"]
|
||||
#[path = "mod/tempban.rs"]
|
||||
pub mod tempban;
|
||||
#[path = "moderation/tempcmute.rs"]
|
||||
#[path = "mod/tempcmute.rs"]
|
||||
pub mod tempcmute;
|
||||
#[path = "moderation/tempmute.rs"]
|
||||
#[path = "mod/tempmute.rs"]
|
||||
pub mod tempmute;
|
||||
#[path = "roles/temprole.rs"]
|
||||
pub mod temprole;
|
||||
#[path = "salons_vocal/tempvoc.rs"]
|
||||
#[path = "channel/tempvoc.rs"]
|
||||
pub mod tempvoc;
|
||||
#[path = "salons_vocal/tempvoc_cmd.rs"]
|
||||
#[path = "channel/tempvoc_cmd.rs"]
|
||||
pub mod tempvoc_cmd;
|
||||
#[path = "bot/theme.rs"]
|
||||
#[path = "botconfig/theme.rs"]
|
||||
pub mod theme;
|
||||
#[path = "outils/ticket.rs"]
|
||||
#[path = "ticket/ticket.rs"]
|
||||
pub mod ticket;
|
||||
#[path = "outils/ticket_member.rs"]
|
||||
#[path = "ticket/ticket_member.rs"]
|
||||
pub mod ticket_member;
|
||||
#[path = "outils/tickets.rs"]
|
||||
#[path = "ticket/tickets.rs"]
|
||||
pub mod tickets;
|
||||
#[path = "moderation/timeout.rs"]
|
||||
#[path = "mod/timeout.rs"]
|
||||
pub mod timeout;
|
||||
#[path = "moderation/unban.rs"]
|
||||
#[path = "mod/unban.rs"]
|
||||
pub mod unban;
|
||||
#[path = "moderation/unbanall.rs"]
|
||||
#[path = "mod/unbanall.rs"]
|
||||
pub mod unbanall;
|
||||
#[path = "administration/unbl.rs"]
|
||||
#[path = "owner/unbl.rs"]
|
||||
pub mod unbl;
|
||||
#[path = "moderation/uncmute.rs"]
|
||||
#[path = "mod/uncmute.rs"]
|
||||
pub mod uncmute;
|
||||
#[path = "salons_vocal/unhide.rs"]
|
||||
#[path = "channel/unhide.rs"]
|
||||
pub mod unhide;
|
||||
#[path = "salons_vocal/unhideall.rs"]
|
||||
#[path = "channel/unhideall.rs"]
|
||||
pub mod unhideall;
|
||||
#[path = "salons_vocal/unlock.rs"]
|
||||
#[path = "channel/unlock.rs"]
|
||||
pub mod unlock;
|
||||
#[path = "salons_vocal/unlockall.rs"]
|
||||
#[path = "channel/unlockall.rs"]
|
||||
pub mod unlockall;
|
||||
#[path = "roles/unmassiverole.rs"]
|
||||
pub mod unmassiverole;
|
||||
#[path = "moderation/unmute.rs"]
|
||||
#[path = "mod/unmute.rs"]
|
||||
pub mod unmute;
|
||||
#[path = "moderation/unmuteall.rs"]
|
||||
#[path = "mod/unmuteall.rs"]
|
||||
pub mod unmuteall;
|
||||
#[path = "administration/unowner.rs"]
|
||||
#[path = "owner/unowner.rs"]
|
||||
pub mod unowner;
|
||||
#[path = "roles/untemprole.rs"]
|
||||
pub mod untemprole;
|
||||
#[path = "infos/user.rs"]
|
||||
#[path = "info/user.rs"]
|
||||
pub mod user;
|
||||
#[path = "logs/viewlogs.rs"]
|
||||
#[path = "config/viewlogs.rs"]
|
||||
pub mod viewlogs;
|
||||
#[path = "infos/vocinfo.rs"]
|
||||
#[path = "info/vocinfo.rs"]
|
||||
pub mod vocinfo;
|
||||
#[path = "salons_vocal/voicekick.rs"]
|
||||
#[path = "channel/voicekick.rs"]
|
||||
pub mod voicekick;
|
||||
#[path = "logs/voicelog.rs"]
|
||||
#[path = "config/voicelog.rs"]
|
||||
pub mod voicelog;
|
||||
#[path = "salons_vocal/voicemove.rs"]
|
||||
#[path = "channel/voicemove.rs"]
|
||||
pub mod voicemove;
|
||||
#[path = "moderation/warn.rs"]
|
||||
#[path = "mod/warn.rs"]
|
||||
pub mod warn;
|
||||
#[path = "bot/watch.rs"]
|
||||
#[path = "botconfig/watch.rs"]
|
||||
pub mod watch;
|
||||
|
||||
pub fn all_command_metadata() -> Vec<CommandMetadata> {
|
||||
|
||||
@@ -62,13 +62,13 @@ impl crate::commands::command_contract::CommandSpec for BanCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "ban",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID[,..]> [raison]",
|
||||
description: "Ban un ou plusieurs membres.",
|
||||
examples: &["+ban @User"],
|
||||
default_aliases: &["b"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,13 +38,13 @@ impl crate::commands::command_contract::CommandSpec for BanlistCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "banlist",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "aucun",
|
||||
description: "Affiche la liste des bannissements en cours.",
|
||||
examples: &["+banlist"],
|
||||
default_aliases: &["bls"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,13 +59,13 @@ impl crate::commands::command_contract::CommandSpec for CleanupCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "cleanup",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<salon_vocal>",
|
||||
description: "Deconnecte tous les utilisateurs presents dans un salon vocal cible.",
|
||||
examples: &["+cleanup #General"],
|
||||
default_aliases: &["vclean", "vcleanup"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -54,7 +54,7 @@ impl crate::commands::command_contract::CommandSpec for ClearAllSanctionsCommand
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "clear_all_sanctions",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "aucun",
|
||||
description: "Efface toutes les sanctions de tous les membres du serveur.",
|
||||
examples: &["+clear all sanctions"],
|
||||
@@ -38,13 +38,13 @@ impl crate::commands::command_contract::CommandSpec for ClearBadwordsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "clear_badwords",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "badwords",
|
||||
description: "Supprime l ensemble des mots interdits enregistres.",
|
||||
examples: &["+clear badwords", "+help clear badwords"],
|
||||
default_aliases: &["cbw"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,13 +62,13 @@ impl crate::commands::command_contract::CommandSpec for ClearLimitCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "clear_limit",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "limit <nombre>",
|
||||
description: "Definit la limite max de messages supprimables avec +clear.",
|
||||
examples: &["+clear limit 100", "+help clear limit"],
|
||||
default_aliases: &["climit"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -77,13 +77,13 @@ impl crate::commands::command_contract::CommandSpec for ClearMessagesCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "clear_messages",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<nombre> [@membre/ID]",
|
||||
description: "Supprime un nombre de messages, optionnellement filtres par membre.",
|
||||
examples: &["+clear 20", "+clear 20 @User"],
|
||||
default_aliases: &["purge"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -64,13 +64,13 @@ impl crate::commands::command_contract::CommandSpec for ClearSanctionsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "clear_sanctions",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID>",
|
||||
description: "Efface completement les sanctions d un membre cible.",
|
||||
examples: &["+clear sanctions @User"],
|
||||
default_aliases: &["csanctions"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,13 +58,13 @@ impl crate::commands::command_contract::CommandSpec for CmuteCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "cmute",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID[,..]> [raison]",
|
||||
description: "Mute un membre sur le salon courant.",
|
||||
examples: &["+cmute @User"],
|
||||
default_aliases: &["cm"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -86,13 +86,13 @@ impl crate::commands::command_contract::CommandSpec for DelSanctionCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "del_sanction",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID> <nombre>",
|
||||
description: "Supprime une sanction specifique dans l historique d un membre.",
|
||||
examples: &["+del sanction @User 1"],
|
||||
default_aliases: &["delsanction"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,13 +62,13 @@ impl crate::commands::command_contract::CommandSpec for KickCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "kick",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID[,..]> [raison]",
|
||||
description: "Kick un ou plusieurs membres.",
|
||||
examples: &["+kick @User"],
|
||||
default_aliases: &["k"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,13 +58,13 @@ impl crate::commands::command_contract::CommandSpec for MuteCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "mute",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID[,..]> [raison]",
|
||||
description: "Applique un mute a un ou plusieurs membres.",
|
||||
examples: &["+mute @User abus"],
|
||||
default_aliases: &["tmute"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,13 +63,13 @@ impl crate::commands::command_contract::CommandSpec for MutelistCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "mutelist",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "aucun",
|
||||
description: "Affiche tous les mutes en cours.",
|
||||
examples: &["+mutelist"],
|
||||
default_aliases: &["ml"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -129,13 +129,13 @@ impl crate::commands::command_contract::CommandSpec for MuteRoleCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "muterole",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "aucun",
|
||||
description: "Cree ou met a jour le role muet et tente de corriger les permissions des salons.",
|
||||
examples: &["+muterole", "+help muterole"],
|
||||
default_aliases: &["mr"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -164,13 +164,13 @@ impl crate::commands::command_contract::CommandSpec for PunishCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "punish",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "[add <nombre> <duree> <sanction> [duree] | del <numero> | setup]",
|
||||
description: "Affiche et gere les sanctions automatiques appliquees selon les strikes.",
|
||||
examples: &["+punish", "+punish add 8 1h mute 30m", "+punish setup"],
|
||||
default_aliases: &["pn"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -102,13 +102,13 @@ impl crate::commands::command_contract::CommandSpec for SanctionsCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "sanctions",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID>",
|
||||
description: "Liste l historique des sanctions d un membre.",
|
||||
examples: &["+sanctions @User"],
|
||||
default_aliases: &["sanct"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 5,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,13 +67,13 @@ impl crate::commands::command_contract::CommandSpec for SetMuteRoleCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "set_muterole",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "muterole <@role/ID/nom>",
|
||||
description: "Definit le role utilise pour le mute lorsque le mode timeout est desactive.",
|
||||
examples: &["+set muterole @Muted", "+help set muterole"],
|
||||
default_aliases: &["smr"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,13 +73,13 @@ impl crate::commands::command_contract::CommandSpec for TempbanCommand {
|
||||
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
|
||||
crate::commands::command_contract::CommandMetadata {
|
||||
name: "tempban",
|
||||
category: "moderation",
|
||||
category: "mod",
|
||||
params: "<@membre/ID[,..]> <duree> [raison]",
|
||||
description: "Ban temporairement un ou plusieurs membres.",
|
||||
examples: &["+tempban @User 1d"],
|
||||
default_aliases: &["tb"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
default_permission: 7,
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user