Skip to content

JoddabodScripts/quote-bot-nerimity

Repository files navigation

Quote Bot for Nerimity

A bot that generates beautiful quote images from messages on Nerimity.

Example quote image

Features

  • 📸 Generates quote images with user avatar
  • 🎨 Dark theme with gradient background
  • ✨ Clean, modern design
  • ⚡ Fast image generation with Canvas

Setup

  1. Install dependencies:
npm install
  1. Configure your bot token:
cp .env.example .env
# Edit .env and add your Nerimity bot token
  1. Run the bot:
npm start

Usage

  1. Reply to any message in a channel
  2. Mention the bot (e.g., @QuoteBot)
  3. The bot will generate a quote image from the message you replied to

Requirements

Quote Gallery integration

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.

Contributing

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

Star History

Star History Chart

License

This project is licensed under the MIT License - see LICENSE for details.

About

A bot that lets you quote messages for MEMES

Resources

License

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors