oshimen.py 文件源码

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

项目:YukirinCogs 作者: skeith 项目源码 文件源码
def _wota(self, ctx):
        """Joins the wota and embrace 48G grace!"""

        server = ctx.message.server
        user = ctx.message.author

        if server.id not in self.oshi:
            self.oshi[server.id] = {}
        else:
            pass

        if user.id not in self.oshi[server.id]:
            self.oshi[server.id][user.id] = {}
            dataIO.save_json(OJSON, self.oshi)
            data = discord.Embed(colour=discord.Color(0xffb6c1))
            data.add_field(
                name="Ohayou! :tada:",
                value=("Your Oshimen card is ") +
                ("succesfully generated, {}.").format(user.name) +
                (" Use {}write to start adding ").format(ctx.prefix) +
                ("your Oshimen on the card"))
            await self.bot.say(embed=data)
        else:
            data = discord.Embed(colour=discord.Color(0xffb6c1))
            data.add_field(
                name="Ara~!",
                value=("Yuihan said you already have ") +
                ("an Oshimen card, {}.").format(user.name) +
                (" Use {}write to add Oshimen ").format(ctx.prefix) +
                ("onto your card"))
            await self.bot.say(embed=data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号