Untitled

By Gamboge Water Vole, 5 Years ago, written in Python, viewed 108 times.
URL http://pb.stoleyour.com/view/bcab5671 Embed
Download Paste or View RawExpand paste to full width of browser
  1. import discord
  2. import urllib
  3. import asyncio
  4. from discord.ext import commands
  5.  
  6.  
  7. class Shorten:
  8.  
  9.     def __init__(self, bot):
  10.         self.bot = bot)
  11.  
  12.     @commands.command(pass_context=True)
  13.     async def shorten(self, url):
  14.        
  15.         if "117450987848990720" == url.message.author.id:
  16.             await self.bot.say("success")
  17.         else:
  18.             await self.bot.say("fail")
  19.        
  20.        
  21. def setup(bot):
  22.     bot.add_cog(Shorten(bot))
  23.  

Reply to "Untitled"

Here you can reply to the paste above