Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoxamin authored May 2, 2019
1 parent e4e0176 commit 0f1b34b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ module.exports = {
// API key for Telegram
telegraf_token:'YOUR_TELEGRAM_API_KEY',
   db_connection:'your_mongodb_connection_string'
firebaseConfig : {
apiKey: 'YOUR_FIREBASE_API_KEY',
authDomain: 'unimeal-8e378.firebaseapp.com',
databaseURL: 'https://unimeal-8e378.firebaseio.com',
projectId: 'unimeal-8e378',
storageBucket: 'unimeal-8e378.appspot.com',
messagingSenderId: '648699973887'
}
};
```
For Telegram API key, check https://github.com/Finalgalaxy/telegram-telegraf-bot and follow README instructions about how to create a Telegram Bot.

> The bot should work even without the db_connection and the firebase config
Once you've set up your API key, just type:
`npm start`
Expand All @@ -31,13 +40,11 @@ Once you've set up your API key, just type:
## Docker
For easier deployment you can also use the docker image

```shell
```bash
docker pull albertoxamin/unimeal-bot
docker run -it -e "TOKEN=YOUR_TELEGRAM_API_KEY" \
-e "DB_CONNECTION=your_mongodb_connection_string" \
--name unimeal albertoxamin/unimeal-bot
docker run -it -v /path_in_host/config.js:/usr/src/app/config.js --name unimeal albertoxamin/unimeal-bot
```


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Falbertoxamin%2Funimeal-bot.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Falbertoxamin%2Funimeal-bot?ref=badge_large)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Falbertoxamin%2Funimeal-bot.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Falbertoxamin%2Funimeal-bot?ref=badge_large)

0 comments on commit 0f1b34b

Please sign in to comment.