Skip to content

Commit

Permalink
updated discord config getDID
Browse files Browse the repository at this point in the history
  • Loading branch information
rushidhanwant committed Mar 25, 2023
1 parent 59cd761 commit 9f81051
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/discord-bot/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const config = {
compose: {
nodeUrl: process.env.CERAMIC_NODE || "",
graphqlUrl: process.env.CERAMIC_GRAPH || "",
did: process.env.CERAMIC_DID_KEY || "",
session: process.env.CERAMIC_SESSION || "",
},
discord: {
token: process.env.DISCORD_TOKEN || "",
Expand All @@ -19,5 +19,6 @@ export const config = {
};

export const getBotDid = async (): Promise<any> => {
return config.compose.did;
const session = await DIDSession.fromSession(config.compose.session);
return session.did;
}

0 comments on commit 9f81051

Please sign in to comment.