randgame.py 文件源码

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

项目:tmerc-cogs 作者: tmercswims 项目源码 文件源码
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)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号