RSA-Bot
The repo for the Discord bot used in the Roblox Scripting Assistance server.
Features
- Compile code from Discord directly using Wandbox.
- Track reputation of members within forums
Required Tools
- IntelliJ (auto imports project)
- JDK17
- Test Application (Discord Developers)
- Required Scopes:
application.commands
and bot
- Permissions:
administrator
- Test Server
Setup
- Install JDK17+.
- Ensure IntelliJ (or equivalent IDE) is setup.
- Clone the repository (
git clone https://github.com/RSA-Internal/RSA-Bot.git
).
- Create an Application at Discord Developers.
- Store the bot token provided there in ENVIRONMENT_VARIABLES under BOT_TOKEN.
Running the Bot
It might be useful to test the bot. This can be done one of two ways:
./gradlew run
from terminal or Gradle -> Tasks -> application -> run.
./gradlew shadowjar
and java -jar build/libs/RSA-Bot-1.0-all.jar
.
- Alternatively opening the
Bot.java
class and clicking "Run 'Bot.main()'"
Development
Making Changes
- All changes should be made on a branch other than
main
.
git checkout -b [branch name]
- If adding / removing a feature, update the Features section of the readme.
- Run
./gradlew spotbugsmain
before committing changes.
Submitting Changes
- All changes should go through the Pull Request life cycle.
- PR Template