-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
63 lines (52 loc) · 2.07 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// const { Client } = require("pg");
// const airtable = require("airtable");
const dotenv = require('dotenv');
dotenv.config();
const SECRETS = {
TOKEN: process.env.TOKEN,
// PG_DB: process.env.PG_DB,
// PG_HOST: process.env.PG_HOST,
// PG_SECRET: process.env.PG_SECRET,
// PG_USER: process.env.PG_USER,
// API_KEY: process.env.API_KEY,
// RAID_CENTRAL_V2_BASE_ID: process.env.RAID_CENTRAL_V2_BASE_ID,
GUILD_ID: process.env.GUILD_ID,
// SMART_ESCROW_CHANNEL_ID: process.env.SMART_ESCROW_CHANNEL_ID,
CLIENT_SUBMISSION_CHANNEL_ID: process.env.CLIENT_SUBMISSION_CHANNEL_ID,
// WHISPERS_CHANNEL_ID: process.env.WHISPERS_CHANNEL_ID,
LIBRARY_CHANNEL_ID: process.env.LIBRARY_CHANNEL_ID,
COMMAND_CENTER_ID: process.env.COMMAND_CENTER_ID,
MEMBER_ROLE_ID: process.env.MEMBER_ROLE_ID,
// BIDS_ALERT_CHANNEL_ID: process.env.BIDS_ALERT_CHANNEL_ID,
COHORT_SUBMISSIONS_CHANNEL_ID: process.env.COHORT_SUBMISSIONS_CHANNEL_ID,
HQ_ANNOUNCEMENTS_CHANNEL_ID: process.env.HQ_ANNOUNCEMENTS_CHANNEL_ID,
JWT_SECRET: process.env.JWT_SECRET,
CAMPS_CATEGORY_ID: process.env.CAMPS_CATEGORY_ID,
RAIDS_CATEGORY_ID: process.env.RAIDS_CATEGORY_ID,
WHO_IS_AVAILABLE_CHANNEL_ID: process.env.WHO_IS_AVAILABLE_CHANNEL_ID,
OPS_CHANNEL_ID: process.env.OPS_CHANNEL_ID,
WEBHOOK_API_TOKEN: process.env.WEBHOOK_API_TOKEN,
HASURA_GRAPHQL_ENDPOINT: process.env.HASURA_GRAPHQL_ENDPOINT,
HASURA_GRAPHQL_ADMIN_SECRET: process.env.HASURA_GRAPHQL_ADMIN_SECRET,
};
// const initPgClient = () => {
// const client = new Client({
// user: SECRETS.PG_USER,
// host: SECRETS.PG_HOST,
// database: SECRETS.PG_DB,
// password: SECRETS.PG_SECRET,
// port: 5432,
// });
// return client;
// };
// const initAirtableClient = () => {
// airtable.configure({
// endpointUrl: "https://api.airtable.com",
// apiKey: SECRETS.API_KEY,
// });
// const base = airtable.base(SECRETS.RAID_CENTRAL_V2_BASE_ID);
// const raids_v2_table = base("Raids v2");
// return raids_v2_table;
// };
// module.exports = { SECRETS, initPgClient, initAirtableClient };
module.exports = { SECRETS };