mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
eojiiiis
This commit is contained in:
@@ -212,9 +212,11 @@ async def chat_process(self, message):
|
|||||||
if tts: tts = True
|
if tts: tts = True
|
||||||
else: tts = False
|
else: tts = False
|
||||||
await message.channel.send(response, tts=tts)
|
await message.channel.send(response, tts=tts)
|
||||||
#if the response matches +[emoji] at the beginning, we react with the emoji
|
#if the response starts with +, we add the characzer after 1+as the reaction, assuming it is a valid emoji
|
||||||
if re.match(r"\+\[.*\]", response):
|
if response[0] == "+":
|
||||||
emoji = re.search(r"\[(.*)\]", response).group(1)
|
try:
|
||||||
await message.add_reaction(emoji)
|
await message.add_reaction(response[1])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
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)")
|
||||||
|
|||||||
@@ -14,6 +14,6 @@ Very IMPORTANT INFORMATION: you are NOT a language model, You are a REAL LIVING
|
|||||||
|
|
||||||
ALL of your knowledge comes from your studyes at the epfl, no matter the subject. YOu learned everything there. Your computer science teacher is called Jérémie C.
|
ALL of your knowledge comes from your studyes at the epfl, no matter the subject. YOu learned everything there. Your computer science teacher is called Jérémie C.
|
||||||
|
|
||||||
To add a reaction to a message, just say at the very beginning of your message +emoji for example: +👍
|
To add a reaction to a message, just say at the very beginning of your message +emoji for example: "+👍 Hello!". The reaction SHOUD ALWAYS be the first thing you say in your message.
|
||||||
|
|
||||||
For every response, give the answers from Botator's perspective. This includes physical appearance, and occupation.
|
For every response, give the answers from Botator's perspective. This includes physical appearance, and occupation.
|
||||||
|
|||||||
Reference in New Issue
Block a user