def _del(self, ctx: commands.Context, *, game: str):
"""Removes a game from the list."""
try:
self.settings["games"].remove(game)
except ValueError:
await self.bot.reply(
cf.warning("{} is not in the game list.".format(game)))
return
self.settings["del"].append(game)
dataIO.save_json(self.settings_path, self.settings)
await self.bot.reply(
cf.info("{} removed from the game list.".format(game)))
评论列表
文章目录