Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrislapiroff/wronggpt
https://github.com/harrislapiroff/wronggpt
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/harrislapiroff/wronggpt
- Owner: harrislapiroff
- Created: 2023-03-17T03:49:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T23:19:43.000Z (almost 2 years ago)
- Last Synced: 2024-11-25T12:44:19.886Z (2 months ago)
- Language: Python
- Size: 43.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
WrongGPT
========WrongGPT is a GPT-powered chatbot that tries to answer questions and prompts incorrectly. It's pretty fun and humorous.
Prerequisites
-------------Running WrongGPT requires [Poetry](https://python-poetry.org/). You can install it with `pip install poetry`.
Usage
-----To use WrongGPT:
1. Clone this repository.
2. Install the requirements with `poetry install`.
3. Recommended: Set up environment variables
a. Install the poetry dotenv plugin with `poetry self add poetry-dotenv-plugin`. You could use a different method to load environment variables, but this is the easiest.
b. Create a `.env` file in the root of the repository with the following contents:
```dotenv
DISCORD_BOT_TOKEN=your_discord_token
OPENAI_API_KEY=your_openai_api_key
DISCORD_DM_ALLOWLIST="comma,separated,list,of,users"
```4. Run the bot with `poetry run bot`.
If you need an OpenAI API key, you can get one [here](https://platform.openai.com/account/api-keys).
If you need a Discord bot token, you can get one [here](https://discord.com/developers/applications). Create a new application, then create a bot user and copy the token.