add API comments
This commit is contained in:
parent
fe34c8a91c
commit
d62bf01b4a
7 changed files with 85 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue