mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
7dd124e685
2 changed files with 13 additions and 9 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue