Skip to content

feat: Support PS sync for quotes #93

@PartMan7

Description

@PartMan7

Enable a room setting that syncs in-bot quotes with room quotes.

The setting should be stored in room configs (something like quoteSync: true).

When enabled, this setting should do the following:

  • Any time a quote is added on Showdown (with the text ^Quote.*was added by), or when the command ,quote sync is run, a sync should be attempted.
  • The sync will read the quotes from the PS quotes command, parse it into the new quotes list, and update the database. At the time of sync, all /me syntax should take every quote into consideration for [name] detection (see src/ps/commands/quotes.tsx:90).
  • If a quote is attempted to be added on PartBot in a room that has sync enabled, don't write to the DB directly. Instead, show an error (add the quote to PS instead) and add an HTML box to the user that would add the quote to PS when clicked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions