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

Method reduceTime

sendat/sendat.ts:77–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 this.time_limit -= 1;
76 return this.time_limit === 0;
77 }
78 return false;
79 }
80
81 // 检查时间值有效性
82 static checkTime(time: string, minValue?: number, maxValue?: number): string {
83 const timeNum = parseInt(time);
84 if (isNaN(timeNum)) {
85 throw new Error(`时间值 ${time} 不是有效数字`);
86 }

Callers 1

executeTaskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected