Giter Club home page Giter Club logo

slippistatsbot's Introduction

SlippiStatsBot Logo

SlippiStatsBot

A Discord bot dedicated to analysis of Project Slippi SLP replay files on Discord.


Table of Contents

Using SlippiStatsBot

To activate Slippi replay file analysis, call /analyze upload the .slp replay file to the message. SlippiStatsBot will then analyze the replay file and display statistics from the game.

SLP Analysis

You can select the dropdown to see which set of statistics you want to view.

Viewing Stats

Other commands

These commands are slash commands, meaning they are preceded with a /.

  • about - displays information about the bot, and links to this repository
  • ping - pings the client that is running the bot for its response time

Can I use this in my server?

Currently, this Discord bot isn't being hosted anywhere, so the bot is currently offline. Should I choose to host this bot in the future (whenever it may be), I will make preparations to make it available to people, including an invite link and a way to generate funds to keep this thing online.

You could also run this thing locally, and for that you might want to go down to Development for help on how to get up and running.

TODO

  • High Priority
    • Move file storage to a database like MongoDB (as opposed to local file storage)
  • Low Priority
    • Include link to/txt file of JSON data to be used elsewhere when appropriate flag is activated
    • Put the replay analysis into a new thread instead of the chat

Libaries Utilized

This Discord bot was made with the following Node.js packages

  • discord-ts - A superset of discord.js with TypeScript decorators to improve readability
  • slippi-js - A JavaScript/TypeScript library for parsing Project Slippi replay files for Super Smash Bros. Melee
  • table - Simple library that produces a row-column table with ASCII characters
  • Axios - Promise based HTTP client for Node.js
  • ts-dotenv - Library that implements .env files to hold the Discord bot's token
  • lodash - JS Utility Library

Development

  • git clone this repository and navigate into it
  • npm install
  • Create the file .env in the root directory and include the line BOT_TOKEN=<bot-token-id> where you replace <bot-token-id> with your own from the Discord developer portal.
  • npm run build
  • npm run start you are done, you will see your bot up and running. For detailed installation guide, please see this

slippistatsbot's People

Contributors

shrianshchari avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.