Click Here To invite the bot to your server!
Football bot for discord written in python
using discord.py and currenty hosted on heroku.
The API used for fetching football data is football-data.org's free tier and hence we have a rate limit of 10 Requests / Min and 12 Competitions.
Displays the commands available for use
usage: .help
Generates a more detailed table showing goals for, against, matches won and lost
usage: .standings-all [league code]
Generates the current standings in the requested league.
usage: .standings [league code]
Displays the next matches scheduled for the team or league requested.
usage: .fixtures [league code | team code] [limit: default 5]
Limit restricts the number of fixtures displayed and is by default 5
Displays the live scores of matches in league requested or team requested
usage: .live [league code | team code] [limit: default 5]
Limit restricts number of matches displayed and is by default 5
Sends the URL to invite bot into servers as a Direct Message
usage: .invite
- fork and clone repository
-
cd paneka/ pip install -r requirements.txt #create a file '.env' touch .env
- Become a discord developer and create a new bot
- Copy the token under
Build-A-Bot
- Store the key in
.env
as follows:
DISCORD_TOKEN=The Bot code
NOTE: NO spaces around the'='
- Get a free football-data API key from football-data.org
- Store this key in
.env
on a new line as:
API_KEY=The API code
NOTE: NO spaces around the'='
python3 bot.py
to run the bot- Add the bot to your guild(server) by inviting it using the OAuth2 link present in the developer application window
- The bot is now ready :D
All the supported leagues and their codes are listed below
League | Code |
---|---|
Bundesliga Germany |
BL |
Brazillian Serie A Brazil |
BSA |
English Championship England |
ECL |
Eredivisie Netherlands |
ERD |
Ligue One France |
FL1 |
Premier League England |
PL |
Primeira Liga Porugal |
PPL |
Serie A Italy |
SA |
La Liga Spain |
SPA |
All team codes are listed according to leagues:
Team | Codes |
---|---|
FC Bayern Mücnchen | BAY |
Hamburger SV | HSV |
C Augsburg | FCA |
Hertha BSC | BSC |
Bayer Leverkusen | B04 |
TSG 1899 Hoffenheim | TSG |
SV Darmstadt 98 | DAR |
Hannover 96 | H96 |
1. FSV Mainz 05 | M05 |
FC Ingolstadt 04 | FCI |
Werder Bremen | SVW |
FC Schalke 04 | S04 |
Borussia Dortmund | BVB |
Bor. Mönchengladbach | BMG |
VfL Wolfsburg | WOB |
Eintracht Frankfurt | SGE |
VfB Stuttgart | VFB |
1. FC Köln | FCK |
1. FC Kaiserslautern | KAI |
Eintracht Braunschweig | EBS |
SV Sandhausen | SVS |
SC Freiburg | SCF |
1. FC Nücrnberg | FCN |
FSV Frankfurt | FSV |
Red Bull Leipzig | RBL |
SpVgg Greuther Fücrth | GRE |
Karlsruher SC | KAR |
1. FC Heidenheim 1846 | HEI |
TSV 1860 Mücnchen | 1860 |
SC Paderborn 07 | PAD |
VfL Bochum | VFL |
FC St. Pauli | FCP |
1. FC Union Berlin | FCU |
Fortuna Dücsseldorf | FOR |
VfR Aalen | VFR |
Team | Codes |
---|---|
RC Deportivo La Coruna | LAC |
Real Sociedad de Füatbol | RSS |
RCD Espanyol | ESP |
Getafe CF | FCG |
Club Atlético de Madrid | ATM |
Rayo Vallecano de Madrid | RAY |
Valencia CF | VAL |
Málaga CF | MAL |
Sevilla FC | SEV |
Athletic Club | BIL |
FC Barcelona | FCB |
Real Madrid CF | MAD |
Levante UD | LUD |
RC Celta de Vigo | VIG |
Real Betis | BET |
Villarreal CF | VCF |
Granada CF | GCF |
SD Eibar | EIB |
Sporting CP | SCP |
FC Porto | FCP |
SL Benfica | SLB |
Elche FC | CFE |
UD Almeria | UDA |
Córdoba CF | CCF |
Team | Codes |
---|---|
Paris Saint-Germain | PSG |
Olympique de Marseille | MAR |
Paris FC | PFC |
évian Thonon Gaillard FC | EVA |
FC Metz | FCM |
RC Lens | RCL |
Montpellier Hérault SC | MHSC |
OSC Lille | OSC |
SM Caen | SMC |
OGC Nice | NIC |
AS Monaco FC | MON |
Stade Rennais FC | REN |
FC Girondins de Bordeaux | BOR |
FC Nantes | NAN |
EA Guingamp | GUI |
Stade de Reims | REI |
Toulouse FC | TOU |
AS Saint- Étienne | ETI |
Olympique Lyonnais | OLY |
FC Lorient | LOR |
Team | Codes |
---|---|
AS Roma | ROM |
Juventus Turin | JUVE |
US Cittá di Palermo | PAL |
Genoa CFC | GEN |
US Sassuolo Calcio | SASS |
SSC Napoli | SSC |
SS Lazio | LAZ |
FC Internazionale Milano | INT |
Torino FC | FCT |
ACF Fiorentina | FIO |
AC Milan | ACM |
Empoli FC | EMP |
Team | Codes |
---|---|
Manchester United FC | MUFC |
Tottenham Hotspur FC | THFC |
AFC Bournemouth | AFCB |
Aston Villa FC | AVFC |
Everton FC | EFC |
Watford FC | WAT |
Leicester City FC | LCFC |
Sunderland AFC | SUN |
Norwich City FC | NCFC |
Crystal Palace FC | CRY |
Chelsea FC | CFC |
Swansea City FC | SWA |
Newcastle United FC | NUFC |
Southampton FC | SFC |
Arsenal FC | AFC |
West Ham United FC | WHU |
Stoke City FC | SCFC |
Liverpool FC | LFC |
West Bromwich Albion FC | WBA |
Manchester City FC | MCFC |
Team | Codes |
---|---|
Sheffield United FC | SUSFC |
Team | Codes |
---|---|
PSV Eindhoven | PSV |
Team | Codes |
---|---|
Malmö FF | MFF |
FC Astana | ASTA |
Galatasaray SK | GSK |
CSKA Moscow | CSK |
Shakhtar Donetsk | SHA |
FC Zenit St. Petersburg | ZEN |
Dynamo Kyiv | DYK |
Maccabi Tel Aviv | MTA |
Olympiacos F.C. | OLA |
GNK Dinamo Zagreb | DIN |
Erzgebirge Aue | AUE |
SC Bastia | SCB |