fix: add reactions

This commit is contained in:
Saahil 2025-02-15 20:21:10 -05:00
parent 8295f34c25
commit b9b2dc404a
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

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