Skip to content

nadimz/comunioBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComunioBot

Telegram bot for BeManager Fantasy Football communities

Features

ComunioBot's aim is to keep your communitiy up to date on league and fixutre events and help start discussions by sending notifications to your community's Telegram channel/group:

  • Get notifications when a new round is about to start with the list of fixtures in round, including date & time
  • Get daily notificaitons of all fixtures to be played in that day
  • Get notifications when fixture lineups are confirmed
  • Get notifications when player ratings are announced

Usage

Preparation

ComunioBot uses three API providers:

To use this bot, you must:

  • Be subscribed to API-Football at RapidAPI and have a valid API key. API-Football provides a free plan with a limit of 100 API calls per day. The bot is optimized to use up to 100 daily API calls (normally much less).
  • Be part of a BeManager community
  • Create a Telegram Bot

Setting the environment

Configure the bot by setting the environment variables

export TGRAM_BOT_TOKEN=<your telegram bot token>
export TGRAM_CHAT_ID=<channel/chat id>

export TZ=Europe/Madrid # your timezone

export API_FOOTBALL_LEAGUE_ID=<api-football league id>
export API_FOOTBALL_URL=https://api-football-v1.p.rapidapi.com/v2
export RAPID_API_KEY=<rapidapi key>

export MISTER_URL=https://mister.mundodeportivo.com
export MISTER_COMMUNITY_ID=<your bemanager community id>
export MISTER_EMAIL=<your bemanager email>
export MISTER_PASSWORD=<your bemanager password>

Runnig the bot

// install required packages
npm install

// launch bot
node ./src/bot.js

Testing

Run all test suites

npm run test

About

Telegram bot for Fantasy Football

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published