Repository navigation
Expand file tree
/
Copy pathadmin.py
More file actions
39 lines (37 loc) · 2.43 KB
/
Copy pathadmin.py
File metadata and controls
39 lines (37 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""Source unique de la liste des commandes d'administration.
Utilisee par main.py (gate admin globale) et par le panneau de permissions
(cogs/moderation.py) pour rester coherente.
"""
ADMIN_COMMANDS = frozenset({
"modpanel", "warnconfig", "permpanel", "warn", "warns", "clearwarns", "ban", "kick", "clear", "unban",
"timeout", "untimeout", "slowmode", "lock", "unlock", "addmoney", "removemoney", "reset_money",
"reset_economy", "clean_leaderboard", "ecopanel", "incomepanel", "gamepanel", "config_work",
"role_income_add", "role_income_remove", "role_income_edit", "addgame", "deletegame", "addquest",
"questdel", "questconfig", "clearinventory", "gstart", "gend", "gcancel", "selftest", "logspanel",
"guildlang", "xpconfig", "xpset", "xptoggle", "reactrole", "reactroles", "reactrolerm", "setwelcome", "setleave",
"welcomeconfig", "automod", "automodconfig", "badword",
"mcenable", "mcdisable", "mcconfig", "mcsay", "mcstatus",
"invleft", "steamconfig",
"aimod", "aimodconfig", "aimodaction", "aimodthreshold", "aimodignore", "aimodlog",
"ticketpanel", "ticketconfig", "ticketcategory", "ticketwelcome", "ticketmax", "ticketlog",
"webhookset", "webhooktoggle", "webhookevent", "webhookconfig", "webhooksend",
"lockdown", "unlockdown", "lockdownchannel", "unlockdownchannel", "lockdownconfig",
"lockdownrole", "lockdownlog", "lockdownmassjoin", "lockdownauto",
"starboard", "starboardclear",
"plugins", "plugins list", "plugins enable", "plugins disable", "plugins reload",
# Commandes qui s'appuyaient sur @commands.has_permissions(manage_guild=True) :
# le decorateur court-circuitait la delegation par role du panneau de permissions.
"setlog", "unsetlog",
"cmdadd", "cmdedit", "cmdrm", "cmdlist",
"poll", "pollclose", "pollresults",
"twitch", "twitchconfig",
# Ecriture des notes du serveur : n'etait protegee par rien.
"addtag", "removetag", "tagedit", "tagrename",
# Casino : creation/edition des jeux, lots, quetes et statistiques.
"addlot", "rmlot", "gamelots", "gameaccess", "casinostats", "inviterewards",
"shopadd", "shopdel", "shopstats", "shopedit",
"gameedit", "lotedit", "casinostyle", "achievementconfig", "autoadd", "autodel",
# Modules serveur ajoutes : configuration reservee aux admins.
"birthdayconfig", "tempvoice", "statschannel", "alerts", "embed", "emoji",
"achievementadd", "achievementdel", "autos", "autotoggle", "welcomepanel",
})