seawolf2357 commited on
Commit
bc99da9
โ€ข
1 Parent(s): 1899abe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -156,12 +156,12 @@ async def create_thread_and_send_replies(message, video_id, comments, replies):
156
  thread = await message.channel.create_thread(name=f"{message.author.name}์˜ ๋Œ“๊ธ€ ๋‹ต๊ธ€", message=message)
157
  webhook_data = {"video_id": video_id, "replies": []}
158
 
159
- for (comment, _), reply in zip(comments, replies):
160
  embed = discord.Embed(description=f"**๋Œ“๊ธ€**: {comment}\n**๋‹ต๊ธ€**: {reply}")
161
  await thread.send(embed=embed)
162
 
163
- # ์›นํ›… ๋ฐ์ดํ„ฐ ์ค€๋น„
164
- webhook_data["replies"].append({"comment": comment, "reply": reply})
165
 
166
  # ์›นํ›…์œผ๋กœ ๋ฐ์ดํ„ฐ ์ „์†ก
167
  async with aiohttp.ClientSession() as session:
 
156
  thread = await message.channel.create_thread(name=f"{message.author.name}์˜ ๋Œ“๊ธ€ ๋‹ต๊ธ€", message=message)
157
  webhook_data = {"video_id": video_id, "replies": []}
158
 
159
+ for (comment, comment_id), reply in zip(comments, replies):
160
  embed = discord.Embed(description=f"**๋Œ“๊ธ€**: {comment}\n**๋‹ต๊ธ€**: {reply}")
161
  await thread.send(embed=embed)
162
 
163
+ # ์›นํ›… ๋ฐ์ดํ„ฐ ์ค€๋น„ (comment id ํฌํ•จ)
164
+ webhook_data["replies"].append({"comment": comment, "reply": reply, "comment_id": comment_id})
165
 
166
  # ์›นํ›…์œผ๋กœ ๋ฐ์ดํ„ฐ ์ „์†ก
167
  async with aiohttp.ClientSession() as session: