enhancement(lint): Fix lint errors for src/commands/on_message.ts

Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-01-26 18:26:06 +00:00 committed by GitHub
parent c53d8bd0fe
commit 31a0bb33f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,20 +188,20 @@ export default class Message implements Command {
console.log("Connected to WS server");
});
} else if (cmd == "robotics") {
const out = await sendSchedule(args.join(" "), app, `C07R8DYAZMM`)
if(out) {
await app.client.chat.postEphemeral({
channel: event.channel,
text: `Robotics schedule sent!`,
user: event.user,
});
} else {
await app.client.chat.postEphemeral({
channel: event.channel,
text: `Robotics schedule not sent!`,
user: event.user,
});
}
const out = await sendSchedule(args.join(" "), app, `C07R8DYAZMM`);
if (out) {
await app.client.chat.postEphemeral({
channel: event.channel,
text: `Robotics schedule sent!`,
user: event.user,
});
} else {
await app.client.chat.postEphemeral({
channel: event.channel,
text: `Robotics schedule not sent!`,
user: event.user,
});
}
}
console.debug(`#message-`);