mirror of
https://github.com/alterware/aw-bot.git
synced 2025-11-18 09:02:07 +00:00
feat: reactions
This commit is contained in:
@@ -176,7 +176,9 @@ async def forward_to_google_api(
|
|||||||
else:
|
else:
|
||||||
response = bot.ai_helper.ask_without_cache(input)
|
response = bot.ai_helper.ask_without_cache(input)
|
||||||
|
|
||||||
await prompt.reply(
|
reply_message = await prompt.reply(
|
||||||
response,
|
response,
|
||||||
mention_author=True,
|
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):
|
if re.search(pattern["regex"], message.content, re.IGNORECASE):
|
||||||
response = pattern["response"]
|
response = pattern["response"]
|
||||||
reply_message = await message.reply(response, mention_author=True)
|
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")
|
await reply_message.add_reaction("\U0000274C")
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user