Skip to content

Commit

Permalink
more upd
Browse files Browse the repository at this point in the history
  • Loading branch information
kr45732 committed Jun 27, 2024
1 parent 1efd7b2 commit fd53ba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This is the source code for the Skyblock Plus Discord bot. A full list of comman
You may need basic Discord, Gradle, Java, and Postgres knowledge to set up and maintain the bot. There are hardcoded constants that you will need to replace, databases you will need to create, and more. Note that I did not design the bot with the intention of others self-hosting it, so the process isn't very straightforward.

### Prerequisites
Some of these prerequisites aren't necessary required but having all of them will make setting up bot without modification much easier.
Some of these prerequisites aren't necessarily required but having all of them will make setting up bot without modification much easier.
- A Discord Bot (created using the [Discord Developers Portal](https://discord.com/developers/applications)). You will also need to enable the server members and message content intents found in Discord Developer Portal --> Bot --> Privileged Gateway Intents
- 2 Postgres databases (using one might be possible but may require code modifications)
- Self-hosted [rust-query-api](https://github.com/kr45732/rust-query-api) (used in lowest bin, average bin, average auction, querying the auction house, auction flipper, etc)
Expand Down Expand Up @@ -66,6 +66,7 @@ If you are stuck or encounter a problem in the steps below, create an issue and
- Follow "#item-repo-github" and send it to the channel you just created
6. Hardcoded constants you will need to change:
- You will need to update all emoji maps in the Constants.json from [skyblock-plus-data](https://github.com/kr45732/skyblock-plus-data/blob/main/Constants.json) with your own emojis
- Update L145 of `com.skyblockplus.Main.java` to `.enableIntents(GatewayIntent.GUILD_MEMBERS, GatewayIntent.MESSAGE_CONTENT)`
- Create 2 messages in a channel to be used for the scuffed event system (they will be constantly edited, so they must not be deleted). These messages Update the assignment of messageId in `com.skyblockplus.features.event.EventHandler` on L46. Update the channel on L57
- More will be added as I find/remember them
7. Running the bot:
Expand Down
2 changes: 1 addition & 1 deletion setup-resources/ExampleDevSettings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ TOP_GG_TOKEN =
# Discord webhook URL where auction flips will be posted (requires https://github.com/kr45732/rust-query-api)
AUCTION_FLIPPER_WEBHOOK =

# Discord webhook URL where bot status updates will be posted (e.g. bot restarting notifs)
# Discord webhook URL where bot status updates will be posted (e.g. bot restarting notifications)
BOT_STATUS_WEBHOOK =

## --------------------------------------------------------------------------- ##
Expand Down

0 comments on commit fd53ba2

Please sign in to comment.