diff options
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)); + }, +}; |