Basic mod manager
This commit is contained in:
@@ -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);
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user