From 714a4189eb02051ddd330513048b07b3be070e27 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sat, 30 Nov 2024 14:24:39 +0200 Subject: do stuff 3 --- commands/motd.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 commands/motd.ts (limited to 'commands/motd.ts') diff --git a/commands/motd.ts b/commands/motd.ts new file mode 100644 index 0000000..43293c9 --- /dev/null +++ b/commands/motd.ts @@ -0,0 +1,9 @@ +import { CommandFnArgs } from "../commands.ts" + +export default { + name: "motd", + aliases: [], + command: function ({ user, server }: CommandFnArgs) { + user.socket.send("MOTD: " + server.format(server.config.server.motd)); + }, +}; -- cgit 1.4.1-2-gfad0