Initial commit: QwenClaw persistent daemon for Qwen Code
This commit is contained in:
26
src/index.ts
Normal file
26
src/index.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { start } from "./commands/start";
|
||||
import { stop, stopAll, clear } from "./commands/stop";
|
||||
import { status } from "./commands/status";
|
||||
import { telegram } from "./commands/telegram";
|
||||
import { send } from "./commands/send";
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
const command = args[0];
|
||||
|
||||
if (command === "--stop-all") {
|
||||
stopAll();
|
||||
} else if (command === "--stop") {
|
||||
stop();
|
||||
} else if (command === "--clear") {
|
||||
clear();
|
||||
} else if (command === "start") {
|
||||
start(args.slice(1));
|
||||
} else if (command === "status") {
|
||||
status();
|
||||
} else if (command === "telegram") {
|
||||
telegram();
|
||||
} else if (command === "send") {
|
||||
send(args.slice(1));
|
||||
} else {
|
||||
start();
|
||||
}
|
||||
Reference in New Issue
Block a user