new command minecraft to get color code ig

This commit is contained in:
Mylloon 2021-06-28 12:38:11 +02:00
parent b057da6627
commit 637e6102cc

View file

@ -653,3 +653,15 @@ class Utils(commands.Cog):
return await self._changelogs(ctx, True) return await self._changelogs(ctx, True)
else: else:
return await self._changelogs(ctx, version, True) return await self._changelogs(ctx, version, True)
@commands.command(name='minecraft', aliases=["codecouleurminecraft", "minecraftcodecouleur"])
async def _minecraft(self, ctx, fromSlash = None):
"""Affiche le code couleur utilisé dans Minecraft.\n ➡ Syntaxe: {PREFIX}minecraft/codecouleurminecraft/minecraftcodecouleur"""
if fromSlash != True:
fromSlash = False
if fromSlash != True:
await ctx.message.add_reaction(emoji = '')
return await ctx.send("https://imgr.search.brave.com/5-k6Lgh0OyRI8IVwhiBrNRmlY94utGxSX0k9tvtpqiA/fit/590/150/no/1/aHR0cDovL2kuaW1n/dXIuY29tL3Azd2lz/OVAucG5n")
@cog_ext.cog_slash(name="minecraft", description = "Affiche le code couleur utilisé dans Minecraft.")
async def __minecraft(self, ctx):
return await self._minecraft(ctx, True)