mirror of https://github.com/Nofated095/Q2TG.git
Update StatusReportController.ts
This commit is contained in:
parent
8f65eebf4e
commit
fa55244e77
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue