fix auto tier

master
Matthew 2024-01-08 20:43:29 -05:00
parent 64f67c9a18
commit 309f080b37
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ export default function checkStaffStatus(client: Client) {
await client.db.Account.updateOne({ username: acc.username }, { $set: { 'permissions.intern': false } });
}
if ((acc.permissions.staff || acc.permissions.intern || acc.permissions.technician || acc.permissions.director || user.roles.cache.has('858049948401401866')) && acc.tier < 3) {
if ((acc.permissions.staff || acc.permissions.intern || acc.permissions.technician || acc.permissions.director || user.roles.cache.has('858049948401401866')) && (acc.tier < 3 && acc.tier > 0)) {
await client.db.Account.updateOne({ username: acc.username }, { $set: { tier: 3 } });
const embed = new MessageEmbed();
embed.setTitle('Cloud Account | Tier Change');