Add response to app mention
This commit is contained in:
parent
084f306ae8
commit
0f5cfd4f15
1 changed files with 11 additions and 0 deletions
11
api/app.js
11
api/app.js
|
@ -227,6 +227,17 @@ app.event('message', async (body) => {
|
|||
}
|
||||
});
|
||||
|
||||
app.event('app_mention', async (body) => {
|
||||
try {
|
||||
let e = body.event;
|
||||
let c = e.channel;
|
||||
|
||||
publishMessage(c, "DO NOT BOTHER ME. I AM SLEEPING.")
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
}
|
||||
});
|
||||
|
||||
(async (req, res) => {
|
||||
// Start your app
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue