summary refs log tree commit diff
path: root/commands
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-07-03 10:21:51 +0300
committerWlodekM <[email protected]>2024-07-03 10:21:51 +0300
commit0912c5ddb27df466ac90bafe7ca72da545259019 (patch)
treec2d4886b13a5127af92a70e2a74c75747d448bd3 /commands
parent908b023f60ca2eec347f68bb4f0c8a9c778278ae (diff)
v1.2
Diffstat (limited to 'commands')
-rw-r--r--commands/motd.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands/motd.js b/commands/motd.js
new file mode 100644
index 0000000..740cb07
--- /dev/null
+++ b/commands/motd.js
@@ -0,0 +1,7 @@
+export default {
+    name: 'motd',
+    aliases: [],
+    command: function({user, server}) {
+        user.socket.send("MOTD: " + server.format(server.config.motd));
+    }
+}
\ No newline at end of file