Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Beta 1.1 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
17teen committed Jun 21, 2021
1 parent 78047c2 commit 9990c99
Show file tree
Hide file tree
Showing 18 changed files with 243 additions and 289 deletions.
8 changes: 2 additions & 6 deletions Private/commands/add_remove/addGuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ module.exports = {
message.channel.send(NoGuildID)
} else {
AddGuilds(GuildID)
setTimeout(function () {
process.exit();
}, 1000)

}
} else {
message.channel.send(notOwner)
Expand Down Expand Up @@ -148,9 +146,7 @@ module.exports = {
message.channel.send(NoGuildID)
} else {
AddGuilds(GuildID)
setTimeout(function () {
process.exit();
}, 1000)

}
} else {
message.channel.send(notOwner)
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/add_remove/removeGuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ module.exports = {
message.channel.send(NoGuildID)
} else {
RemoveGuilds(GuildID)
setTimeout(function () {
process.exit();
}, 1000)

}
} else {
message.channel.send(notOwner)
Expand Down Expand Up @@ -170,9 +168,7 @@ module.exports = {
message.channel.send(NoGuildID)
} else {
RemoveGuilds(GuildID)
setTimeout(function () {
process.exit();
}, 1000)

}
} else {
message.channel.send(notOwner)
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/blacklist/blacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ module.exports = {
}
}
Blacklist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -147,9 +145,7 @@ module.exports = {
}
}
Blacklist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/blacklist/unblacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ module.exports = {
}
}
UnBlacklist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -167,9 +165,7 @@ module.exports = {
}
}
UnBlacklist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/blacklist/unblacklistAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ module.exports = {

}
UnwhitelistAll()
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -137,9 +135,7 @@ module.exports = {

}
UnwhitelistAll()
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
5 changes: 1 addition & 4 deletions Private/commands/database/whitelistedGuilds.json
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
[
"<@805499311847637002>",
"<@805499311847637002>"
]
[]
8 changes: 2 additions & 6 deletions Private/commands/enabling_disabling/disableGuilds.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ module.exports = {
fs.writeFileSync('commands/settings.json', content, 'utf8');
}
disableMultipleGuilds()
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -108,9 +106,7 @@ module.exports = {
fs.writeFileSync('commands/settings.json', content, 'utf8');
}
disableMultipleGuilds()
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
14 changes: 2 additions & 12 deletions Private/commands/enabling_disabling/enableGuilds.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ module.exports = {
fs.writeFileSync('commands/settings.json', content, 'utf8');

}
enableMultipleGuilds().then(() => {
console.log(yellowBright(`Restarting`))
setTimeout(() => {
process.exit(1);
}, 1000);
});
enableMultipleGuilds()
} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -115,12 +110,7 @@ module.exports = {
const content = JSON.stringify(eGuilds, null, 2);
fs.writeFileSync('commands/settings.json', content, 'utf8');
}
enableMultipleGuilds().then(() => {
console.log(yellowBright(`Restarting`))
setTimeout(() => {
process.exit(1);
}, 1000);
});
enableMultipleGuilds()
} else {
message.channel.send(notOwner)
}
Expand Down
36 changes: 30 additions & 6 deletions Private/commands/mod/UnbanAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,22 @@ module.exports = {
if (bans.size == 0) {
message.reply("There are no banned users.")
} else {
bans.forEach(ban => {
message.guild.members.unban(ban.user.id);
let counter = 0;
let n = 1;
const banSize = bans.size;
const unbanning = new MessageEmbed()
.setDescription(`Currently unbanning users. (${counter}/${banSize})`)
.setColor(0x36393E)
message.channel.send(unbanning).then((msg) => {
bans.forEach((user) => {
const unbanning1 = new MessageEmbed()
.setDescription(`Currently unbanning users. (${n++}/${banSize})`)
.setColor(0x36393E)
message.guild.members.unban(user.user.id).then(() => {
msg.edit({ embed: unbanning1 })
}).catch((err) => console.log(err))
})
})
message.channel.send(`Unbanning All Banned Members.`)
}
}
)
Expand Down Expand Up @@ -84,10 +96,22 @@ module.exports = {
if (bans.size == 0) {
message.reply("There are no banned users.")
} else {
bans.forEach(ban => {
message.guild.members.unban(ban.user.id);
let counter = 0;
let n = 1;
const banSize = bans.size;
const unbanning = new MessageEmbed()
.setDescription(`Currently unbanning users. (${counter}/${banSize})`)
.setColor(0x36393E)
message.channel.send(unbanning).then((msg) => {
bans.forEach((user) => {
const unbanning1 = new MessageEmbed()
.setDescription(`Currently unbanning users. (${n++}/${banSize})`)
.setColor(0x36393E)
message.guild.members.unban(user.user.id).then(() => {
msg.edit({ embed: unbanning1 })
}).catch((err) => console.log(err))
})
})
message.channel.send(`Unbanning All Banned Members.`)
}
}
)
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/trust/trustUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ module.exports = {
}
}
TrustUser(GetMember.id)
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -146,9 +144,7 @@ module.exports = {
}
}
TrustUser(GetMember.id)
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
4 changes: 1 addition & 3 deletions Private/commands/trust/untrustAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ module.exports = {

}
UnwhitelistAll()
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/trust/untrustUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ module.exports = {
}
}
UnTrustUser(GetMember.id)
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -165,9 +163,7 @@ module.exports = {
}
}
UnTrustUser(GetMember.id)
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/whitelist/unwhitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ module.exports = {

}
UnWhitelist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -170,9 +168,7 @@ module.exports = {

}
UnWhitelist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
4 changes: 1 addition & 3 deletions Private/commands/whitelist/unwhitelistAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ module.exports = {

}
UnwhitelistAll()
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
8 changes: 2 additions & 6 deletions Private/commands/whitelist/whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ module.exports = {

}
Whitelist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down Expand Up @@ -160,9 +158,7 @@ module.exports = {

}
Whitelist(GetMember.id);
setTimeout(function () {
process.exit();
}, 1000)

} else {
message.channel.send(notOwner)
}
Expand Down
Loading

0 comments on commit 9990c99

Please sign in to comment.