Skip to content

Commit bdfdc68

Browse files
committed
chore: Broadcast quotes by ID instead of always reply
1 parent dbb5c4e commit bdfdc68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ps/commands/quotes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ export const command: PSCommand = {
554554
},
555555
},
556556
},
557-
async run({ message, arg, run, room: givenRoom, $T }) {
557+
async run({ message, arg, run, room: givenRoom, broadcastHTML, $T }) {
558558
if (!arg) return run('quote random');
559559

560560
const room: string = await getRoom(givenRoom, message, $T);
@@ -567,7 +567,7 @@ export const command: PSCommand = {
567567
throw new ChatError('Invalid quote index.' as ToTranslate);
568568
}
569569
const quote = quotes[index - 1];
570-
return message.replyHTML(
570+
return broadcastHTML(
571571
<>
572572
<hr />
573573
<FormatQuote quote={quote.quote} header={`#${index}`} />

0 commit comments

Comments
 (0)