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" + ] +}