init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

20
world/cmd/action/state.js Normal file
View File

@@ -0,0 +1,20 @@
this.inherits(COMMAND);
this.command = "state";
this.allow_busy = true;
this.allow_state = true;
this.enter = function (me, type) {
if (!me.state) return me.send('你没有在忙。');
if (type === 'stop') {
if (me.state) {
if (me.state.no_stop) return me.notify(me.state.no_stop);
}
me.set_state(null);
} else {
if (me.state.on_check) {
return me.state.on_check(me);
}
return me.send('你正在' + me.state.title + "。");
}
}