Git Product home page Git Product logo

street-fighter-6-frame-data-discord-bot's Introduction

Street-Fighter-6-Frame-Data-Discord-Bot

Discord bot that post requested SF6 frame data.

This README provides an overview of your Discord bot project created in Python. The bot listens for user messages and responds to commands in the format !fd CHARACTER_NAME MOVE_AND_MOTION. The main functionality of the bot is to retrieve move data based on user inputs and post it to the Discord channel. Prerequisites

To run this Discord bot project, you need to have the following:

Python (version 3.6 or higher) installed on your machine.
discord.py library installed. You can install it using pip install discord.py.
dotenv library installed. You can install it using pip install python-dotenv.
Discord API token. You can obtain the token by creating a bot application on the Discord Developer Portal.

Project Structure

The project consists of the following files:

main.py: Contains the main code for the Discord bot.
handle_user_inputs.py: Contains functions related to handling user inputs and data manipulation.
character_data.py: Contains functions for retrieving move data based on user inputs.
.env (not included): Contains the Discord API token. You should create this file in the project directory and add your token.

Getting Started

Clone the repository to your local machine or download the source code files.

Install the required dependencies by running the following command:

pip install -r requirements.txt

Create a .env file in the project directory and add the following line, replacing <DISCORD_TOKEN> with your Discord API token:

DISCORD_TOKEN=<DISCORD_TOKEN>

Run the bot by executing the following command:

`python main.py`

  The bot should now be active and ready to respond to commands in your Discord server.

Bot Commands

The bot recognizes the following commands:

`!fdhelp`: Displays information on how to use the bot. It provides the format for the command and examples.

`!fd CHARACTER_NAME MOVE_AND_MOTION`: Retrieves move data for the specified character and motion/move. The character name should be provided in the command, followed by the motion or move notation. For moves with follow-ups, use a ~ delimiter between the move inputs. All data will be provided for moves with multiple differences. E.G. wind stock, held versions, FSE, etc.

Some examples: `!fd ken lpdp`, `!fd dj Jroudhouse' `!fd zangief 720p`, `!fd dj 236236k`, `!fd jamie 2HK~HK~P`.

Capitalization isn't required. 
'5' is not required for neutral inputs.
for jumping attacks add `j` to to move input. 
for supers and ex moves use the appropriate button command (`p`, `k`, `pp`, `kk`).
Commonly used aliases for moves and characters are supported. (roundhouse, gief, sim, lp, jab, etc)
Charge moves shoud be treated as simply `46` or `28`.

Hosting this bot yourself

Head to https://discord.com/developers/applications Click on New Application
Name your app
Go to Bot
Click Add Bot
Create a .env file in your project and populate it with your discord token
Go to OAuth2, URL Generator
Check Bot
Enable the relevant bot permissions (send messages, read message history, read messages/view channels, mention everyone). Change these if desired.
Head to the generated URL and add the bot to your discord server.

Contributing

If you would like to contribute to this project, feel free to fork the repository and submit pull requests with your changes. Make sure to follow the existing code style and provide a clear description of your modifications. License

This project is licensed under the MIT License. Acknowledgments

discord.py - The library used to create the Discord bot.
dotenv - The library used for loading environment variables from the .env file.
wiki.supercombo.gg - The source of frame data used in this bot.

Contact

If you have any questions or suggestions regarding this project, please feel free to contact me.

street-fighter-6-frame-data-discord-bot's People

Contributors

jeff502 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.