DBL is total garbage

This commit is contained in:
Dragon Fire
2020-04-28 09:07:54 -04:00
parent b2f86615c8
commit 1817c6e990
10 changed files with 7 additions and 34 deletions
+1 -4
View File
@@ -17,10 +17,7 @@ module.exports = class SubredditCommand extends Command {
}
async run(msg, { subreddit }, fromPattern) {
if (fromPattern) {
if (msg.guild && this.client.botListGuilds.includes(msg.guild.id)) return null;
subreddit = msg.patternMatches[1];
}
if (fromPattern) subreddit = msg.patternMatches[1];
if (!subreddit) subreddit = typeof this.subreddit === 'function' ? this.subreddit() : this.subreddit;
try {
const post = await this.random(subreddit, msg.channel.nsfw);