https://nodejs.org/en/download/current/
https://github.com/devlemire/6mans-JS/releases
https://discordapp.com/developers/applications
- Create a discord bot under the application
- On the left side there is a tab called "Bot" when you click into the application you've created
- Copy the
Client ID
of your new app - Navigate to https://discordapp.com/oauth2/authorize?&client_id=CLIENTID&scope=bot&permissions=8 in your web browser
- Replace CLIENTID with the Client ID you copied
- Select your server you want the 6mans bot to run on
- Never share your client id with any one
Go back to your discord application and then the bot tab and finally copy the bot token
- Never share your bot token with any one
- Open a cmd prompt and change directory (the terminal command is
cd
) to the directory where you put the code - Run
npm i
to install the project dependencies
- Open a text editor on your computer (ex; Notepad)
- Create a new file in the folder you unzipped earlier called:
.env
(make sure you don't save this as.txt
).env
will work.env.txt
will not work
- Make the contents of your file look like the following:
-
token=YOUR_TOKEN categoryName=CATEGORY_NAME channelName=CHANNEL_NAME debugLogs=true
- Replace
YOUR_TOKEN
with the bot token you copied from earlier - Replace
CHANNEL_NAME
with the channel name you want the bot to listen on - Replace
CATEGORY_NAME
with the category name you want the bot to create voice channels under
- Replace
-
- Go back to your command prompt, make sure you are in the directory of the folder you unzipped earlier, and run
node index.js
- In a Discord server where you have added the bot, type
!6m-help
to verify the bot is working and to see a list of helpful commands.- Make sure you type the command in the channel that matches your
channelName
env variable - Make sure you are appearing online in Discord
- Make sure you type the command in the channel that matches your
- Open cmd
- Change directories to where you put the bot
- Run
node index.js
- You must be online when interacting with the 6mans bot