forked from adisubagja/WhatsGram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
15 lines (13 loc) · 989 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require('dotenv').config()
const fs = require('fs');
// const SESSION_DATA = process.env.SESSION_DATA || fs.existsSync('session.json') ? fs.readFileSync(__dirname + '/session.json', { encoding: 'utf8' }) : '';
const TG_BOT_TOKEN = process.env.TG_BOT_TOKEN || '';
const TG_OWNER_ID = process.env.TG_OWNER_ID || '';
const REMOVE_BG_API = process.env.REMOVE_BG_API || undefined;
const HEROKU_API_KEY = process.env.HEROKU_API_KEY || '';
const HEROKU_APP_NAME = process.env.HEROKU_APP_NAME || '';
const DB_URL = process.env.DB_URL || '';
const pmguard_enabled = process.env.PMGUARD_ENABLED || 'false';
const PMGUARD_ACTION = process.env.PMGUARD_ACTION && (process.env.PMGUARD_ACTION == 'mute' || process.env.PMGUARD_ACTION == 'block') ? process.env.PMGUARD_ACTION : 'mute';
const OCR_SPACE_API_KEY = process.env.OCR_SPACE_API_KEY || '';
module.exports = { TG_BOT_TOKEN , TG_OWNER_ID , REMOVE_BG_API, HEROKU_API_KEY, HEROKU_APP_NAME, DB_URL, pmguard_enabled, PMGUARD_ACTION, OCR_SPACE_API_KEY}