Skip to content

Commit 833bd9f

Browse files
committed
chore: Default modnote content but actually
1 parent 6683c7d commit 833bd9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ps/commands/modnote.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const command: PSCommand = {
4848
help: 'Sends a modnote to the given room.',
4949
syntax: 'CMD [room], [message]',
5050
async run({ arg, message, $T, run }) {
51-
const [target, content] = arg.lazySplit(/[,|]/, 1);
51+
const [target, content = 'Hi!'] = arg.lazySplit(/[,|]/, 1);
5252
const targetRoom = message.parent.getRoom(target);
5353
if (!targetRoom) throw new ChatError($T('INVALID_ROOM_ID'));
5454
const userInRoom = targetRoom.users.find(user => toId(user) === message.author.id);
@@ -114,6 +114,6 @@ export const command: PSCommand = {
114114
);
115115
return;
116116
}
117-
return run(`modnote send ${arg ?? 'Hi!'}`);
117+
return run(`modnote send ${arg}`);
118118
},
119119
};

0 commit comments

Comments
 (0)