Removed useless console.log
This commit is contained in:
parent
4915420c90
commit
7160681931
2 changed files with 0 additions and 5 deletions
|
@ -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…
Reference in a new issue