The telegram bot, for those who want to test https://t.me/CovidDeplacementBot
$ git clone [email protected]:reevoremo/covid-deplacement-bot.git
$ cd covid-deplacement-bot
$ npm i
Create a telegram bot and get the bot token.
Environment variables:
BOT_TOKEN=<your bot token given by telegram>
BOT_LOG_TOKEN=<bot token> # You can use the same, it informs when /start command is used and when cert is generated
BOT_LOG_USER=<telegram user id> #Give your ID so you can get the 'new user' or 'new cert' alerts
Then run the application
$ node index.js
Run a docker container in a server
$ docker-compose up -d --build
- docker and docker-compose
Make sure docker has permission to access these directories. You can change the mount location or the permissions to run the application.
Volume for environment variables
- /credentials/covid-bot/env_file Add the environment variables to this file.
Volume mounted to persist the data
- /opt/covid-bot/data:/opt/services/node/src/database
The original creator of the certificate generator: covid-19-certificate Johann Pardanaud.
The following open source projects were used for the development of this service: