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)
评论列表
文章目录