💻 Description: Psyduck AI
💻 Code can be found in main.py
💻 Wolfram AI command is !orz [prompt]
💻 OpenAI AI command is !ai [prompt]
- Make sure you have python installed on your machine. If you haven't, you can get it from official download link.
- Clone this repo by using git.
- In the cloned repo, make a virtual environment by using
python -m venv env. - Activate the virtual environment with
source env/bin/activateon Linux, orenv\Scripts\Activateon Windows. - Install the depedencies using
pip install -r requirements.txt.
Go to main.py file. There are token and API keys that you need to fill in.
openai.api_key = 'your-openai-api-key'
wolfram_api_key = 'your-wolfram-alpha-api-key'
bot_token = 'your-bot-token'- To create openAI API key, you can get it from its official website. Then put the key on
openai.api_key. - To create wolfram API key, Go to the WolframAlpha Developer portal here. Then put the key on
wolfram_api_key. - To create discord bot token, follow the official instruction here. Then put the token in
bot_tokenvariable. Don't forget to invite your created bot application into your discord server.
After all are set, run the bot using python main.py. Now you can interact with your bot by triggering the commands.
