Skip to content

Commit

Permalink
Add a warning when a rom filter does not match
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjpaz committed Jan 18, 2021
1 parent ac0b894 commit 0269757
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ const startServer = async () => {
const swap = async (index, cause) => {
const rom = await romShuffler.shuffle(index);

if(!rom || rom === '') {
twitchShufflerListener.say(`/me No rom matches "${index}"`);
}

switchRom(rom, cause);
};

Expand Down

0 comments on commit 0269757

Please sign in to comment.