rewrite: Sysadmin module.

This commit is contained in:
2022-11-18 08:49:21 +02:00
parent 860660d152
commit 09e7a36c9f
11 changed files with 1659 additions and 276 deletions

9
bot/wards.py Normal file
View File

@@ -0,0 +1,9 @@
from meta.LionContext import LionContext
async def sys_admin(ctx: LionContext) -> bool:
"""
Checks whether the context author is listed in the configuration file as a bot admin.
"""
admins = ctx.bot.config.bot.getintlist('admins')
return ctx.author.id in admins