forked from embee/woomy
FUCKING WORK MY GIOD
This commit is contained in:
parent
7811edab64
commit
1cc6725fdd
2 changed files with 8 additions and 8 deletions
10
config.js
10
config.js
|
@ -3,11 +3,11 @@ const config = {
|
|||
"owners": ["433790467830972417", "324937993972350976"],
|
||||
|
||||
// Tokens
|
||||
"token": "",
|
||||
"devtoken": "",
|
||||
"ytkey": "",
|
||||
"owmkey": "",
|
||||
"dblkey": "",
|
||||
"token": "NDM1OTYxNzA0MTQ1NDg1ODM1.XW762g.4uLWDkiz0tUkiAHZRrIW39ZJh6A",
|
||||
"devtoken": "NDM5NTk0Njc1MjMwMjEyMDk2.XW77ww.izMA1miEMwRcM1-B6CM58qZq9d8",
|
||||
"ytkey": "AIzaSyCCf9Q04Zy6tNOre3pTkiXRShI55kjGhmg",
|
||||
"owmkey": "c49ea77cf0d3216a1cbc6b683f8d9117",
|
||||
"dblkey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjQzNTk2MTcwNDE0NTQ4NTgzNSIsImJvdCI6dHJ1ZSwiaWF0IjoxNTI5NDg5MzgzfQ.Wrjwn2ETwBfRZM7F3PiFf8Gy2MgBZ6Ry7vKv8WTxK_Y",
|
||||
|
||||
// Default per-server settings
|
||||
"defaultSettings" : {
|
||||
|
|
|
@ -16,6 +16,8 @@ module.exports = async (client, message) => {
|
|||
prefix = settings.devprefix;
|
||||
}
|
||||
|
||||
let blacklisted = false;
|
||||
|
||||
if(message.guild) {
|
||||
|
||||
perms = message.channel.permissionsFor(client.user);
|
||||
|
@ -24,7 +26,7 @@ module.exports = async (client, message) => {
|
|||
var adminRole = message.guild.roles.get(settings.adminRole);
|
||||
var autorole = message.guild.roles.get(settings.autorole);
|
||||
var mutedRole = message.guild.roles.get(settings.mutedRole);
|
||||
var welcomeChannel = message.guild.channels.get(settings.welcomeChannel)
|
||||
var welcomeChannel = message.guild.channels.get(settings.welcomeChannel);
|
||||
|
||||
if(!welcomeChannel && settings.welcomeChannel != "off" || !adminRole && settings.adminRole != "None set" || !modRole && settings.modRole != "None set" || !mutedRole && settings.mutedRole != "None set" || !autorole && settings.autorole != "off") {
|
||||
|
||||
|
@ -121,8 +123,6 @@ module.exports = async (client, message) => {
|
|||
};
|
||||
|
||||
if(message.settings.blacklisted != "ARRAY" && settings.blacklisted.length > 0) {
|
||||
let blacklisted = false;
|
||||
|
||||
settings.blacklisted.forEach(function(ID) {
|
||||
if(ID == message.author.id) {
|
||||
blacklisted = true;
|
||||
|
|
Loading…
Reference in a new issue