Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thatsinewave/discordgpt-bot
A Discord Bot that leverages OpenAI's API to chat with users
https://github.com/thatsinewave/discordgpt-bot
beta-release chatbot chatgpt chatgpt-api community discord-api discord-bot discord-py discord-token good-first-contribution good-first-issue good-first-pr good-first-project mit-license open-source openai-api personality personalization python thatsinewave
Last synced: 3 days ago
JSON representation
A Discord Bot that leverages OpenAI's API to chat with users
- Host: GitHub
- URL: https://github.com/thatsinewave/discordgpt-bot
- Owner: ThatSINEWAVE
- License: mit
- Created: 2024-03-01T07:30:42.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-24T01:00:22.000Z (7 months ago)
- Last Synced: 2024-04-24T02:56:44.921Z (7 months ago)
- Topics: beta-release, chatbot, chatgpt, chatgpt-api, community, discord-api, discord-bot, discord-py, discord-token, good-first-contribution, good-first-issue, good-first-pr, good-first-project, mit-license, open-source, openai-api, personality, personalization, python, thatsinewave
- Language: Python
- Homepage: https://github.com/ThatSINEWAVE/DiscordGPT-Bot
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# DiscordGPT - ChatGPT inside your Discord server!
This project is a Discord chatbot that integrates OpenAI's GPT models to interact with users in a Discord channel. It allows for dynamic responses based on user input, leveraging OpenAI's powerful natural language processing capabilities. The bot also supports updating its "personality" through a specific command, making it versatile in its interactions.
## Features
- **Discord Integration**: Utilizes the discord.py library to connect and interact within a Discord server.
- **OpenAI GPT Integration**: Leverages OpenAI's GPT models for generating responses to user messages.
- **Dynamic Personality**: Allows the bot's personality to be changed on the fly via a special command.
- **Message History Management**: Keeps track of recent messages to provide context to the AI model for more relevant responses.## ☕ [Support my work on Ko-Fi](https://ko-fi.com/thatsinewave)
## Usage
To run the bot, just execute the following command:
```
python main.py
```## Commands
At the moment the bot is just a prototype so it only has 1 command:
- `/personality`: Updates the bot's personality based on the provided text. This affects how the bot responds to messages.
- More coming soon.# [Join my discord server](https://discord.gg/2nHHHBWNDw)
## Installation
Clone the Repository
```
git clone https://github.com/ThatSINEWAVE/DiscordGPT.git
cd chatbot-integration-framework
```### Install Dependencies
Ensure you have Python 3.6 or higher installed, then run:
```
pip install -r requirements.txt
```### Configuration
- **Discord Token & OpenAI API Key**: You need to create a config.py file or use the provided one at the root of the project directory and add your Discord token and OpenAI API key as follows:
```python
DISCORD_TOKEN=your_discord_bot_token
OPENAI_API_KEY=your_openai_api_key
```- **Channel ID**: Update the config.py file with the ID of the Discord channel where the bot should be active.
```python
CHANNEL_ID = YOUR_CHANNEL_ID
```## Contributing
Contributions are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.
### License
This project is released under the MIT License. See the LICENSE file for more details.