mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-26 14:15:54 +00:00
feat: reactions
This commit is contained in:
@@ -176,7 +176,9 @@ async def forward_to_google_api(
|
||||
else:
|
||||
response = bot.ai_helper.ask_without_cache(input)
|
||||
|
||||
await prompt.reply(
|
||||
reply_message = await prompt.reply(
|
||||
response,
|
||||
mention_author=True,
|
||||
)
|
||||
# Add a reaction to the reply message (if the user decides to delete it)
|
||||
await reply_message.add_reaction("\U0000274C")
|
||||
|
||||
@@ -436,5 +436,6 @@ async def handle_message(message, bot):
|
||||
if re.search(pattern["regex"], message.content, re.IGNORECASE):
|
||||
response = pattern["response"]
|
||||
reply_message = await message.reply(response, mention_author=True)
|
||||
# Add a reaction to the reply message (if the user decides to delete it)
|
||||
await reply_message.add_reaction("\U0000274C")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user