zakerytclarke commited on
Commit
021337d
·
verified ·
1 Parent(s): 97c3e41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,10 +108,10 @@ async def on_reaction_add(reaction, user):
108
  # Create a thread or use existing one
109
  thread = message.thread
110
  if thread is None:
111
- thread = await message.create_thread(name=f"Debug Thread: '{cleaned_message[0:10]}...'", auto_archive_duration=60)
112
 
113
  response = await debug_teapot_inference(server_name, user_input)
114
- await thread.send("Context:\n"+discord.utils.escape_markdown(response))
115
 
116
 
117
 
 
108
  # Create a thread or use existing one
109
  thread = message.thread
110
  if thread is None:
111
+ thread = await message.create_thread(name=f"Debug Thread: '{cleaned_message[0:30]}...'", auto_archive_duration=60)
112
 
113
  response = await debug_teapot_inference(server_name, user_input)
114
+ await thread.send("Context:\n"+discord.utils.escape_markdown(response[0:2000]))
115
 
116
 
117