Typing
|
@ -29,12 +29,12 @@ class Fun(commands.Cog):
|
|||
@commands.hybrid_command(name="clap")
|
||||
async def clap(self, ctx: commands.Context, *, text: str):
|
||||
"""Clap a message with emojis for extra dramatic effect"""
|
||||
chars = list(filter(lambda c: c.isalnum(), text))
|
||||
chars = list(filter(lambda c: c in constants.EMOJI_MAP, text))
|
||||
|
||||
if not chars:
|
||||
return await ctx.reply("👏", mention_author=False)
|
||||
|
||||
text = "👏".join(list(map(lambda c: constants.EMOJI_MAP.get(c), chars)))
|
||||
text = "👏".join(list(map(lambda c: constants.EMOJI_MAP[c], chars)))
|
||||
text = f"👏{text}👏"
|
||||
|
||||
if len(text) > constants.Limits.MESSAGE_LENGTH:
|
||||
|
|
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 32 KiB |