mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 16:28:19 +00:00
add: logging
This commit is contained in:
parent
cd2d3db36a
commit
cddf154d77
1 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue