Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (36 loc) · 2.21 KB

README.md

File metadata and controls

46 lines (36 loc) · 2.21 KB

bibliotrentobot

Docker Build Status Docker Pulls CodeFactor FOSSA Status

What is this repository about?

This project is a Node.js Telegraf (Telegram) bot to {}.

This is the code powering @bibliotrentobot.

Set-up

Once you cloned the repository: you need to enter into project dir: cd bibliotrentobot and type npm install to install all dependencies.

Create a config.js file in the root of this project with the following info:

module.exports = {
    // API key for Telegram
    token:'YOUR_TELEGRAM_API_KEY'
};

For Telegram API key, check https://github.com/Finalgalaxy/telegram-telegraf-bot and follow README instructions about how to create a Telegram Bot.

Once you've set up your API key, just type: npm start ...done!

Docker

For easier deployment you can also use the docker image

docker pull albertoxamin/bibliotrentobot
docker run -it -e "token=YOUR_TELEGRAM_API_KEY" \
	-v storage_path:/usr/src/app/storage \
    --name bibliotrentobot albertoxamin/bibliotrentobot

where storage_path is something like this ~/biblio and inside that folder add a db.json

License

FOSSA Status