To run the bot you have to do the following steps.
Please refer to the official docs of the Tools to retrieve the token:
Create a .env
file in root with the following structure:
DISCORD_TOKEN = <Your Discord Bot Key>
OPENAI_API_KEY = <Your_Openai_Key>
First of all run:
npm i
After completion start the bot with:
npm start
Have fun!
To use the Bot add it to your server like described in the Discord-Docs. After that type /ai
to trigger the command. Write your promt
after it and hit enter
.
The Bot should now calculate your response.