Compare commits
2 Commits
773491e2ff
...
225cc8129e
| Author | SHA1 | Date |
|---|---|---|
|
|
225cc8129e | |
|
|
961c125648 |
|
|
@ -35,4 +35,5 @@ def upgrade() -> None:
|
|||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table("reminders")
|
||||
sa.Enum("LES", name="remindercategory").drop(op.get_bind())
|
||||
# ### end Alembic commands ###
|
||||
|
|
|
|||
|
|
@ -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 |