Add response to app mention

This commit is contained in:
Avi 2021-03-22 02:20:13 +00:00
parent 084f306ae8
commit 0f5cfd4f15

View file

@ -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 {