add API comments

This commit is contained in:
Matthieu Jolimaitre 2024-02-02 13:52:05 +01:00
parent fe34c8a91c
commit d62bf01b4a
7 changed files with 85 additions and 0 deletions

View file

@ -22,6 +22,9 @@ async function main() {
await service.serve();
}
/**
* Context of the service.
*/
class Service {
state;
bot;
@ -35,6 +38,9 @@ class Service {
this.rules = rules;
}
/**
* Main loops.
*/
async serve() {
await this.update_all_users_roles();