From 1d87d8a4c0073bd1d50ff0638670fe7f41342396 Mon Sep 17 00:00:00 2001 From: rushikesh dhanwant Date: Mon, 27 Mar 2023 15:35:30 +0530 Subject: [PATCH 1/2] updated discord bot permissions --- .env.template | 1 + apps/web/src/config/config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.template b/.env.template index fb1770de..6e738b40 100644 --- a/.env.template +++ b/.env.template @@ -8,6 +8,7 @@ CERAMIC_GRAPH= CERAMIC_NODE= CERAMIC_PRIVATE_KEY= CERAMIC_DID_KEY= +CERAMIC_SESSION= # NEXT PORT=3000 diff --git a/apps/web/src/config/config.ts b/apps/web/src/config/config.ts index 34d7cf07..e531e562 100644 --- a/apps/web/src/config/config.ts +++ b/apps/web/src/config/config.ts @@ -4,7 +4,7 @@ export const config = { discordOAuth: { clientId: process.env.NEXT_PUBLIC_DISCORD_OAUTH_CLIENT_ID || "", clientSecret: process.env.DISCORD_OAUTH_CLIENT_SECRET || "", - permissions: process.env.NEXT_PUBLIC_DISCORD_OAUTH_PERMISSIONS || "326417591312", + permissions: process.env.NEXT_PUBLIC_DISCORD_OAUTH_PERMISSIONS || "326418131984", redirectUrl: process.env.NEXT_PUBLIC_DISCORD_OAUTH_REDIRECT_URL || "", }, walletConnect: { From 66f7cf7a0e47bb568b000598c6bbe954a10b9b2e Mon Sep 17 00:00:00 2001 From: rushikesh dhanwant Date: Mon, 27 Mar 2023 15:35:47 +0530 Subject: [PATCH 2/2] added logs --- apps/discord-bot/src/core/comments/handler.ts | 1 + apps/discord-bot/src/core/threads/handler.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/discord-bot/src/core/comments/handler.ts b/apps/discord-bot/src/core/comments/handler.ts index 3e69cbe9..727e67a2 100644 --- a/apps/discord-bot/src/core/comments/handler.ts +++ b/apps/discord-bot/src/core/comments/handler.ts @@ -10,6 +10,7 @@ import {communityHasSocial, getSocialCommunityId} from "../utils/data"; export const postComment = async (clients: Clients, req: Request, res: Response) => { const {commentId} = req.body; + logger.info('core', {body: req.body}); const comment: Node = await clients.composeQuery().fetchCommentDetails(commentId); const socials = _.get(comment, "node.thread.community.socialPlatforms.edges"); diff --git a/apps/discord-bot/src/core/threads/handler.ts b/apps/discord-bot/src/core/threads/handler.ts index 036b9aa8..e3efe36c 100644 --- a/apps/discord-bot/src/core/threads/handler.ts +++ b/apps/discord-bot/src/core/threads/handler.ts @@ -9,6 +9,7 @@ import {logger} from "../utils/logger"; export const postThread = async (clients: Clients, req: Request, res: Response) => { try { + logger.info('core', {body: req.body}); const {threadId} = req.body; const thread: Node = await clients.composeQuery().fetchThreadDetails(threadId); const socials = _.get(thread, "node.community.socialPlatforms.edges");