feat(emoji): added the cog

This commit is contained in:
Seaswimmer 2024-05-08 13:43:33 -04:00
parent c618f9be72
commit 384ce7fc6d
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F
3 changed files with 32 additions and 0 deletions

5
emoji/__init__.py Normal file
View file

@ -0,0 +1,5 @@
from .emoji import Emoji
async def setup(bot):
await bot.add_cog(Emoji(bot))

11
emoji/emoji.py Normal file
View file

@ -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)

16
emoji/info.json Normal file
View file

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