mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 23:22:56 +00:00
enhancement(lint): Fix lint errors for src/index.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
b805e9782a
commit
cd002621e8
1 changed files with 5 additions and 3 deletions
|
|
@ -84,9 +84,11 @@ cron.schedule("* * * * *", async () => {
|
|||
});
|
||||
async function sendRandomStuff() {
|
||||
// dont send bot after bot ...
|
||||
const lastMessage = await app.client.conversations.history({
|
||||
channel: "C07R8DYAZMM"
|
||||
}).then(e => e.messages[0]);
|
||||
const lastMessage = await app.client.conversations
|
||||
.history({
|
||||
channel: "C07R8DYAZMM",
|
||||
})
|
||||
.then((e) => e.messages[0]);
|
||||
if (lastMessage.user === "U07LEF1PBTM") return; // ^^
|
||||
app.client.chat.postMessage({
|
||||
channel: "C07R8DYAZMM",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue