Installation on Repl.it
Prerequisites
Create a Discord Application
- go to the Discord Developer portal
- create a new application + bot
- create a bot invitelink using it's client id here
- save the bot token for later
Installation
We have changed the way v5 is installed, we now use and utilise the nix environment.
First of all, click this button
Once finished cloning, ignore the errors, the default master branch dont use nix so its inevitable
-
Go to Commands => Version Control, in the branch dropdown, select
v5. Wait until it's done and the version control buttons are clickable again. -
Fill your config.js. For lavalink, go to this link
-
Now,all your files are created. You can now run
bash ./kickstartReplit.shin shell -
Once the installation of
kickstartReplit.shis done, you can now click the run button or typenode index.jsin your console
Final
Once done you can restart your bot, then invite it using this url template. https://discord.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot%20applications.commands&permissions=2205280576
CLIENT_IDneeds to be replaced with your bot Id- Permission calculator: learn more
- You can use #generateInvite instead: learn more
Deploying slash commands
If you chose y on step 3 of the installation process then it will already be deployed. If it's still not please deploy slash commands using npm run deploy, you can run it on the shell. Do remember to give your bot applications.commands scope!
SIDE NOTES: - If you're running the version 4 of the bot, please kick it and reinvite using the invite link stated in final