umbrello-bot/src/config.js

32 lines
423 B
JavaScript
Raw Normal View History

2019-08-22 17:28:56 +02:00
require('dotenv').config();
2019-08-26 17:48:24 +02:00
const telegraf = {
2019-08-22 17:28:56 +02:00
token: process.env.TELEGRAM_TOKEN,
2019-08-26 17:48:24 +02:00
options: {
message: {
parse_mode: 'Markdown',
},
},
2019-08-22 17:28:56 +02:00
};
const umbrello = {
apiURL: process.env.UMBRELLO_API_URL,
};
const database = {
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
};
2019-08-26 17:48:24 +02:00
2019-08-22 17:28:56 +02:00
const config = {
2019-08-26 17:48:24 +02:00
telegraf,
2019-08-22 17:28:56 +02:00
umbrello,
database,
};
export default config;