Removed useless console.log

pull/1/head
Supositware 2 years ago
parent 4915420c90
commit 7160681931

@ -26,11 +26,9 @@ export default {
reaction.users.cache.forEach(user => {
if (reaction.message.author == user) reactionCount--;
});
console.log(fs.existsSync(`./json/board/star${reaction.message.guild.id}.json`));
// Starboard
if (fs.existsSync(`./json/board/star${reaction.message.guild.id}.json`)) {
console.log('hi');
starboardChannel = JSON.parse(fs.readFileSync(`./json/board/star${reaction.message.guild.id}.json`));
let staremote = starboardChannel.emote;
const starcount = starboardChannel.count;
@ -40,7 +38,6 @@ export default {
}
if (reaction.emoji == staremote || reaction.emoji.name == staremote) {
console.log('send or edit');
if (global.boards[reaction.message.id] && reactionCount > starcount) {
return editEmbed('starboard', staremote, global.boards[reaction.message.id], c);
}

@ -26,11 +26,9 @@ export default {
reaction.users.cache.forEach(user => {
if (reaction.message.author == user) reactionCount--;
});
console.log(fs.existsSync(`./json/board/star${reaction.message.guild.id}.json`));
// Starboard
if (fs.existsSync(`./json/board/star${reaction.message.guild.id}.json`)) {
console.log('hi');
starboardChannel = JSON.parse(fs.readFileSync(`./json/board/star${reaction.message.guild.id}.json`));
let staremote = starboardChannel.emote;
const starcount = starboardChannel.count;

Loading…
Cancel
Save