mirror of
https://github.com/franjsco/umbrello-bot
synced 2025-06-05 21:49:11 +02:00
Add config
This commit is contained in:
25
src/config.js
Normal file
25
src/config.js
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
require('dotenv').config();
|
||||||
|
|
||||||
|
|
||||||
|
const telegram = {
|
||||||
|
token: process.env.TELEGRAM_TOKEN,
|
||||||
|
};
|
||||||
|
|
||||||
|
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,
|
||||||
|
};
|
||||||
|
|
||||||
|
const config = {
|
||||||
|
telegram,
|
||||||
|
umbrello,
|
||||||
|
database,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export default config;
|
Reference in New Issue
Block a user