mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
enhancement(lint): Fix lint errors for src/modules/memwatch.ts
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
a084f5b208
commit
7ec894fc79
1 changed files with 14 additions and 14 deletions
|
|
@ -1,16 +1,16 @@
|
|||
import memwatch from "memwatch-next"
|
||||
import memwatch from "memwatch-next";
|
||||
import { ModifiedApp } from "./slackapp";
|
||||
export default function watchMem(app:ModifiedApp) {
|
||||
memwatch.on('leak', (info) => {
|
||||
app.client.chat.postMessage({
|
||||
text: `:x: my memory is leaking plz kill me :3\n\`\`\`\n${JSON.stringify(info, null, 2)}\n\`\`\``,
|
||||
channel: `C07LGLUTNH2`
|
||||
})
|
||||
export default function watchMem(app: ModifiedApp) {
|
||||
memwatch.on("leak", (info) => {
|
||||
app.client.chat.postMessage({
|
||||
text: `:x: my memory is leaking plz kill me :3\n\`\`\`\n${JSON.stringify(info, null, 2)}\n\`\`\``,
|
||||
channel: `C07LGLUTNH2`,
|
||||
});
|
||||
memwatch.on('stats', function(stats) {
|
||||
app.client.chat.postMessage({
|
||||
text: `debug: mem stats ;3 \n\`\`\`\n${JSON.stringify(stats, null, 2)}\n\`\`\``,
|
||||
channel: `C07LGLUTNH2`
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
memwatch.on("stats", function (stats) {
|
||||
app.client.chat.postMessage({
|
||||
text: `debug: mem stats ;3 \n\`\`\`\n${JSON.stringify(stats, null, 2)}\n\`\`\``,
|
||||
channel: `C07LGLUTNH2`,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue