Important: we are migrating to a new Discord server .gg/avdanos
The Discord Bot for the AvdanOS Community Discord server, made using discord.js v13.8.
Step 1: Make a contribution fork of this repository.
Step 2: Go to the Discord Developer Portal and log in with your account.
Step 3: Click on the "New Application" button near your profile picture on the upper right side of your screen and create a new application. Name it anything you want.
Step 4: Click on the "Bot" button on the left side of your screen and create a new bot.
Step 5.1: Click on "OAuth2", afterward "URL Generator". Select bot
and applications.commands
.
Step 5.2: Select "Administrator" in the list of bot permissions.
Step 5.3: Copy the link at the bottom of the page and paste it into your search bar. Select the server where you want your bot to be in the dropdown list.
Step 6: Reset your bot's token and copy it. It will be used later.
Step 7: Inside the src
folder, make a .env
file, and type DISCORD_TOKEN=your token
and PREFIX=your prefix
Step 8.1: Enable developer mode by going into Settings (near your profile picture at the bottom) > Advanced > Developer Mode.
Step 8.2: Copy your server ID by right clicking the server icon and clicking "Copy ID".
Step 9: Inside the src > commands folder, open cmdHandler.js
and in the 57th line, replace the number in a string with your ID.
Step 10: In your terminal, run npm install
. It will install all the modules needed to run the bot.
Step 11: Run cd src
and afterward node .
to launch the bot.
Step 12: In the commands folder, there are 2 example.js
files. You can use them as a reference to build new commands.
Step 13: Remember to put a short and concise list of changes to make the review process easier.