if ctx.message.author.id in SOMEARRAY: SOMEARRAY.get(ctx.message.author.id) url = ("http://ouo.io/api/" + SOMEARRAY.get(ctx.message.author.id) + ctx.message.content) handle = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'}) html = urllib.request.urlopen(handle).read().decode('utf-8') await self.bot.say("Shortened: " + html) else: await self.bot.say("nope")