![]() I like the name C-3PO, but feel free to pick something different if you fear George Lucas's wrath.Something like yourname-discordbot is fine It's name must be unique and composed of all lowercase letters and dashes.Ĭopy the bot's TOKEN, you will need it laterĬreate a new app.Take note of the app CLIENT ID, you will need it later. Connect to your Github account and search for this repository by name. Scroll down to the manual deploy section, and select the Master branch. Go to the Resources tab and look for the addons section. Search 'Postgres', and add a 'Hobby Dev - Free' version of Heroku Postgres. Value: = Your discord bot's token that you copied earlier.Ĭlick to reveal Config Variables, then add then add the following: This will be automatically attached as your bot's database.This is to ensure that when the bot updates it does not use any old Dependencies that Heroku has stored and gets fresh ones from the package.json file.Go to the Overview tab and click configure dynos. Make sure that you have added the Heroku Postgres Addon in the Resources Tab of Heroku or else your bot shall not run! Turn off the default web npm start dyno and turn on the worker node src/bot.js dyno. If you have any issues running your bot join our Discord ServerĤ.Replace the CLIENTID string in the following URL with your own apps client id from Step 2: Invite your bot to your server and configure it! Visit the resulting URL and add your bot to any server where you have admin privileges. Once added, your bot should show in your server, now go back to Heroku and go to the "Deploy" section, scroll down to "Manual Deploy" and deploy the master branch. ![]()
0 Comments
Leave a Reply. |