The Discord Bot for the AvdanOS Community Discord server, made using discord.js v13.8.
-
Make a contribution fork of this repository.
-
Go to the Discord Developer Portal and log in with your account.
-
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.
-
Click on the "Bot" button on the left side of your screen and create a new bot.
-
Invite the bot to your server:
-
Click on "OAuth2", afterward "URL Generator". Select
bot
andapplications.commands
. -
Select "Administrator" in the list of bot permissions.
-
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.
-
-
Reset your bot's token and copy it. It will be used later.
-
Inside the
src
folder, make a.env
file, and typeDISCORD_TOKEN=your token
andPREFIX=your prefix
. -
Get your Discord server ID:
-
Enable developer mode by going into Settings (near your profile picture at the bottom) > Advanced > Developer Mode.
-
Copy your server ID by right clicking the server icon and clicking "Copy ID".
-
-
Inside the
src/commands
folder, opencmdHandler.js
and findconst goosStanding
, and replace the number in the parentheses (aftermessage.guild.emojis.fetch
) with the copied ID. -
In terminal, run
npm install
to install all the necessary modules/ -
Run
cd src
andnode .
to launch the bot.
In src/commands
, there are 2 example.js
files. You can use them as a reference to build new commands.
Remember to put a short and concise list of changes to make the review process easier. Pull Requests on this repository won't be reviewed often due to the main focus being the Desktop Environment.