Skip to content
Discussion options

You must be logged in to vote

Applies to: any version — this is how the project works by design.

The rule goes in server/app/services/; the bot and API are thin shells over it.

  • The rule is an async function over a session; a «⚙️ Класс» screen's rule is in services/manage/<screen>.py, doing the check, write and audit. A refusal is an exception carrying facts, not a sentence — chat: a sentence; wire: a status code and detail. Shared wording is in server/app/wording.py.
  • Imports: nothing under services/ may import app.bot, app.api, app.rpc or app.rest, even indirectly; server/tests/test_service_layering.py finds the breaking chain.
  • The bot screen is a module in server/app/bot/handlers/manage/; router order follows __init…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenpearson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area:server area:bot for:contributor Whoever changes the code or the documents: setup, checks, where a change goes
1 participant