Skip to content

Commit

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

0 comments on commit 2c1002c

Please sign in to comment.