diff --git a/commands/general/clap.js b/commands/general/clap.js index 732d80ce..4869cb42 100644 --- a/commands/general/clap.js +++ b/commands/general/clap.js @@ -21,6 +21,8 @@ class ClapCommand extends Command { } async exec(message, args) { + if (!args.text) + return; let clap = args.text.replace(/ /g, ' 👏 '); message.delete(); message.channel.send(`${clap} 👏`); diff --git a/commands/general/reddit.js b/commands/general/reddit.js index e2444d78..ad23aeaf 100644 --- a/commands/general/reddit.js +++ b/commands/general/reddit.js @@ -12,9 +12,6 @@ class RedditCommand extends Command { { id: 'sub', type: 'string', - prompt: { - retry: 'That\'s not a valid subreddit! try again.' - }, } ], description: { @@ -28,6 +25,8 @@ class RedditCommand extends Command { async exec(message, args) { let sub = args.sub; let i, a; + if (!sub) + return; fetch('https://www.reddit.com/r/' + sub + '.json?limit=100').then((response) => { return response.json();