Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.33 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.33 KB

RoastGPT

RoastGPT is a Telegram bot that roasts targeted users in a chat group. When a target user sends a message, ChatGPT is used to determine if the message is sufficiently mean to warrant a comeback in retaliation. If it is, ChatGPT is then used to generate a roast/comeback towards the target user.

This was built as a fun project for a group chat with friends.

Sample

image

CI/CD Deployment Pipeline

AWS Pipeline

Building

First you will need to create a .env file to set the Telegram Bot API key, Open AI API key, target usernames, and target chat ids:

TELEGRAM_TOKEN = "INSERT TELEGRAM TOKEN HERE"
OPENAI_TOKEN = "INSERT OPEN AI API TOKEN HERE"
WHITELIST_USERNAMES = ["username1", "username2"]
BLACKLIST_USERNAMES = ["username3", "username4"]
TARGET_CHAT_ID = [-100987654321]

Ensure that you have Docker installed, then run this command to build the Docker image.

docker build -t roast-gpt .

Usage

docker run roast-gpt

Without Docker

pipenv lock
pipenv run python main.py

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Particularly, any prompt improvements are welcome.