def __init__(self, client: discord.Client, admins: list = list(), **cfg) -> object:
"""
Create a ListenerRegistry
:param client: the client to use
:param admins: the list of admins to use, must be a list of ID's
"""
self.commands = []
self.logger = logging.getLogger('commandreg')
self.logger.setLevel(0)
self.client = client
self.admins = admins
self.muted = []
self.cfg = cfg
评论列表
文章目录