Giter Club home page Giter Club logo

roast-gpt's Introduction

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.

roast-gpt's People

Contributors

pakshuang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

trippyvids

roast-gpt's Issues

Replies sending too fast

Replies get sent almost instantly which breaks the realism of a human replying because the replies are usually fairly lengthy.

Spoilers getting leaked through the bot's replies

Need to either

  1. Modify prompts so the bot knows to not leak the secret information by not mentioning it or spoiler-tagging its reply about it
  2. Redact spoiler-tagged text before passing the message into the prompts, which will definitely work, but is less fun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.