Skip to content

Commit

Permalink
Adding dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
nahakiole committed Aug 31, 2020
1 parent a61e9d8 commit 37e7d3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ const {Telegraf} = require('telegraf')

const {Flatastic} = require('./flatastic.js')

require('dotenv').config()

let flatastic = new Flatastic(process.env.FLATASTIC_TOKEN)

const bot = new Telegraf(process.env.BOT_TOKEN)
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A telegram bot for flatastic",
"main": "bot.js",
"dependencies": {
"dotenv": "^8.2.0",
"nodemon": "^2.0.4",
"request": "^2.88.2",
"telegraf": "^3.38.0"
Expand Down

0 comments on commit 37e7d3b

Please sign in to comment.