5 Commits

2 changed files with 12 additions and 10 deletions

View File

@@ -7,6 +7,6 @@ COPY . .
RUN apt-get update && apt-get install -y iputils-ping RUN apt-get update && apt-get install -y iputils-ping
RUN npm i RUN npm i
RUN npm register # RUN npm run register
CMD [ "npm", "run", "start" ] CMD [ "npm", "run", "start" ]

View File

@@ -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',
@@ -304,7 +304,9 @@ export class StatusService {
) )
}); });
container.addTextDisplayComponents((text) => text.setContent(`${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;
} }