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