mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 09:48:56 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c99c11c241 | |||
| df048c1352 | |||
| 290e8b982a |
@@ -15,16 +15,16 @@ export class StatusService {
|
|||||||
|
|
||||||
public hosts: Host[] = [
|
public hosts: Host[] = [
|
||||||
{
|
{
|
||||||
'host': 'https://protojx.com',
|
host: 'https://protojx.com',
|
||||||
'name': 'Protojx Website',
|
name: 'Protojx Website',
|
||||||
alive: false,
|
alive: false,
|
||||||
ping_type: 'website',
|
ping_type: 'website',
|
||||||
type: 'website',
|
type: 'website',
|
||||||
notify: false
|
notify: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'host': 'https://manager.protojx.com',
|
host: 'https://manager.protojx.com',
|
||||||
'name': 'Espace Client',
|
name: 'Espace Client',
|
||||||
alive: false,
|
alive: false,
|
||||||
ping_type: 'website',
|
ping_type: 'website',
|
||||||
type: 'website',
|
type: 'website',
|
||||||
@@ -94,6 +94,14 @@ export class StatusService {
|
|||||||
type: 'games',
|
type: 'games',
|
||||||
notify: true
|
notify: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
host: '5.178.99.17',
|
||||||
|
name: 'RYZEN-GAME 02',
|
||||||
|
alive: false,
|
||||||
|
ping_type: 'ping',
|
||||||
|
type: 'games',
|
||||||
|
notify: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
host: '5.178.99.63',
|
host: '5.178.99.63',
|
||||||
name: 'XEON-GAME 01',
|
name: 'XEON-GAME 01',
|
||||||
@@ -297,14 +305,16 @@ export class StatusService {
|
|||||||
(text) =>
|
(text) =>
|
||||||
text.setContent('## ' + sectionData.title + '\n' + hostTexts.filter((v) => v.type == sectionData.type).map((v) => v.value).join('\n'))
|
text.setContent('## ' + sectionData.title + '\n' + hostTexts.filter((v) => v.type == sectionData.type).map((v) => v.value).join('\n'))
|
||||||
)
|
)
|
||||||
.setThumbnailAccessory(
|
.setThumbnailAccessory(
|
||||||
(acc) =>
|
(acc) =>
|
||||||
acc.setURL(sectionData.thumbnail)
|
acc.setURL(sectionData.thumbnail)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
container.addTextDisplayComponents((text) => text.setContent(`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.addSeparatorComponents((s) => s);
|
||||||
|
|
||||||
|
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 !`));
|
||||||
|
|
||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user