Giter Site home page Giter Site logo

pvhil / faceitdiscord Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 871 KB

DiscordBot with FaceIT Stats

License: Apache License 2.0

JavaScript 100.00%
faceit faceit-api csgo discord discord-bot faceitbot faceit-stats faceitstats stats faceitdiscordbot

faceitdiscord's Introduction

FaceIT Stats Discord Bot

Overview

This Discord bot is designed to fetch and display player statistics from FaceIT, a popular platform for competitive gaming. With this bot, users can easily retrieve and share their FaceIT statistics within Discord servers.

Features

  • Player Stats: Retrieve detailed statistics for a specific FaceIT player.
  • Recent Matches: View the latest matches played by a FaceIT user.
  • More Coming Soon: This Bot is still in active development.

Usage

Commands

  • /stats [FaceIT Username]: Get detailed statistics for the specified FaceIT user.
  • /lastgame [FaceIT Username]: View the most recent match played by the specified FaceIT user.
  • /last [FaceIT Username] [Number of games]: View the recent matches played by the specified FaceIT user.
  • /map [FaceIT Username] [Map]: Display statistics in a specific map.

Action Row

An Action Row is included with every Command to switch statistics faster than ever.

Installation

Before installing, please make sure you have a discord bot token, a faceit api token and if you need it Oauth information from faceit

  1. Clone this repository to your local machine:

    git clone https://github.com/pvhil/FaceItDiscord.git
  2. Install the required dependencies:

    npm install
  3. Configure the bot by adding your Discord bot token, Bot-ID, Discord Test Server and FaceIT API key to the config.json file. You can also use the config.json.example file.

    {
      "token": "",
      "clientId": "",
      "guildId": "",
      "faceitKey": ""
      ...
    }
    
  4. Register Slash Commands:

    node deploy-commands-global.js
  5. Run the bot:

    node .
  6. If you want to use the /save command, you need a mongoDB Server. If you have one, paste the mongoDB URI in the config.

Disclaimer

This bot is an independent project and is not affiliated with or endorsed by FaceIT. It does not establish any connections with FaceIT servers and relies on the public FaceIT API to fetch player statistics.

Note: Ensure that you comply with FaceIT's terms of service while using this bot, and respect the privacy and fair play policies of both Discord and FaceIT.

Feel free to contribute to the project or report any issues on the GitHub repository

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.