Re: Untitled

By Unreliable Parakeet, 5 Years ago, written in Python, viewed 110 times. This paste is a reply to Untitled by Buff Penguin
URL http://pb.stoleyour.com/view/d20bf0b9 Embed
Download Paste or View RawExpand paste to full width of browser
  1.     if ctx.message.author.id in SOMEARRAY:
  2.         SOMEARRAY.get(ctx.message.author.id)
  3.         url = ("http://ouo.io/api/" + SOMEARRAY.get(ctx.message.author.id) +  ctx.message.content)
  4.         handle = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
  5.         html = urllib.request.urlopen(handle).read().decode('utf-8')
  6.         await self.bot.say("Shortened: " + html)
  7.     else:
  8.         await self.bot.say("nope")

Reply to "Re: Untitled"

Here you can reply to the paste above