Skip to content
smileyhead edited this page Aug 24, 2025 · 1 revision

The /quote command returns a random quote from the database, with its accompanying data. Image transcriptions are done automatically, when a quote is added, through the Tesseract optical character recognition library and its .NET-wrapper by Charles Weld. If a quote is too long and displaying it would exceed the character limit, it will be split in two and returned as consecutive messages. Splitting quotes is first attempted at around two-thirds of their length, after punctuation or whitespaces. If a suitable location for splitting is not found, a quote will be split at exactly the 66% mark. This command takes no arguments.

Data storage: The following data is stored for quotes:

  • ID: A number to reference the quote (zero-indexed). This is displayed at the very beginning of every message returned in the following format: #No.
  • Body: The quote itself. Links for attachments are appended to this text.
  • Alt text: A transcription of text contained in the image which is used when executing the /searchquote command. Can be overwritten with .alttext [quote ID] [message].
  • User ID: The Discord user ID of the original message's author. This is stored so that an up-to-date display name can be downloaded whenever the bot starts up.
  • Link: A link pointing to the original message so that it can be easily accessed.

Error-handling: Since an up-to-date display name is always queried whenever the bot boots up, in the event that the Discord API cannot respond, a placeholder name (‘Someone’) will be used instead. If this happens, a warning in small print will be displayed at the bottom of the quote. Please note that it should still be possible to manually access the original message and check its author through the link, should you wish to see it.

Usage:
/quote returns a random quote.

Clone this wiki locally