import discord import urllib import asyncio from discord.ext import commands class Shorten: def __init__(self, bot): self.bot = bot) @commands.command(pass_context=True) async def shorten(self, url): if "117450987848990720" == url.message.author.id: await self.bot.say("success") else: await self.bot.say("fail") def setup(bot): bot.add_cog(Shorten(bot))