Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
erickang21 committed Mar 11, 2018
1 parent 2c39b52 commit 46cc810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/utility.py
Expand Up @@ -75,7 +75,7 @@ async def shortenurl(self, ctx, *, url=None):
color = discord.Color(value=0x00ff00)
em = discord.Embed(color=color, title='TinyURL Link Shortener')
async with aiohttp.ClientSession() as session:
async with session.get(async with session.get(f'http://tinyurl.com/api-create.php?url={url}'') as resp:
async with session.get(f'http://tinyurl.com/api-create.php?url={url}') as resp:
resp = await resp.text()
em.description = f"Shortened Link: \n{resp}"
em.add_field(name='Original Link', value=url)
Expand Down

0 comments on commit 46cc810

Please sign in to comment.