diff --git a/commands/random-img/danbooru.js b/commands/random-img/danbooru.js index b95d1607..8d6c985e 100644 --- a/commands/random-img/danbooru.js +++ b/commands/random-img/danbooru.js @@ -15,7 +15,11 @@ module.exports = class DanbooruCommand extends Command { key: 'query', prompt: 'What would you like to search for?', type: 'string', - default: '' + default: '', + validate: query => { + if (!query.includes(' ')) return true; + return 'Please only search for one tag at a time.'; + } } ] }); diff --git a/package.json b/package.json index 80487d5a..475ae7fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "27.9.1", + "version": "27.9.2", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {