Skip to content

Re-create the 6mans discord BOT for fun

License

Notifications You must be signed in to change notification settings

jenziiplays/2mans-JS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to setup

1) Install node for Windows

https://nodejs.org/en/download/current/

2) Download the latest release

https://github.com/devlemire/6mans-JS/releases

3) Unzip the code to a directory on your computer

4) Create a discord application & bot

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

5) Give the bot access to your server

6) Copy the bot token from discord developer web page

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

7) Install Project Dependencies

  • 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

8) Create project variables

  • 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

9) Run the server

  • 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

After initial setup - How to run

  • Open cmd
  • Change directories to where you put the bot
  • Run node index.js

Common Gotchas as of v1.9.2

  • You must be online when interacting with the 6mans bot

About

Re-create the 6mans discord BOT for fun

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%