Update StatusReportController.ts

This commit is contained in:
Nofated 2023-01-18 18:46:56 +08:00 committed by GitHub
parent 8f65eebf4e
commit fa55244e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import OicqClient from '../client/OicqClient';
export default class {
constructor(private readonly instance: Instance,
private readonly tgBot: Telegram,
private readonly tgUser: Telegram,
private readonly qqBot: OicqClient) {
setInterval(() => this.report(), 1000 * 60);
this.report();
@ -17,9 +16,6 @@ export default class {
if (!this.tgBot?.isOnline) {
offline.push('tgBot');
}
if (!this.tgUser?.isOnline) {
offline.push('tgUser');
}
if (!this.qqBot?.isOnline()) {
offline.push('qqBot');
}