diff --git a/commands/search/scrabble-score.js b/commands/search/scrabble-score.js index a2286b12..5e267167 100644 --- a/commands/search/scrabble-score.js +++ b/commands/search/scrabble-score.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const letters = require('../../assets/json/roman-numeral'); +const letters = require('../../assets/json/scrabble-score'); module.exports = class ScrabbleScoreCommand extends Command { constructor(client) { @@ -15,7 +15,7 @@ module.exports = class ScrabbleScoreCommand extends Command { prompt: 'What word would you like to get the scrabble score of?', type: 'string', validate: word => { - if (/[A-Za-z ]/i.test(word.toLowerCase())) return true; + if (/^[A-Za-z ]+$/i.test(word.toLowerCase())) return true; return 'Invalid word, please only use A-Z and space.'; }, parse: word => word.toLowerCase()