Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database support #2

Open
sudojunior opened this issue Nov 21, 2021 · 0 comments
Open

Database support #2

sudojunior opened this issue Nov 21, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@sudojunior
Copy link
Member

While supporting repositories is one thing, database support is another. It is almost certain that the two will not be able to co-exist in the same environment, a choice which a self-hosting community would have to make for themselves.

interface Story {
  title: string;
  author: string;
  description: string;
  startsWith: string // resolve as Step
  steps: { [key: string]: StoryStep }
}

interface StoryStep {
  // readonly id: string // external
  payload: string | MessageOptions; // slash-create
  components: ComponentActionRow; // slash-create
  // route -> step, route -> one(steps), route -> one(steps, from: weights)
  routing: "end" | { [route: string]: string | string[] | [string, number][] }
}
  • steps has been referred to by GitHub Co-pilot as Scenes which would probably be a better name for them...
  • An array structure may be needed for Story#steps in the database environment due to how it stores entries.
@sudojunior sudojunior added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 21, 2021
@sudojunior sudojunior self-assigned this Nov 21, 2021
This was referenced Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant