async def adminset(self, ctx): """Groupe: Paramètres d'administration""" if ctx.invoked_subcommand is None: server = ctx.message.server await send_cmd_help(ctx) roles = settings.get_server(server).copy() _settings = {**self.settings[server.id], **roles} if _settings["delete_delay"] == -1: _settings["delete_delay"] = "Disabled" msg = ("ROLES:\n" "\tCoCap: {COCAP_ROLE}\n" "\tAdmin: {ADMIN_ROLE}\n" "\tMod: {MOD_ROLE}\n" "\tSel: {SEL_ROLE}\n" "ADMINS:\n" "\tBan mention spam: {ban_mention_spam}\n" "\tDelete repeats: {delete_repeats}\n" "OWNER:\n" "\tMod-log: {mod-log-name}\n" "\tIdea-Claim: {idea-claim-name}\n" "\tBotcmd: {botcmd-name}\n" "\tDelete delay: {delete_delay}\n" "\tRespects hierarchy: {respect_hierarchy}" "".format(**_settings)) await self.bot.say(box(msg), delete_after = self.settings[server.id]["delete_delay"])
async def modset(self, ctx): """Manages server administration settings.""" if ctx.invoked_subcommand is None: await send_cmd_help(ctx) msg = "```" for k, v in settings.get_server(ctx.message.server).items(): msg += str(k) + ": " + str(v) + "\n" msg += "```" await self.bot.say(msg)
async def modset(self, ctx): """Manages server administration settings.""" if ctx.invoked_subcommand is None: server = ctx.message.server await send_cmd_help(ctx) roles = settings.get_server(server).copy() _settings = {**self.settings[server.id], **roles} msg = ("Admin role: {ADMIN_ROLE}\n" "Mod role: {MOD_ROLE}\n" "Mod-log: {mod-log}\n" "Delete repeats: {delete_repeats}\n" "Ban mention spam: {ban_mention_spam}\n" "".format(**_settings)) await self.bot.say(box(msg))