Initial Template.

This commit is contained in:
2023-11-02 10:09:06 +02:00
commit 1ae7c60ba8
52 changed files with 6786 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from meta import LionBot
# Raw checks, return True/False depending on whether they pass
async def sys_admin(bot: LionBot, userid: int):
"""
Checks whether the context author is listed in the configuration file as a bot admin.
"""
admins = bot.config.bot.getintlist('admins')
return userid in admins