diff --git a/discord_bot.py b/discord_bot.py index 6ff436d..f3c506b 100644 --- a/discord_bot.py +++ b/discord_bot.py @@ -15,7 +15,7 @@ async def mtg(name): getCard = str(name) await asyncio.sleep(0.05) - card = scrython.cards.Named(loop=bot.loop, fuzzy=getCard) + card = scrython.cards.Named(fuzzy=getCard) if card.type_line() == 'Creature': PT = "({}/{})".format(card.power(), card.toughness()) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 6b86220..73558bb 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -80,7 +80,7 @@ class CardsObject(object): } self.encodedParams = urllib.parse.urlencode(self.params) - self._url = 'https://api.scryfall.com/' + _url + "&" + self.encodedParams #Find a fix for this later + self._url = 'https://api.scryfall.com/' + _url + "&" + self.encodedParams async def getRequest(client, url, **kwargs): async with client.get(url, **kwargs) as response: