stand impl part 4
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user