stand impl part 4

This commit is contained in:
Darius
2025-11-16 20:38:49 +01:00
parent 4baacd9952
commit 0fb087fbd9
5 changed files with 43 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import { getDeskHeight, startStandingAutomation } from "../../util/api-homeassis
import { logInfo, logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommandRequirements } from "../interface.ts";
import { Config } from "../../config/config.js";
export class StandCommand extends BaseCommand {
name = "stand";
@@ -28,11 +29,16 @@ export class StandCommand extends BaseCommand {
// }
if (Config.night_time.contains()) {
this.chatClient.say(channel, `command disabled during nighttime`, {
replyTo: msg,
});
return
}
const response = await startStandingAutomation();
logInfo(response)
this.chatClient.say(channel, `blabla`, {
replyTo: msg,
});