Team R6 Corse telegram bot
This is a simple telegram bot that accept the following commands:
/chi - List users that are playing
/tacca STEAMID [PLAYER_NAME] - add the given steamId to the list
/stacca STEAMID - remove a given steamId from the list
/lista - List all configured users
/boh - Show this help page
The list of users is different for each chat and will have to be created
by adding all the players with the command tacca STEAMDID PLAYER_NAME
Installation
- Create a new bot using BotFather chat in Telegram
- Generate a personal steam API key
- Copy
config.js.example
asconfig.js
and edit for adding your telegram and steam api keys; - Invite your bot to a telegram chat
- Install node packages and itialize the database with
npm install && node setup.js
ordocker-compose run node npm install
anddocker-compose run node node setup.js
- Start the bot with
node index.js
ordocker-compose up -d