mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
reactions
This commit is contained in:
@@ -211,12 +211,14 @@ async def chat_process(self, message):
|
|||||||
if response != "":
|
if response != "":
|
||||||
if tts: tts = True
|
if tts: tts = True
|
||||||
else: tts = False
|
else: tts = False
|
||||||
await message.channel.send(response, tts=tts)
|
|
||||||
#if the response starts with +, we add the characzer after 1+as the reaction, assuming it is a valid emoji
|
#if the response starts with +, we add the characzer after 1+as the reaction, assuming it is a valid emoji
|
||||||
if response[0] == "+":
|
if response[0] == "+":
|
||||||
try:
|
try:
|
||||||
await message.add_reaction(response[1])
|
await message.add_reaction(response[1])
|
||||||
|
response = response[2:]
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
await message.channel.send(response, tts=tts)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
await message.channel.send("The AI is not sure what to say (the response was empty)")
|
await message.channel.send("The AI is not sure what to say (the response was empty)")
|
||||||
|
|||||||
Reference in New Issue
Block a user