Giter VIP home page Giter VIP logo

bfbc2-botstats's Introduction

Discord Bot for Battlefield: Bad Company 2 Stats Nexus Backend (Updated)

Credits

Senouy -bot developement

NoFaTe -providing API

This Discord bot retrieves and displays player statistics for Battlefield: Bad Company 2 using the Emulator Nexus API.

Prerequisites

  • Node.js
  • Discord.js@latest
  • Axios
  • Dotenv
  • A Discord Bot Token

Installation

  1. Clone this repository to your local machine.

    git clone https://github.com/S3nouy/bfbc2-botstats.git

  2. Change directory to bfbc2-botstats and install the required dependencies using npm:

    npm install discord.js@latest axios dotenv

  3. Edit the .env file

    BOT_TOKEN=your_bot_token_here

    CLIENT_ID=owner_discord_id

    GUILD_ID=discord_server_id

  4. Edit the config.json file

    "token": "your_bot_token_here",

    "clientId": "owner_discord_id",

    "guildId": "discord_server_id"

  5. Upload commands to Discord by using the following command:

    node register-commands.js

asset2

  1. Finally start the bot using the following command:

    node index.js

Usage

/stats player_name

Replace player_name with the Battlefield: Bad Company 2 player name you want to retrieve stats for.

/score playername

Replace player_name with the Battlefield: Bad Company 2 player name you want to retrieve score for.

asset3

asset4

Additional notes

Check index.js if you want to protect your stats from being show to other users. It will look like this.

asset1

Support and Contact

If you have any questions, suggestions, or need assistance, feel free to reach out to me on Discord.

Discord Username: CptYounes#1716

Happy coding! ๐Ÿš€

bfbc2-botstats's People

Contributors

s3nouy avatar

Stargazers

 avatar Mohamad Farid avatar

Watchers

 avatar

bfbc2-botstats's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.