Basic mod manager

This commit is contained in:
2023-10-05 12:55:50 -06:00
parent 5779cd9efc
commit 1e9868348d
5 changed files with 185 additions and 37 deletions

View File

@@ -56,7 +56,11 @@ class ServerState {
this.sockpuppet = new Sockpuppet(
"ws://sockpuppet.cyborggrizzly.com",
() => {
this.sockpuppet.joinChannel(this.channelId, (msg) => {
this.sockpuppet.joinChannel(this.channelId, async (msg) => {
if (msg === 'log' && !IS_BROWSER) {
const log = await Deno.readTextFile('./server/logs/latest.log');
this.channel?.send(log);
} else
this.sendStdIn(msg);
});
},