Skip to content

Commit

Permalink
refactor: 💡 health checkups
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Dec 5, 2023
1 parent 7e21568 commit 7111471
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/ListenerTriggers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,9 @@ const NodeWorkingCorrectlyQueries: OnMessageCreate = {
msg.content.match(/.*logs.*([oO][kK]|good|normal)/gm) ||
msg.content.match(/.*(normal|standard|correct).*logs/gm)
),
cb: (msg) => {
cb: async (msg) => {
// TODO: use text tmplt instead
msg.reply(
`👀 Hey ${msg.author.toString()}, to verify if your node is running correctly do a health checkup!
const message = `👀 Hey ${msg.author.toString()}, to verify if your node is running correctly do a health checkup!
To do a health check run the command in the server:
Expand All @@ -136,8 +135,13 @@ curl -sS https://get.fleek.network/healthcheck | bash
\`\`\`
To learn more visit https://docs.fleek.network/docs/node/health-check
`,
);
`;

await sendCreateThreadMsg({
msg,
name: "Health checkups",
message,
});
},
};

Expand Down

0 comments on commit 7111471

Please sign in to comment.