mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
enhancement(lint): Fix lint errors for src/commands/home.ts
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
c33faaa8a2
commit
8ebce8e809
1 changed files with 25 additions and 25 deletions
|
|
@ -88,31 +88,31 @@ export default class AppHome implements Command {
|
|||
{
|
||||
type: "section",
|
||||
elements: app.dbs.anondm
|
||||
//@ts-ignore
|
||||
.get(usersInDb.find((e) => bcrypt.compareSync(event.user, e)))
|
||||
.messages.filter((e) => {
|
||||
try {
|
||||
EncryptedJsonDb.decrypt(
|
||||
e,
|
||||
//@ts-ignore
|
||||
`${event.user}_` + process.env.ANONDM_PASSWORD,
|
||||
);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
})
|
||||
.map((e) => {
|
||||
// map to a slack element block
|
||||
return {
|
||||
type: "section",
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
text: `> :email_unread: New Message`,
|
||||
},
|
||||
};
|
||||
})
|
||||
}
|
||||
//@ts-ignore
|
||||
.get(usersInDb.find((e) => bcrypt.compareSync(event.user, e)))
|
||||
.messages.filter((e) => {
|
||||
try {
|
||||
EncryptedJsonDb.decrypt(
|
||||
e,
|
||||
//@ts-ignore
|
||||
`${event.user}_` + process.env.ANONDM_PASSWORD,
|
||||
);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
})
|
||||
.map((e) => {
|
||||
// map to a slack element block
|
||||
return {
|
||||
type: "section",
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
text: `> :email_unread: New Message`,
|
||||
},
|
||||
};
|
||||
}),
|
||||
},
|
||||
];
|
||||
//@ts-ignore
|
||||
if (process.env.MY_USER_ID !== event.user)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue