Skip to content

Commit

Permalink
ignore articles in issued commands
Browse files Browse the repository at this point in the history
  • Loading branch information
okaybenji committed Sep 16, 2020
1 parent f83660b commit c0cb789
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ const loadDisk = (disk, config = {}) => {
}
};

const args = val.split(' ');
const args = val.split(' ')
// remove articles
.filter(arg => arg !== 'a' && arg !== 'an' && arg != 'the');
const cmd = args[0];
const room = getRoom(disk.roomId);

Expand Down

0 comments on commit c0cb789

Please sign in to comment.