From 384ce7fc6dc9a7783e673f196e3e7c01553a6ae7 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 8 May 2024 13:43:33 -0400 Subject: [PATCH] feat(emoji): added the cog --- emoji/__init__.py | 5 +++++ emoji/emoji.py | 11 +++++++++++ emoji/info.json | 16 ++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 emoji/__init__.py create mode 100644 emoji/emoji.py create mode 100644 emoji/info.json diff --git a/emoji/__init__.py b/emoji/__init__.py new file mode 100644 index 0000000..feaa7fc --- /dev/null +++ b/emoji/__init__.py @@ -0,0 +1,5 @@ +from .emoji import Emoji + + +async def setup(bot): + await bot.add_cog(Emoji(bot)) diff --git a/emoji/emoji.py b/emoji/emoji.py new file mode 100644 index 0000000..7dea9f9 --- /dev/null +++ b/emoji/emoji.py @@ -0,0 +1,11 @@ +import discord +from redbot.core import commands + + +class Emoji(commands.cog): + """Retrieve information about emojis.""" + + @commands.hybrid_command() + async def emoji(self, ctx: commands.Context, emoji: discord.Emoji, ephemeral: bool = False) -> None: + """Retrieve information about an emoji.""" + await ctx.send(content=f"Emoji: {emoji}", ephemeral=ephemeral) diff --git a/emoji/info.json b/emoji/info.json new file mode 100644 index 0000000..0aca458 --- /dev/null +++ b/emoji/info.json @@ -0,0 +1,16 @@ +{ + "author" : ["SeaswimmerTheFsh (seasw.)"], + "install_msg" : "Thank you for installing Emoji!", + "name" : "Emoji", + "short" : "Retrieve information about emojis.", + "description" : "Retrieve information about emojis.", + "end_user_data_statement" : "This cog does not store end user data.", + "hidden": false, + "disabled": false, + "min_bot_version": "3.5.0", + "min_python_version": [3, 10, 0], + "requirements": ["pillow"], + "tags": [ + "utility" + ] +}