Webatrice admin commands (#5051)

* Add AdminCommand.updateServerMessage

* Add AdminCommand.shutdownServer

* Add AdminCommand.reloadConfig

* Cleanup

* Add AdminCommand.adjustMod

* Lint

* Lint
This commit is contained in:
Zach H 2024-06-12 22:52:40 -04:00 committed by GitHub
parent e45c4042fe
commit 34d70980e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 167 additions and 0 deletions

View file

@ -0,0 +1,17 @@
export class AdminPersistence {
static adjustMod(userName: string, shouldBeMod: boolean, shouldBeJudge: boolean) {
console.log('adjustMod');
}
static reloadConfig() {
console.log('reloadConfig');
}
static shutdownServer() {
console.log('shutdownServer');
}
static updateServerMessage() {
console.log('updateServerMessage');
}
}

View file

@ -1,3 +1,4 @@
export { AdminPersistence } from './AdminPresistence';
export { RoomPersistence } from './RoomPersistence';
export { SessionPersistence } from './SessionPersistence';
export { ModeratorPersistence } from './ModeratorPresistence';