Skip to content

Commit

Permalink
update bad message stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
karsonkalt committed Jul 19, 2024
1 parent 9396d6c commit 5534d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/ts/home/terminal/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { sendPing } from "../sendPing";

const messageCommand: CommandExecute = (args) => {
try {
sendPing(args.join(" "));
sendPing(args.join(" ").trim());
return "Message sent to my phone";
} catch (error) {
return "Error sending message";
return "Invalid message command. Usage: message <message>";
}
};

Expand Down

0 comments on commit 5534d4f

Please sign in to comment.