mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
Added reactions
This commit is contained in:
@@ -206,5 +206,9 @@ async def chat_process(self, message):
|
||||
if tts: tts = True
|
||||
else: tts = False
|
||||
await message.channel.send(response, tts=tts)
|
||||
#if the response matches +[emoji] at the beginning, we react with the emoji
|
||||
if re.match(r"\+\[.*\]", response):
|
||||
emoji = re.search(r"\[(.*)\]", response).group(1)
|
||||
await message.add_reaction(emoji)
|
||||
else:
|
||||
await message.channel.send("The AI is not sure what to say (the response was empty)")
|
||||
|
||||
Reference in New Issue
Block a user