Skip to content
tectrainguy edited this page Feb 11, 2023 · 5 revisions

Installation

node.js and npm are required. Install them here.

Linux and Mac

Once these are installed, run these commands:

git clone https://github.com/tecdude/TheSwift.git
cd TheSwift
npm i
nano config.json

Now we need to create a config file for API keys:

config.json structure:

{ "token": "", "clientId": "", "OPENAI_API_KEY": "", "SO_KEY": "" }

Get the Token and Client ID from Discord Developers

For SO Key (Stack Overflow) and OpenAI, search online for how to get API keys.

MongoDB

You need a local MongoDB database named 'warns'. Use their guide for the most up-to-date guidance.

Clone this wiki locally