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