Skip to content

Restructure backend #20

@bartekpacia

Description

@bartekpacia

Synopsis

Currently, the bot runs well in a single group. There are a single language and behavior config and single storage of exceptions. This one and only config works for all groups where the bot is used. This creates several problems:

  • What if somebody wants to force the bot to enforce English, and somebody other: to enforce German?
  • What if somebody wants the bot to mute people and translate messages, and somebody other: to do the exact opposite?

Solutions

This problem seems to be a bit more complicated than the ones we faced previously.
The general, high-level solution I can think of now is:

  • separate config for every group Every group would have a separate collection in Firebase Firestore, where the group's admins could add exceptions and configure bot's behavior
  • setup wizard When the bot is added to the group, ask a few questions and save them (for this specific group)

Any suggestions/help are welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WIPWork in ProgressenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions