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:
zeon-neon[bot] 2025-01-05 04:16:14 +00:00 committed by GitHub
parent a084f5b208
commit 7ec894fc79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`,
});
});
}