Merge remote-tracking branch 'refs/remotes/origin/main'

This commit is contained in:
Saahil 2025-02-15 20:50:03 -05:00
commit 7dd124e685
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6
2 changed files with 13 additions and 9 deletions

View file

@ -184,14 +184,14 @@ export default class Message implements Command {
});
break;
}
for(const r of [...aiReq.reactions, aiReq.type]) {
try {
await app.client.reactions.add({
channel: event.channel,
timestamp: event.ts,
name: aiReq.type,
});
} catch (e) {}
for (const r of [...aiReq.reactions, aiReq.type]) {
try {
await app.client.reactions.add({
channel: event.channel,
timestamp: event.ts,
name: aiReq.type,
});
} catch (e) {}
}
} catch (e) {
app.client.chat.postMessage({

View file

@ -38,7 +38,11 @@ export async function watchTimezone(app: ModifiedApp, data: IrlData) {
m: m.ts,
});
} else {
if (app.db.get(`tz`) && !mainTimezone.includes(app.db.get('tz')) && mainTimezone.includes(tz)) {
if (
app.db.get(`tz`) &&
!mainTimezone.includes(app.db.get("tz")) &&
mainTimezone.includes(tz)
) {
await app.client.chat.postMessage({
thread_ts: app.db.get(`tz`).m,
text: `Neon is back to his normal tz`,