コード例 #1
0
 async def art(self, ctx, *, name):
     unit = FindBest(ToEmbed.DIRS['Unit'], name,
                     ['name', 'nameJP', 'keywords'], True)
     for embed in ToEmbed.Unit(unit, 'art'):
         await ctx.send(embed=embed)
コード例 #2
0
 async def job(self, ctx, *, name):
     job = FindBest(ToEmbed.DIRS['Job'], name, ['keywords'], True)
     msg = await ctx.send(embed=ToEmbed.Job(job, 'main'))
     await self.add_reactions(msg, PAGES['job'])
コード例 #3
0
 async def nensou(self, ctx, *, name):
     card = FindBest(ToEmbed.DIRS['Conceptcard'], name,
                     ['keywords', 'iname'], True)
     msg = await ctx.send(embed=ToEmbed.Conceptcard(card, 'main'))
     await self.add_reactions(msg, PAGES['conceptcard'])
コード例 #4
0
 async def kaigan(self, ctx, *, name):
     unit = FindBest(ToEmbed.DIRS['Unit'], name,
                     ['name', 'nameJP', 'keywords'], True)
     msg = await ctx.send(embed=ToEmbed.Unit(unit, 'kaigan'))
     await self.add_reactions(msg, PAGES['unit'])
コード例 #5
0
 async def farm(self, ctx, *, name):
     item = FindBest(ToEmbed.DIRS['Item'], name, ['name'], True)
     msg = await ctx.send(embed=ToEmbed.Item(item, 'Story'))
     await self.add_reactions(msg, PAGES['item'])
コード例 #6
0
 async def ai(self, ctx, *, name):
     ai = FindBest(ToEmbed.DIRS['Ai'], name, ['iname'], True)
     msg = await ctx.send(embed=ToEmbed.AI(ai, 'main'))
コード例 #7
0
 async def rank(self, ctx, *, name):
     await ctx.send(embed=ToEmbed.Rank(name))
コード例 #8
0
 async def arena(self, ctx):
     await ctx.send(embed=ToEmbed.Arena())
コード例 #9
0
 async def gear(self, ctx, *, name):
     gear = FindBest(ToEmbed.DIRS['Artifact'], name, ['keywords'], True)
     msg = await ctx.send(embed=ToEmbed.Gear(gear, 'main'))
     await self.add_reactions(msg, PAGES['gear'])