Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 3.03 KB

File metadata and controls

67 lines (45 loc) · 3.03 KB

telegram-fantasy-premier-league-bot

A Telegram bot that gives you the latest fantasy premier league scores for the league.

Some of the cool features:

  • /whohas <playername> - List all the manager who have a certain player
  • /points - display latest point table
  • /captains - display all the captain in the league

Please refer to screenshots below to see telegram-fantasy-premier-league-bot in action:

/captains in action

/points in action

Benefits

  • You don't have to browse through the fantasy premier league website to find the latest points for each manager, with just one command you will get the immediate update.
  • whohas makes it easy for the user to just simply use one command /whohas <playerName> instead of going through on each and every manager page one by one which is very time consuming and frustrating. In a smaller league with 10 Manager that will probably take about 7 minutes but with this feature, output will be in seconds.
  • /captains again is an amazing feature that gives you list of all the captains with one command

Features to be added

  • /benchpoints - will give a list of manager with total bench points

Installation

How to Execute?

  • Execute in following order:

    python database.py - This will create the points.db file.

    python leagueTable.py - This will insert iplPoint Table into points.db

    python latestPoints.py - This will insert points Tables into points.db'

    python playerInfo.py - This will insert playerInfo Table into points.db

    python interface.py - Once this is running, you can go to telegram and open Fantasypremierleague bot where you can type /start to start the telegram bot, it should return I'm a bot, please talk to me!. Once you can see that, you can run any of the the commands specified above such as /points, /whohas <playerName> or /captains

Release History

  • 0.0.1
    • Work in progress

Meta

Ardy Flora – [email protected]

Distributed under the MIT license. See LICENSE.txt for more information.

https://github.com/ardyflora/telegram-fantasy-premier-league-bot

Contributing

  1. Fork it (https://github.com/ardyflora/telegram-fantasy-premier-league-bot)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request