Skip to content

AlexQuigley/S.C.I.P.E

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S.C.I.P.E. "Skippy"

As of 12/12/24 SCIPE has been integrated into the EPICS Teambuilder Application

Don't Forget To Check Out The Wiki For More Info!!

TODO:

  • Convert SCIPE to typescript - Stephan & Bao Finished
  • Build relational datastructure functions() Finished
  • Test relational datastructures with dummy data Finished
  • Convert SCIPE slash command functions to API calls Finished
  • Fix TeamBuilder Website & add DOCUMENTATION FOR THE LOVE PLEASE

Project Contributors:

[Lead Dev] - Alex Quigley
[Senior Dev] - Stephan Antonyuk
[Senior Dev] - Bao Nguyen

[Instructor] - Jeanie Arid
[Instructor] - Taz Nakonecznyj a.k.a. The Tazmanian Devil
[Mentor] - Sagar Dhaduk

Dev Installation & Setup

This is the basic installation needed to develop and run SCIPE

  1. Install these dependencies: (If having issues, follow the Setup Tutorial 1 video)
# discord.js - Discord API for JavaScript
npm install discord.js

# nodemon - For auto-updating the bot instead of needing to re-start it all the time
npm install -g nodemon

# dotenv - For making environment variables, added security
npm install dotenv
  1. Clone the SCIPE GitHub repository to your computer. Once done, add a new file called '.env' to use for storing IDs 2. Create three values as so:

*[NOTE]: If you are not planning on running SCIPE from your local machine then you can skip this step

TOKEN = <Bot Token>         
GUILD_ID = <Server ID>      
BOT_ID = <Bot ID>           
  1. Initalize package.json by opening the VS code terminal and run npm init -y. This will build the package.json file, open it and make sure it looks just like this:

*[NOTE]: If you already have the package.json file in your local repository then you can skip this step

   {
     "name": "scipe",
     "version": "1.0.0",
     "description": "S.C.I.P.E.  Smart Computer Interface for Protocol Execution",
     "main": "src/index.js",
     "scripts": {
       "test": "echo \"Error: no test specified\" && exit 1"
     },
     "keywords": [],
     "author": "",
     "license": "ISC",
     "dependencies": {
       "discord.js": "^14.16.2",
       "dotenv": "^16.4.5"
     }
   }
  1. Assuming everything is correct, the bot should startup when you run npm start or ts-node src/index.ts in the terminal. 3 4

Footnotes

  1. Setup Tutorial

  2. NOTE: Getting the TOKEN and BOT_ID values require you to have admin access to a constructed bot via Discord Dev
    The TOKEN value is taken from Discord Dev. You can find it located under the Bot tab.
    The Guild_ID can be found by right-clicking the Discord server's name and clicking Copy Server ID
    The Bot_ID can be found by right clicking the bot in discord and clicking Copy User ID. Alternatively it can also be found in the URL of the bot on Discord Dev

  3. If nodemon is returning an error, it means there is an error in the code, not that the setup is incorrect.

  4. SCIPE will output: SCIPE (Skippy)#7016 is online. to the terminal when the bot is running correctly.