BabyFoot Tracker is a Discord bot designed to manage and track games of table football. It provides various commands for users and admins to interact with the bot and manage player statistics.
- Create a game with random teams
- Create and manage player accounts
- Track player statistics including ELO, wins, losses, goals scored, and goals conceded
- Admin commands to update player statistics
- Real-time status updates
/play: Start a game/leaderboard: Display the leaderboard
/create-account: Create an account/stats [player]: View the statistics of a player
/admin goals-scored id value: Update the goals scored by the player/admin goals-conceded id value: Update the goals conceded by the player/admin username id value: Update the username of the player/admin elo id value: Update the ELO of the player/admin win id value: Update the win count of the player/admin loose id value: Update the loss count of the player/admin game id value: Update the game count of the player/delete-bdd table: Delete all data from the specified table (Player or GameHistory)
/creation-player-test: Creating a player for tests
-
Clone the repository:
git clone https://github.com/devZenta/BabyFoot-Project.git cd babyfoot-discord-bot -
Install dependencies:
npm install
-
Create a .env file and add your Discord bot token and other necessary environment variables:
TOKEN=your-discord-bot-token CLIENT_ID=your-client-id ADMIN_USER_ID=your-admin-user-id PRIVATE_GUILD_ID=your-private-guild-id PRIVATE_CHANNEL_ID=your-private-channel-id LOGO_URL=your-logo-url GITHUB_URL=your-github-url
-
Deploy the commands:
node deploy-commands.js
-
Start the bot:
node index.js
Once the bot is running, you can interact with it using the commands listed above. Make sure to invite the bot to your server with the necessary permissions.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the ISC License.
- Created by zenta
- Powered by Discord.js
- Database management with Sequelize