Update bot/index.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,6 @@ if (!event || !fs.existsSync(event)) {
|
|||||||
const payload = JSON.parse(fs.readFileSync(event, "utf8"));
|
const payload = JSON.parse(fs.readFileSync(event, "utf8"));
|
||||||
console.log("📦 Event Payload:", JSON.stringify(payload, null, 2));
|
console.log("📦 Event Payload:", JSON.stringify(payload, null, 2));
|
||||||
|
|
||||||
const type = payload.action;
|
|
||||||
const comment = payload.comment?.body || "";
|
const comment = payload.comment?.body || "";
|
||||||
const reaction = payload.reaction?.content || "";
|
const reaction = payload.reaction?.content || "";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user