Channel/Category blacklist!
This commit is contained in:
parent
b085d65aa4
commit
53ff03c8d1
|
@ -3,9 +3,10 @@
|
|||
"token": "",
|
||||
"errorChannel": "",
|
||||
"levels": {
|
||||
"lvlUpEquation": "30",
|
||||
"lvlUpEquation": "5 * (lvl ^ 2) + (50 * lvl) + 100",
|
||||
"lvlUpMessage": "{user}, you have leveled up to level {lvl}!",
|
||||
"cooldownMinutes": 1
|
||||
"cooldownMinutes": 1,
|
||||
"blacklist": []
|
||||
}
|
||||
}
|
||||
}
|
2
index.js
2
index.js
|
@ -56,6 +56,8 @@ client.on("ready", async () => {
|
|||
client.on("messageCreate", async message => {
|
||||
if (message.author.bot) return;
|
||||
if (message.channel.type === "DM") return;
|
||||
if (config.discord.levels.blacklist.includes(message.channel.id)) return;
|
||||
if (config.discord.levels.blacklist.includes(message.channel.parentId)) return;
|
||||
|
||||
// Calculate random xp
|
||||
let xp = Math.floor(Math.random() * 10) + 15;
|
||||
|
|
Loading…
Reference in a new issue