Add EmojiInfo cog #27

Merged
cswimr merged 27 commits from emoji into main 2024-05-08 16:07:30 -04:00
3 changed files with 32 additions and 0 deletions
Showing only changes of commit 384ce7fc6d - Show all commits

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