admin.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:StreamNotificationBot 作者: ivandardi 项目源码 文件源码
def _reload(self, ctx, *, ext: str = None):
        """Reloads a module. Can only be used by the owner."""

        if ext:
            self.bot.unload_extension(ext)
            self.bot.load_extension(ext)
        else:
            for m in self.bot.initial_extensions:
                log.info('Reloading cog %s', m)
                self.bot.unload_extension(m)
                self.bot.load_extension(m)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号