Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yutakobayashidev/chatgpt-summally-discord-bot
🔍 BOT that summarizes sentences in URLs sent to Discord using ChatGPT API
https://github.com/yutakobayashidev/chatgpt-summally-discord-bot
chatgpt chatgpt-api discord-bot discord-py openai python
Last synced: about 1 month ago
JSON representation
🔍 BOT that summarizes sentences in URLs sent to Discord using ChatGPT API
- Host: GitHub
- URL: https://github.com/yutakobayashidev/chatgpt-summally-discord-bot
- Owner: yutakobayashidev
- License: mit
- Created: 2023-04-16T06:39:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-23T06:12:46.000Z (over 1 year ago)
- Last Synced: 2024-12-01T04:53:09.750Z (about 1 month ago)
- Topics: chatgpt, chatgpt-api, discord-bot, discord-py, openai, python
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chatgpt-summally-discord-bot
This Discord bot uses OpenAI's ChatGPT API to retrieve text from URLs included in messages that have been reacted to with the 🔍 emoji, and then responds with a summary of the text.
Also, for YouTube links, the transcript is read and summarized.
![Demo](https://user-images.githubusercontent.com/91340399/232278806-e6275b49-329a-4fe7-86eb-8b71beda4c92.png)
## Usage
### environment variables
1. Rename the `.env.example` file and change it to `.env`.
2. Generate an API token from the [OpenAI website](https://platform.openai.com/account/api-keys).
3. Create a bot from [Discord Developer Portal](https://discord.com/developers/applications) and copy the token.
```bash
OPENAI_API_KEY="for"
DISCORD_TOKEN="bar"
```### install dependencies
Install dependencies with pip.
```bash
pip install -r requirements.txt
```### run
```bash
python bot.py
```