Skip to content

Commit

Permalink
/slap catch args as caption
Browse files Browse the repository at this point in the history
Signed-off-by: TomyPrs <[email protected]>

fix typo
  • Loading branch information
tomyprs committed Apr 1, 2021
1 parent 2073d5e commit feaacd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anjani_bot/plugins/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ async def src(self, message):
@listener.on("slap", filters.group)
async def neko_slap(self, message):
""" Slap member with neko slap. """
text = " ".join(message.command)
chat_id = message.chat.id
async with self.bot.http.get(
'https://www.nekos.life/api/v2/img/slap') as slap:
Expand All @@ -161,5 +162,5 @@ async def neko_slap(self, message):
await self.bot.client.send_animation(
message.chat.id,
res["url"],
reply_to_message_id=reply_to.message_id
reply_to_message_id=reply_to.message_id, caption=text,
)

0 comments on commit feaacd6

Please sign in to comment.