feat(emoji): added the cog
This commit is contained in:
parent
c618f9be72
commit
384ce7fc6d
3 changed files with 32 additions and 0 deletions
5
emoji/__init__.py
Normal file
5
emoji/__init__.py
Normal 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
11
emoji/emoji.py
Normal 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
16
emoji/info.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue