Skip to content

BabyFoot Tracker is a Discord bot designed to manage and track table football games. The bot allows users to create accounts, start matches with random teams, view player statistics, and display leaderboards. It is built using Node.js and the Discord.js library, with Sequelize for database management.

Notifications You must be signed in to change notification settings

devZenta/BabyFoot-Tracker-Discord-Bot

Repository files navigation

BabyFoot Discord Bot

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.

Features

  • 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

Commands

Game Commands

  • /play: Start a game
  • /leaderboard: Display the leaderboard

User Commands

  • /create-account: Create an account
  • /stats [player]: View the statistics of a player

Admin Commands

  • /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)

Test Commands

  • /creation-player-test: Creating a player for tests

Installation

  1. Clone the repository:

    git clone https://github.com/devZenta/BabyFoot-Project.git
    cd babyfoot-discord-bot
  2. Install dependencies:

    npm install
  3. 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
  4. Deploy the commands:

    node deploy-commands.js
  5. Start the bot:

    node index.js

Usage

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.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the ISC License.

Acknowledgements

About

BabyFoot Tracker is a Discord bot designed to manage and track table football games. The bot allows users to create accounts, start matches with random teams, view player statistics, and display leaderboards. It is built using Node.js and the Discord.js library, with Sequelize for database management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published