So I am using MurkAPI and had gotten help with this but I cannot seem to get it so when someone does $adfly and a url which is a adfly shortend link, the bot returns the link through the API and into the bot. This is the current code I have.
@commands.command(pass_context=True)
async def adfly(self, ctx):
async with aiohttp.ClientSession() as session:
await self.client.say(await fetch_adfly(session))
async def fetch_adfly(session):
async with session.get(adfly_url) as response:
return await response.text()
I have the MURKKEY working, however, I cannot get the URL part working.
adfly_url = 'https://murkapi.com/adfly.php?key={}&url={}'.format(MURKKEY)