GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FightCore/bot-js

BranchesTags
Open more actions menu

Latest commit

 

History

117 Commits
117 Commits

Folders and files

NameName
Last commit message
Last commit date
.attachments
.attachments
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
release-notes
release-notes
 
 
src
src
 
 
tests
tests
 
 
web-assets
web-assets
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.prettierrc.json
.prettierrc.json
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
env-template
env-template
 
 
eslint.config.mjs
eslint.config.mjs
 
 
nodemon.json
nodemon.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
privacy.md
privacy.md
 
 
tos.md
tos.md
 
 
tsconfig-build.json
tsconfig-build.json
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

FightCore bot

The FightCore bot provides frame data based on Super Smash Bros Melee's characters. The data is pulled from the FightCore API which combines multiple sources into one standardized format.

Running the bot locally

You can run the bot locally within a few steps:

  • Install the latest LTS version of Node.
  • Run npm install in the root folder of the project.
  • Create a copy of the env-template and rename it to .env
  • Fill the TOKEN field with your Discord bot's token.
  • Either run npm run debug or press F5 within Visual Studio Code.

Running the bot within Docker

You can also run the bot using the included Dockerfile Simply run using the following two commands:

  • docker build -t fightcore-bot .
  • docker run -it --env TOKEN="XXXXX-XXXX-XXXX" fightcore-bot

Unit tests

The tests folder contains some unit tests for the bot to ensure it is functional. This is currently one of the most lacking areas of the code base.

Data

The data is loaded from the /src/assets/framedata.json file. This is a generated file from the frame-data repository. This file should never be manually edited.

There is also an environment variable to gather the data from an URL. This will be used in the future to support automatic data updates.

Commands

The bot supports the following commands

  • /framedata: Lets the user pick a character and move and then shows the frame data of that move as an embed.
  • /cc or /crouchcancel: Lets the user pick a character and move and a possible target. Shows the percentage at which crouch cancel breaks and is no longer possible.
  • /asdi: Lets the user pick a character and move and a possible target. Shows the percentage at which ASDI down breaks and is no longer possible.
  • /character: Lets the user pick a character and displays some statistics about that character as an embed.
  • /report: Opens the report modal to report bad frame data back to FightCore.

There also exists a /tournament but this is currently disabled as its a WIP feature.

The FightCore bot also supports direct messages and @mentions. These act the same as the /framedata command and use a search algorithm to find the best matching character and or move.

If there is a PREFIX defined in the .env file, the bot will also respond to text messages with that prefix. This prefix does not have a set length.

When using the prefix, the MessageContent permission is required. This is NOT available on larger bots due to privacy concerns. I highly recommend not using a prefix.

About

No description or website provided.

Topics

discord-botdiscordjsframe-datassbmsuper-smash-bros-meleetypescript

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.