add config file

This commit is contained in:
Francesco Esposito 2019-08-15 23:22:02 +02:00
parent 077ebbb278
commit 6ccc9ef2ed
1 changed files with 23 additions and 0 deletions

23
src/config.js Normal file
View File

@ -0,0 +1,23 @@
require('dotenv').config();
const owm = {
token: process.env.OWM_TOKEN,
baseurl: 'http://api.openweathermap.org/data/2.5',
lang: process.env.OWM_LANG,
units: process.env.OWM_UNITS,
};
const telegram = {
token: process.env.TELEGRAM_TOKEN,
};
const config = {
owm,
telegram,
};
export default config;