MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / clampTemperature

Function clampTemperature

aitc/aitc.ts:199–206  ·  view source on GitHub ↗
(value: number, fallback: number)

Source from the content-addressed store, hash-verified

197async function handleAitcCommand(msg: Api.Message): Promise<void> {
198 const rawMessage = msg.message || "";
199 const trimmed = rawMessage.trim();
200 const parts = trimmed.split(/\s+/);
201 const commandToken = parts.shift() || "";
202 const rest = trimmed.slice(commandToken.length).trimStart();
203 const subcommand = (parts[0] || "").toLowerCase();
204
205 const replyWith = async (text: string) =>
206 msg.edit({
207 text,
208 parseMode: "html",
209 linkPreview: false,

Callers 1

handleAitcCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected