Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyameliaaaa committed Sep 26, 2021
1 parent c4ed994 commit f119d88
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions commands/fun/meme.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@ const r = new snoo({
clientId: '49z0Xcek_8DeB8LyDjsjyA',
clientSecret: process.env.REDDIT_TOKEN,
refreshToken: process.env.REDDIT_REFRESH
})
});

module.exports = {
name: 'meme',
description: 'Shows you a meme!',

// eslint-disable-next-line no-unused-vars
async execute(client, message, args) {
const memeReddits = ['memes', 'dankmemes', 'comedynecrophilia', 'theletterh', 'okbuddyretard', '196', 'comedyheaven'];
const sourceReddit = memeReddits[Math.floor(Math.random()*memeReddits.length)]
const sourceReddit = memeReddits[Math.floor(Math.random() * memeReddits.length)];

const post = r.getHot(sourceReddit);
console.log(post)
console.log(post);

message.channel.send({ embeds: [{
title: 'this is supposed to be real',
description: sourceReddit,
color: client.config.color
}]});
message.channel.send({
embeds: [{
title: 'this is supposed to be real',
description: sourceReddit,
color: client.config.color
}]
});
}
}
};

0 comments on commit f119d88

Please sign in to comment.