A bot that generates beautiful quote images from messages on Nerimity.
- 📸 Generates quote images with user avatar
- 🎨 Dark theme with gradient background
- ✨ Clean, modern design
- ⚡ Fast image generation with Canvas
- Install dependencies:
npm install- Configure your bot token:
cp .env.example .env
# Edit .env and add your Nerimity bot token- Run the bot:
npm start- Reply to any message in a channel
- Mention the bot (e.g.,
@QuoteBot) - The bot will generate a quote image from the message you replied to
- Node.js 18+
- A Nerimity bot token (create one here)
Every generated quote also gets posted to Quote Gallery, a public gallery site (/frontend, deployed separately on Vercel). After uploading the image to Catbox, the bot POSTs the quote's metadata and image URL to the gallery's API and replies with the permalink it gets back, instead of the raw Catbox link. Sending [verify] to the bot also asks the gallery for a one-time login code, which it replies with in the same channel.
This needs two extra environment variables in the bot's .env (see .env.example):
| Variable | Purpose |
|---|---|
GALLERY_API_URL |
Base URL of the deployed Quote Gallery site (e.g. https://your-app.vercel.app) |
QUOTE_BOT_API_SECRET |
Shared secret sent as x-bot-secret; must match the same variable in the gallery's own environment |
Without these set, [q:...] quoting and [verify] will fail silently (the bot logs the error and does not reply), same as any other unhandled error in this bot.
Contributions are welcome! Please read CONTRIBUTING.md for:
- How to report bugs and request features
- Development setup and coding standards
- Pull request process
See also: Issue Templates
This project is licensed under the MIT License - see LICENSE for details.
