Skip to content

carterclark/DiscordBot

Repository files navigation

DiscordBot

Steps to use

  1. Have git and node.js installed on your computer
  2. Fork this repo then clone a copy using git clone https://github.com/carterclark/DiscordBot.git
  3. Open a terminal and cd to the root directory of the project which containes the index.js file
  4. Run npm install to download dependancies
  5. Make a .env file in the root directory and enter the secrets for:
    • BOT_AUTH_TOKEN, can be found in the discord develeper portal. After selecting the app go to Bot.
    • CLIENT_ID, can be found in the discord develeper portal. After selecting the app go to OAuth2.
    • SERVER_ID, can be found under widget in the server settings on discord
  6. If running the bot for the first time or changing bot commands, enter the termainal and cd to the root directory then run yarn commands.
  7. Run the command yarn start from the root directory

Making Discord Bot

  1. Open discord developer portal
  2. Create new application and bot
  3. under bot, check PRESENCE INTENT and SERVER MEMBERS INTENT
  4. Go to OAuth2 and under Redirects enter https://localhost:8080/auth/discord/redirect
  5. Go to URL Generator and check bot and applications.commands
  6. Under Bot Permissions for simplicity just check Administrator
  7. Copy URL, paste it in a new tab, press enter
  8. Complete forms and add to server

Workflow

functional testing checklist

  1. role_me in authorization: carter ICS 140, ICS-141, ICS342, ICS 460, ics-141, data211, ics-140, ics 365
  2. take_roles, info, and class_list in secret-secret

github

  1. git add .
  2. git commit -m"[COMMIT MESSAGE]"
  3. git push

commands

  • yarn start
  • yarn commands
  • ts-prune

Technology

Links

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors