Skip to content

Commit

Permalink
refactor: 💡 analyzing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Dec 5, 2023
1 parent 7111471 commit 53c4f8f
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 @@ -148,10 +148,9 @@ To learn more visit https://docs.fleek.network/docs/node/health-check
const WatchLogsQueries: OnMessageCreate = {
expr: (msg) =>
!!msg.content.match(/([hH]ow|[wW]hat).*(check|view|watch).*logs/gm),
cb: (msg) => {
cb: async (msg) => {
// TODO: use text tmplt instead
msg.reply(
`👀 Hey ${msg.author.toString()}, if you'd like to learn about logs visit the documentation https://docs.fleek.network/docs/node/analyzing-logs but in general, a health checkup is all you have to do! The logs are useful mostly you are troubleshooting issues, asserting something or developing.
const message = `👀 Hey ${msg.author.toString()}, if you'd like to learn about logs visit the documentation https://docs.fleek.network/docs/node/analyzing-logs but in general, a health checkup is all you have to do! The logs are useful mostly you are troubleshooting issues, asserting something or developing.
To run a health check do:
Expand All @@ -160,8 +159,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: "Analyzing logs",
message,
});
},
};

Expand Down

0 comments on commit 53c4f8f

Please sign in to comment.