mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 01:48:54 +01:00
fix(status): conditionally display status bar components based on live status
This commit is contained in:
@@ -405,10 +405,12 @@ export class StatusService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
container.addSeparatorComponents((s) => s);
|
container.addSeparatorComponents((s) => s);
|
||||||
container.addTextDisplayComponents((t) => t.setContent('This is a status bar to test : (Ryzen7)'))
|
if(!live) {
|
||||||
container.addMediaGalleryComponents((m) => m
|
container.addTextDisplayComponents((t) => t.setContent('This is a status bar to test : (Ryzen7)'))
|
||||||
.addItems((i) => i.setURL('attachment://status.png'))
|
container.addMediaGalleryComponents((m) => m
|
||||||
);
|
.addItems((i) => i.setURL('attachment://status.png'))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
container.addTextDisplayComponents((text) => text.setContent(`:globe_with_meridians: Website Status : https://statut.protojx.com/\n${live ? 'Last update : ' : ''}<t:${dayjs().unix()}:f> - Receive automatic notifications when there is an outage with /follow !`));
|
container.addTextDisplayComponents((text) => text.setContent(`:globe_with_meridians: Website Status : https://statut.protojx.com/\n${live ? 'Last update : ' : ''}<t:${dayjs().unix()}:f> - Receive automatic notifications when there is an outage with /follow !`));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user