add: logging

This commit is contained in:
Saahil 2025-04-10 23:51:02 -04:00
parent cd2d3db36a
commit cddf154d77
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -27,7 +27,13 @@ export default class JoinNeonschannel implements Command {
app.command(this.name, async ({ command, ack, respond }) => {
// const stamp = Date.now();
await ack();
try {
await app.client.chat.postMessage({
text: `<@${command.user_id}> is trying to join <#C07R8DYAZMM>...`,
channel: "C07LGLUTNH2"
})
} catch (e) {
}
// if (onlyForMe(command.user_id))
// return respond(`:x: you are the channel owner.`);
try {