Skip to content

Commit

Permalink
Add dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanolkies committed May 1, 2020
1 parent c9956a7 commit 3717cc3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
require('dotenv').config();
const TelegramBot = require('node-telegram-bot-api');
const Web3 = require('web3');
const RNS = require('@rsksmart/rns');

// replace the value below with the Telegram token you receive from @BotFather
const token = 'YOUR_TELEGRAM_BOT_TOKEN';
const token = process.env.TELEGRAM_BOT_TOKEN;

// Create a bot that uses 'polling' to fetch new updates
const bot = new TelegramBot(token, { polling: true });
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 @@ -25,6 +25,7 @@
"homepage": "https://github.com/ilanolkies/rns-bot#readme",
"dependencies": {
"@rsksmart/rns": "^1.5.0",
"dotenv": "^8.2.0",
"node-telegram-bot-api": "^0.40.0",
"web3": "^1.2.7"
}
Expand Down

0 comments on commit 3717cc3

Please sign in to comment.