diff --git a/README.md b/README.md index 71be5fc..cfd32b8 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ ## Commands -![Total Commands](https://img.shields.io/badge/Total%20Commands-63-5865F2) +![Total Commands](https://img.shields.io/badge/Total%20Commands-64-5865F2) | Command group | Subcommands | | ------------ | --- | @@ -30,7 +30,7 @@ | sidestore | `help`, `refresh`, `code`, `crash`, `pairing`, `server`, `half`, `sparse`, `afc`, `udid` | | idevice | `help`, `noapps`, `errorcode`, `developermode`, `mountddi` | | melonx | `help`, `transfer`, `mods`, `gamecrash`, `requirements`, `error`, `26` | -| miscellaneous | `keanu`, `labubu`, `piracy`, `tryitandsee`, `rickroll`, `dontasktoask`, `support`, `depart`, `docs`| +| miscellaneous | `keanu`, `labubu`, `piracy`, `tryitandsee`, `rickroll`, `dontasktoask`, `support`, `depart`, `docs` `sigma` | | utilities | `translate`, `codepreview`, `dictionary` | | media | `download`, `mcquote`, `img2gif`, `tweety` | diff --git a/assets/IMG_8453.jpeg b/assets/IMG_8453.jpeg new file mode 100644 index 0000000..076f9c5 Binary files /dev/null and b/assets/IMG_8453.jpeg differ diff --git a/cogs/miscellaneous/__init__.py b/cogs/miscellaneous/__init__.py index 25a33bf..dabb387 100644 --- a/cogs/miscellaneous/__init__.py +++ b/cogs/miscellaneous/__init__.py @@ -11,6 +11,7 @@ from .piracy import piracy_command from .keanu import keanu_command from .support import support_command from .docs import docs_command +from .sigma import sigma_command class Miscellaneous(commands.GroupCog, name="misc"): def __init__(self, bot) -> None: @@ -81,6 +82,10 @@ class Miscellaneous(commands.GroupCog, name="misc"): async def miscellaneous_group_docs(self, context: Context): await self._invoke_hybrid(context, "docs") + @miscellaneous_group.command(name="sigma") + async def miscellaneous_group_sigma(self, context: Context): + await self._invoke_hybrid(context, "sigma") + @commands.check(_require_group_prefix) @commands.hybrid_command( name="dontasktoask", @@ -153,6 +158,14 @@ class Miscellaneous(commands.GroupCog, name="misc"): async def docs(self, context): return await docs_command()(self, context) + @commands.check(_require_group_prefix) + @commands.hybrid_command( + name="sigma", + description="i feel so sigma!" + ) + async def sigma(self, context): + return await sigma_command()(self, context) + async def setup(bot) -> None: cog = Miscellaneous(bot) await bot.add_cog(cog) @@ -166,3 +179,4 @@ async def setup(bot) -> None: bot.logger.info("Loaded extension 'miscellaneous.keanu'") bot.logger.info("Loaded extension 'miscellaneous.support'") bot.logger.info("Loaded extension 'miscellaneous.docs'") + bot.logger.info("Loaded extension 'miscellaneous.sigma'") diff --git a/cogs/miscellaneous/sigma.py b/cogs/miscellaneous/sigma.py new file mode 100644 index 0000000..9103536 --- /dev/null +++ b/cogs/miscellaneous/sigma.py @@ -0,0 +1,30 @@ +import discord +from discord.ext import commands +from discord.ext.commands import Context +import aiohttp +import io + + +def sigma_command(): + @commands.hybrid_command( + name="sigma", + description="i feel so sigma", + ) + async def sigma(self, context): + image_url = "https://yes.nighty.works/raw/EpWodj.jpeg" + + async with aiohttp.ClientSession() as session: + async with session.get(image_url) as resp: + data = await resp.read() + file = discord.File(io.BytesIO(data), filename="sigma.png") + + if getattr(context, "interaction", None): + inter = context.interaction + if not inter.response.is_done(): + await inter.response.send_message(file=file, ephemeral=False) + else: + await inter.followup.send(file=file, ephemeral=True) + else: + await context.send(file=file) + + return sigma