diff --git a/retrosign/__init__.py b/retrosign/__init__.py deleted file mode 100644 index 256db4e..0000000 --- a/retrosign/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from .retrosign import Retrosign - -__red_end_user_data_statement__ = "This cog does not persistently store data or metadata about users." - - -def setup(bot): - bot.add_cog(Retrosign(bot)) diff --git a/retrosign/info.json b/retrosign/info.json deleted file mode 100644 index a737f1c..0000000 --- a/retrosign/info.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "author": [ - "aikaterna" - ], - "description": "A port of Anismash's retrosign cog for v2: = 15: - return await ctx.send("\N{CROSS MARK} Your first line is too long (14 character limit)") - if len(texts[1]) >= 13: - return await ctx.send("\N{CROSS MARK} Your second line is too long (12 character limit)") - if len(texts[2]) >= 26: - return await ctx.send("\N{CROSS MARK} Your third line is too long (25 character limit)") - data = dict( - bcg=choice([1, 2, 3, 4, 5]), txt=choice([1, 2, 3, 4]), text1=texts[0], text2=texts[1], text3=texts[2], - ) - else: - return await ctx.send("\N{CROSS MARK} please provide three words seperated by ';' or one word") - - async with ctx.channel.typing(): - async with self.session.post("https://photofunia.com/effects/retro-wave", data=data) as response: - if response.status == 200: - soup = bs(await response.text(), "html.parser") - download_url = soup.find("div", class_="downloads-container").ul.li.a["href"] - async with self.session.request("GET", download_url) as image_response: - if image_response.status == 200: - image_data = await image_response.read() - with BytesIO(image_data) as temp_image: - image = discord.File(fp=temp_image, filename="image.png") - await ctx.channel.send(file=image) - - def cog_unload(self): - self.bot.loop.create_task(self.session.close())