alexbotello / python-overwatch

A simple API for scraping Overwatch stats
MIT License
14 stars 5 forks source link

using in discord.py #4

Open ps2cho opened 5 years ago

ps2cho commented 5 years ago

filter="Hero Specific" is invalid. list index out of range

filter="Best" is invalid. etc plz help

alexbotello commented 5 years ago

Could you show what input you’re using?

I haven’t updated this to add any new heroes since Brigitte. I can fix that later today

ps2cho commented 5 years ago
@commands.command()
async def stats(self, ctx, member: discord.Member):
    await ctx.send('닉네임과 배틀태그를 입력하세요 (예: 아무개#523412)')
    def check_bt(m):
        return m.author == message.author and m.channel == message.channel
    bt = await self.bot.wait_for('message', check=check_bt, timeout=30)
    overwatch = Overwatch(battletag=bt)
    await ctx.send(overwatch())
ps2cho commented 5 years ago

It works fine on print command