Roastie is a unique Telegram bot, crafted in Typescript, that harnesses the power of OpenAI's GPT-4 Vision API. It delivers snappy, borderline roasts in response to images sent by users. Perfectly balancing on the edge of OpenAI's policy, Roastie offers humorously sarcastic comments, making it a hilarious addition to any chat.
- Node.js v18. Use nvm for optimal installation.
- pnpm for package management. Install globally via
npm i -g pnpm
.
- Clone the repository.
- Create a
.env
file as per the given template. - Install dependencies using
pnpm i
. - Initiate the bot with
pnpm start
.
Prepare a .env
file in the project's root directory. Include the following keys and your respective values:
Key | Description |
---|---|
BOT_TOKEN | Your Telegram bot token, obtainable from BotFather. |
OPENAI_API_KEY | API key for OpenAI. |
ALLOWED_CHAT_ID | The ID of the chat where the bot is allowed to operate (optional). |
Ensure to replace the placeholders with actual data.
The current roasting prompt is in Swedish but can easily be translated to any language to suit your audience.
pnpm install
pnpm start
Contributions are welcome! Submit pull requests or open issues for any bugs or feature suggestions.
Need help or support? Create an issue in the repository for assistance.