diff options
author | WlodekM <[email protected]> | 2024-11-30 14:24:39 +0200 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-11-30 14:24:39 +0200 |
commit | 714a4189eb02051ddd330513048b07b3be070e27 (patch) | |
tree | 64112d5ce9d2b433cc4be0adf561ac128a3d84b5 /commands/motd.ts | |
parent | f37e3537adb59f2b724259a1720295756eb94277 (diff) |
do stuff 3
Diffstat (limited to 'commands/motd.ts')
-rw-r--r-- | commands/motd.ts | 9 |
1 files changed, 9 insertions, 0 deletions
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)); + }, +}; |