diff --git a/TODO.md b/TODO.md index 70b4703..d05331f 100644 --- a/TODO.md +++ b/TODO.md @@ -20,9 +20,9 @@ - [ ] Add git log to info -- [ ] Add try it and see command +- [x] Add try it and see command -- [ ] ~~Add rickroll command~~ +- [x] ~~Add rickroll command~~ - [ ] Add sending code (regular and from github) diff --git a/cogs/general/help.py b/cogs/general/help.py index 45cfee5..97dd6e9 100644 --- a/cogs/general/help.py +++ b/cogs/general/help.py @@ -94,6 +94,7 @@ class Help(commands.Cog, name="help"): "labubu": "miscellaneous", "piracy": "miscellaneous", "tryitandsee": "miscellaneous", + "rr": "miscellaneous", } category_descriptions = { diff --git a/cogs/miscellaneous/labubu.py b/cogs/miscellaneous/labubu.py index 266b1d3..28f2f19 100644 --- a/cogs/miscellaneous/labubu.py +++ b/cogs/miscellaneous/labubu.py @@ -9,7 +9,7 @@ class Labubu(commands.Cog, name="labubu"): @commands.hybrid_command( name="labubu", - description="Shows Labubu ASCII art", + description="Labubu ASCII art", ) async def labubu(self, context: Context) -> None: labubu_art = """⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠀⠙⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ diff --git a/cogs/miscellaneous/rr.py b/cogs/miscellaneous/rr.py new file mode 100644 index 0000000..0cdf1ad --- /dev/null +++ b/cogs/miscellaneous/rr.py @@ -0,0 +1,34 @@ +import discord +from discord.ext import commands +from discord.ext.commands import Context + + +class Rr(commands.Cog, name="rr"): + def __init__(self, bot) -> None: + self.bot = bot + + @commands.hybrid_command( + name="rr", + description="Rickroll", + ) + async def rr(self, context: Context) -> None: + gif_url = "https://yes.nighty.works/raw/JzjMcs.gif" + + embed = discord.Embed( + color=0x7289DA, + ) + embed.set_author(name="Rickroll", icon_url="https://yes.nighty.works/raw/YxMC0r.png") + embed.set_image(url=gif_url) + + if getattr(context, "interaction", None): + inter = context.interaction + if not inter.response.is_done(): + await inter.response.send_message(embed=embed, ephemeral=False) + else: + await inter.followup.send(embed=embed, ephemeral=True) + else: + await context.send(embed=embed) + + +async def setup(bot) -> None: + await bot.add_cog(Rr(bot))