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

Telegram bot that sends you the opening and closing hours of the libraries and study areas of Trento

License

Notifications You must be signed in to change notification settings

albertoxamin/bibliotrentobot

Repository files navigation

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

About

Telegram bot that sends you the opening and closing hours of the libraries and study areas of Trento

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages