From 66b2d2ef6794c42f0bb5659c7ccb89ae2e5e450b Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 4 Oct 2018 23:44:09 +0000 Subject: [PATCH] Switch back to hot in meme --- package.json | 2 +- structures/commands/Subreddit.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 6adcceb3..879b1ff1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "92.2.4", + "version": "92.2.5", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/commands/Subreddit.js b/structures/commands/Subreddit.js index dbcda6df..ebe025d1 100644 --- a/structures/commands/Subreddit.js +++ b/structures/commands/Subreddit.js @@ -28,12 +28,8 @@ module.exports = class SubredditCommand extends Command { async random(subreddit, nsfw) { const { body } = await request - .get(`https://www.reddit.com/r/${subreddit}/top.json`) - .query({ - sort: 'top', - t: 'day', - limit: 100 - }); + .get(`https://www.reddit.com/r/${subreddit}/hot.json`) + .query({ limit: 100 }); if (!body.data.children.length) return null; const posts = body.data.children.filter(post => { if (!post.data) return false;