Files
lilacbot/src/wards.py
T
2023-11-02 10:09:06 +02:00

10 lines
320 B
Python

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