def __init__(self, bot):
self.bot = bot
#self.loop = AbstractEventLoop.run_in_executor()
"""def get_cards(self):
#You can change for fitting your language deDE, enUS, esES, esMX,
#frFR, itIT, jaJP, koKR, plPL, ptBR, ruRU, thTH, zhCN, zhTW
response = requests.get('https://api.hearthstonejson.com/v1/12574/enUS/cards.collectible.json')#, 'https://api.hearthstonejson.com/v1/13619/enUS/cards.collectible.json', 'https://api.hearthstonejson.com/v1/15181/enUS/cards.collectible.json', 'https://api.hearthstonejson.com/v1/15300/enUS/cards.collectible.json')#
data = response.json()
return data
@commands.command()
async def hearthcard(self, args):
data = get_cards()
cardname = data['"name": 'args]
attack = data['"attack": ']
if data["type": "MINION"] == True:
await self.bot.say('**{0}** \n' +
"""
评论列表
文章目录