The Euro2020-Bot is a discord bot which provides various commands for the football european championship 2020 which is held from 11.06.21 to the 11.07.2021. To get a understanding what the bot can do refer to the Command List
The bot is written in NodeJS. The bot also uses the DiscordJs module for a easier interaction with the Discord API. The bot is hosted on Replit, a online IDE, editor, compiler for over 50 programming languages with a hosting option. To let the bot "stay awake" I'm using a third party service called UptimeRobot, which pings the bot in a 5 min interval. I recommend this kind of setup for everyone which want to create and host a discord bot for free.
The bot consumes the data from the football-data API.
The data will be stored in SQLite file. I'm also using the Knex module for sql queries.
Command | Arguments | Output |
---|---|---|
~allmatches | delivers Id, HomeTeam and AwayTeam of all matches | |
~match | matchId | delivers result for a specific match |
~today | delivers matches for today | |
~tomorrow | delivers matches for tomorrow | |
~bet | delivers all matches which can be bet on | |
~bet | matchId, homeTeamScore, awayTeamScore | adds the bet you made on a match. A confirmation message will be displayed |
~mybets | displays all bets you made | |
~betranking | displays the top 10 bettor on the server. Your score is displayed at the bottom |