Giter Club home page Giter Club logo

srh-helper's Introduction

SRH Helper

A Discord bot designed to help ease the process of sharing assets in the Sonic Ripping Hub.

If you would like to join any of the servers associated with the project, Discord server invite links are provided below:

Additional Information

  • This bot is written in Discord.js 14 and requires Node.js 16.9.0 or higher to run as per Discord.js 14 requirements.
  • This bot is designed for the Sonic Ripping Hub Discord server and is not meant to work on other servers.
  • You must have a decent grasp of JavaScript, Node.js and Discord.js to be able to contribute to the project.
  • Your test bot account must have all privileged gateway intents enabled to function properly.

priviligedGatewayIntents

  • You must invite your test bot account to your testing server with the bot and applications.commands scopes and the Administrator permission via OAuth2.

inviteLink

  • YOU NEED TO USE THE LINK GENERATED BY OAuth2 WITH THESE FLAGS TO INVITE THE TEST BOT ACCOUNT TO YOUR TESTING SERVER.

How To Set Up A Development Environment (For Contributors)

  1. Fork the repository.
  2. Run a terminal in the root directory of the project and use the npm install command to install all dependencies.
  3. Create a .env file in the root directory of the project with the following code snippet inside:
DISCORD_TOKEN=yourtokenhere
  • MAKE SURE TO REPLACE yourtokenhere WITH YOUR OWN TEST BOT ACCOUNT'S TOKEN.
  • DO NOT SHARE YOUR TEST BOT ACCOUNT'S TOKEN AS THAT WILL ALLOW OTHERS TO RUN THEIR OWN (AND VERY LIKELY MALICIOUS) CODE ON YOUR TEST BOT ACCOUNT.
  1. Modify the config.json file with your own IDs and role names.
  2. To deploy commands run the node deploy-commands.js command in your terminal.
  • THIS WILL REGISTER YOUR COMMANDS ONLY IN YOUR TESTING SERVER, THE ID OF WHICH YOU WILL HAVE TO PROVIDE IN THE CONFIGURATION FILE.
  1. To start the bot use the node . command in your terminal (and stop the bot by using Ctrl + C inside your terminal).

srh-helper's People

Contributors

barelyaiden avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

srh-helper's Issues

"Tools" command.

This command will let users easily retrieve a list of tools for their specified game.

Example:
/tools game:Sonic Adventure Series

Multiple improvements to the Message Buttons.

  1. Make the buttons disappear after time ends.
  2. Change the buttons to have consistent labels across all devices.
  3. Fix the buttons erroring out if you try to go back one page on page 1 or go forward one page on the last page of a given embed.

Automatic splitting of long embeds for pagination.

Currently if a list of ripped assets is longer than 2048 characters when sent in an embed, the embed won't be able to be sent due to too many characters.

Solution would be to automatically split the embed into more than one part and paginate the whole thing to avoid any issues.

Remove deploy-global-commands.js from the files.

The deploy-guild-commands.js script is much more superior and the deploy-global-commands.js script never gets used. This also means the README.md file will have to get updated with up to date information and instructions.

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.