kz.py 文件源码

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

项目:tmerc-cogs 作者: tmercswims 项目源码 文件源码
def _jumptop(self, ctx: commands.Context):
        """Gets the top stats for the given jump type.

        Optionally provide a limit (default is 10).
        """

        await self.bot.type()

        server = ctx.message.server
        if server.id not in self.settings:
            self.settings[server.id] = deepcopy(default_settings)
            dataIO.save_json(self.settings_path, self.settings)

        if not self._check_settings(server.id):
            await self.bot.reply(
                cf.error("You need to set up this cog before you can use it."
                         " Use `{}kzset`.".format(ctx.prefix)))
            return

        await self._update_database(server.id)

        if ctx.invoked_subcommand is None:
            await ctx.invoke(self._all)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号