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

19
world/cmd/channel/say.js Normal file
View File

@@ -0,0 +1,19 @@
this.inherits(COMMAND);
this.command = "say";
this.allow_busy = true;
this.allow_state = true;
this.enter = function (me, msg) {
if (!msg) {
return me.send_room("$N在自言自语的说些什么。");
}
if (me.query_temp("no_chat")) return me.notify("你目前被禁言中。");
if (msg.length > 200) return me.notify("你说的太多了。");
if (msg[0] == "/") {
if (me.query_temp("admin") || me.query_temp("wiz"))
return me.command(msg.substr(1));
}
msg = UTIL.htmlEncode(UTIL.replace_word(msg));
me.add_temp('chat2', 1, UTIL.diff_time());
return me.send_room("$N说" + UTIL.htmlEncode(msg));
}