Araeynn commited on
Commit
1c44584
1 Parent(s): 36e20cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -120,12 +120,6 @@ async def on_disconnect():
120
 
121
  @client.event
122
  async def on_message(message):
123
- if clone:
124
- asyncio.sleep(1)
125
- syncMessages()
126
- return 0
127
- else:
128
- syncMessages()
129
  for user in message.mentions:
130
  message.content = message.content.replace(f"<@{user.id}>",
131
  f"<@{str(user)}>")
@@ -187,6 +181,7 @@ async def on_message(message):
187
  imgp = ec(output)[0]
188
  with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
189
  f.write(f"GPT4 Correct Assistant: {output}<|end_of_turn|>")
 
190
  embed = discord.Embed(title=title,
191
  description=output.replace(
192
  f"<|title|>{title}<|title|>", "").replace(f"<|image|>{imgp}<|image|>", ""),
 
120
 
121
  @client.event
122
  async def on_message(message):
 
 
 
 
 
 
123
  for user in message.mentions:
124
  message.content = message.content.replace(f"<@{user.id}>",
125
  f"<@{str(user)}>")
 
181
  imgp = ec(output)[0]
182
  with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
183
  f.write(f"GPT4 Correct Assistant: {output}<|end_of_turn|>")
184
+ syncMessages()
185
  embed = discord.Embed(title=title,
186
  description=output.replace(
187
  f"<|title|>{title}<|title|>", "").replace(f"<|image|>{imgp}<|image|>", ""),