mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-20 00:25:23 +00:00
fix: add reactions
This commit is contained in:
parent
8295f34c25
commit
b9b2dc404a
1 changed files with 2 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ export default class Message implements Command {
|
|||
});
|
||||
break;
|
||||
}
|
||||
for(const r of [...aiReq.reactions, aiReq.type]) {
|
||||
try {
|
||||
await app.client.reactions.add({
|
||||
channel: event.channel,
|
||||
|
|
@ -191,6 +192,7 @@ export default class Message implements Command {
|
|||
name: aiReq.type,
|
||||
});
|
||||
} catch (e) {}
|
||||
}
|
||||
} catch (e) {
|
||||
app.client.chat.postMessage({
|
||||
channel: event.channel,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue