-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Setup instructions
Open https://discordapp.com/developers/applications/ and click on "New Application".
Name it as you want and give it an App icon (this will be the default avatar image of the Bot). Then on the left side, click on "Bot" and then on the right, click "Add Bot".
To fix the bot not loading completely, enable server memebers intent on this page! This will only be required till next update
Copy your client ID from the "General Information" tab and enter it on this page, then click the generated link below and select the server you want the bot in (you need Administrator permissions to add a bot!). The bot itself requires permissions to modify webhooks, send and read messages, manage roles and manage channels.
(you need java on your server)
- Execute the jar file
- Edit the config to add the discord bot token (can be found on the discord developers page) and the default channel ID (can be get by enabling developer mode in the discord app and right clicking the target channel, then click 'Copy ID')
- Add curseforge projects to the config file
The allowed formats are:
<project id>
and<project id>;;<target channel id>
Example:
ids = [
# Discord Integration
"324952",
# DiscordRichPresence
"300569",
# Advanced Rocketry (into Discord channel with ID '455009606041600000')
"236542;;455009606041600000"
]
- (Optional) Edit the other config options as you want
- Execute the jar again, bot should be online and and an caches file should be generated
Using Heroku is a little bit more complicated, as the caches file won't get saved at all.
Reqirements: An github account, an heroku account with an connected payment method for 24/7 operation (if only running one bot, they won't charge you)
- Setup deployment for heroku (https://devcenter.heroku.com/articles/git)
- Drop the jar file into the local git repository
- Create an file (without extension) called 'Procfile' with the contents:
worker: java $JAVA_OPTS -jar Curseforge-Bot-<version>.jar $JAR_OPTS -token $BOT_TOKEN -github $GITHUB_TOKEN -debug
(replace '' with the actual version of the jar file) - Execute the jar once (on your local computer)
- Edit the newly created bot.conf file
You need to set the BotToken to"args"
, the githubToken to""
, an github repo name of your choice (or leave default) and the project IDs just like inHosting yourself #3
- Create an github access token with full "Repo" access (https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
- In the Heroku dashboard, go to Settings, Config vars and click on Reveal Config Vars
Now enterBOT_TOKEN
in the first field and the discord bot token (from the discord developers website) into the second one, click "Add"
Now on the next line enterGITHUB_TOKEN
and your github access token, click add again. - Deploy to heroku
- Go to the resources tab in the Heroku dashboard and enable "worker"
Bot should be running now