seawolf2357
commited on
Commit
โข
bc99da9
1
Parent(s):
1899abe
Update app.py
Browse files
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,
|
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:
|