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:
zeon-neon[bot] 2024-10-30 02:34:09 +00:00 committed by GitHub
parent b805e9782a
commit cd002621e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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