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:
parent
bc0f24d89e
commit
4945a003d0
1 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue