Esempio n. 1
0
    async def find_monster_f1(self,ctx):
        
        args = ctx.message.content.split()
        args.pop(0)
        name = ' '.join(args)

        monsters = mhutils.files_to_list(mhf1_sm_monster_path)
        monsters.update(mhutils.files_to_list(mhf1_monster_path))
        result = mhutils.search_monster(name, monsters)
    
        for r in result:
            await ctx.send("```\n"+r+"```")

        return True
Esempio n. 2
0
    async def find_item_xx(self,ctx):
        
        args = ctx.message.content.split()
        args.pop(0)
        item = ' '.join(args)

        monsters = mhutils.files_to_list(mhxx_monster_path)
        
        result = mhutils.search_item(item, monsters)
        
        for r in result:
            await ctx.send("```\n"+r+"```")
        
        return True