1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

add command to embiggen an emote (#15)

This commit is contained in:
Chippy 2021-02-16 07:31:24 +01:00 committed by GitHub
parent bc0f24d89e
commit 4945a003d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,6 +534,15 @@ class Emotes(commands.Cog):
f'Animated emotes: **{animated_emotes} / {emote_limit}** ({animated_left} left, {percent_animated}% full)\n'
f'Total: **{total_emotes} / {emote_limit * 2}**')
@commands.command(aliases=["embiggen"])
async def big(self, context, emote):
"""Shows the original image for the given emote.
emote: the emote to embiggen.
"""
emote = await self.parse_emote(context, emote)
await context.send(f'{emote.name}: {emote.url}')
async def parse_emote(self, context, name_or_emote):
match = utils.emote.RE_CUSTOM_EMOTE.match(name_or_emote)
if match: