Skip to main content

A package to roast and get roasted by AI.

Project description

RoastedByAI

Creative Commons License

This is an unofficial Python package for https://roastedby.ai to roast and get roasted by AI.


How to install

Install the package using one of these pip commands (they both install the same package, the first command just does not always work properly on all devices, the second one should always work)

pip install roastedbyai

Windows:

python -m pip install roastedbyai

Linux:

python3 -m pip install roastedbyai

Usage

from roastedbyai import Conversation, Style

convo = Conversation(Style.valley_girl)

user_input = input("Start by roasting the AI:\n>>> ")
response1 = convo.send(user_input)
print(response1)

user_input = input("\nRoast the AI again:\n>>> ")
response2 = convo.send(user_input)
print(response2)

convo.kill()
# This step isn't necessary, the moment you don't use the `convo` object
# anymore, python will automatically handle it

print("\n---\nHistory:\n")
for msg in convo.history:
    print(msg["role"], msg["content"], sep=": ")

Contributing

Feel free to open Pull Requests with new features, improvements or fixes.


Disclaimer/Credits

I am not affiliated with https://roastedby.ai, all credits for the AI go to them.


License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roastedbyai-1.2.0.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

roastedbyai-1.2.0-py3-none-any.whl (20.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page