Skip to content

Commit

Permalink
zort
Browse files Browse the repository at this point in the history
  • Loading branch information
Bes-js authored Dec 28, 2023
1 parent d1a561b commit eb9e7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Supervisor/src/beş_events/commandHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = async (message) => {
let chatChannel = await db.get("five-channel-chat");
let unregisterRoles = await db.get("five-unregister-roles") || [];
let jailRoles = await db.get("five-jail-roles") || [];
if (beş_config.prefix && !message.content.startsWith(beş_config.prefix))return;
if (beş_config.prefix && !message.content.startsWith(beş_config.prefix) || message.guild.id !== beş_config.guildID)return;
if(unregisterRoles.length > 0 && jailRoles.length > 0 && unregisterRoles.some(bes => message.member.roles.cache.has(bes)) && jailRoles.some(bes => message.member.roles.cache.has(bes)))return client.false(message);
const args = message.content.slice(1).trim().split(/ +/g);
const commands = args.shift().toLowerCase();
Expand Down

0 comments on commit eb9e7e3

Please sign in to comment.