Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -172,13 +172,13 @@ async def on_message(message):
|
|
172 |
else:
|
173 |
with open(f"data/{guild_name}/{msgchannel_name}", "w") as f:
|
174 |
if message.author.bot:
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
with open(f"data/{guild_name}/{msgchannel_name}", "r") as f:
|
183 |
context = f.read()
|
184 |
if "Feeway" in guild_name:
|
|
|
172 |
else:
|
173 |
with open(f"data/{guild_name}/{msgchannel_name}", "w") as f:
|
174 |
if message.author.bot:
|
175 |
+
f.write(
|
176 |
+
f"GPT4 Correct system: {sysp}<|end_of_turn|>GPT4 Correct {message.author}[bot]: {message.content}<|end_of_turn|>"
|
177 |
+
)
|
178 |
+
else:
|
179 |
+
f.write(
|
180 |
+
f"GPT4 Correct system: {sysp}<|end_of_turn|>GPT4 Correct {message.author}: {message.content}<|end_of_turn|>"
|
181 |
+
)
|
182 |
with open(f"data/{guild_name}/{msgchannel_name}", "r") as f:
|
183 |
context = f.read()
|
184 |
if "Feeway" in guild_name:
|