Cool bots running on OpenAI
Firstly, install NPM and Node-16 LTS. Install Yarn using:
npm install -g yarn
Now install the dependencies:
yarn install
You also need a Mongo DB server: https://www.mongodb.com/
You also need to install curl
if it is not in your $PATH
. If you're on Linux, you most certantly have curl
. If you're using Windows 10 1803 or later, you already have curl
. The easiest way to install curl
is through downloading Git for Windows: https://git-scm.com/
You need:
Create a .env file in the root dir of the project Example .env file:
TOKEN=Discord bot token goes here
API_KEY=OpenAI api key goes here
DB_CONNECTION_STRING=MongoDB connection string here
DB_NAME=rchan
SPEECH_KEY=Azure resource token goes here
SPEECH_REGION=uksouth or other
Run the bot:
yarn start
If you're using VSCode, I wrote a debug utility within the .vscode
folder. You can run the debugger with F5
. You can stop the debugger with Shift+F5
. You can restart the debugger with Ctrl+Shift+F5
.