Skip to content

Commit

Permalink
style: prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mittelblut9 committed Nov 13, 2023
1 parent d55e74b commit 4a5ff17
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 45 deletions.
16 changes: 8 additions & 8 deletions bot/events/autoModerationRuleCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ module.exports.autoModerationRuleCreate = async (bot, rule) => {
action.type === 1
? 'Delete Message'
: action.type === 2
? 'Send alert to'
: action.type === 3
? 'Timeout user'
: 'none',
? 'Send alert to'
: action.type === 3
? 'Timeout user'
: 'none',
value:
action.type === 1
? 'True'
: action.type === 2
? `<#${action.metadata.channelId}>`
: action.type === 3
? `${action.metadata.durationSeconds} seconds`
: 'none',
? `<#${action.metadata.channelId}>`
: action.type === 3
? `${action.metadata.durationSeconds} seconds`
: 'none',
};
});

Expand Down
16 changes: 8 additions & 8 deletions bot/events/autoModerationRuleUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ module.exports.autoModerationRuleUpdate = async (bot, oldRule, newRule) => {
action.type === 1
? 'Delete Message'
: action.type === 2
? 'Send alert to'
: action.type === 3
? 'Timeout user'
: 'none',
? 'Send alert to'
: action.type === 3
? 'Timeout user'
: 'none',
value:
action.type === 1
? 'True'
: action.type === 2
? `<#${action.metadata.channelId}>`
: action.type === 3
? `${action.metadata.durationSeconds} seconds`
: 'none',
? `<#${action.metadata.channelId}>`
: action.type === 3
? `${action.metadata.durationSeconds} seconds`
: 'none',
};
});

Expand Down
16 changes: 8 additions & 8 deletions src/slash_commands/admin/antiinsults.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ module.exports.run = async ({ main_interaction, bot }) => {
main_interaction.guild.id
)
: setting.enabled
? global.t.trans(
['success.admin.automod.antiinsults.enabled', ...replyData],
main_interaction.guild.id
)
: global.t.trans(
['success.admin.automod.antiinsults.disabled', ...replyData],
main_interaction.guild.id
);
? global.t.trans(
['success.admin.automod.antiinsults.enabled', ...replyData],
main_interaction.guild.id
)
: global.t.trans(
['success.admin.automod.antiinsults.disabled', ...replyData],
main_interaction.guild.id
);

main_interaction
.followUp({
Expand Down
8 changes: 4 additions & 4 deletions src/slash_commands/admin/modroles.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ module.exports.run = async ({ main_interaction, bot }) => {
? dbEntity.isAdmin
? 'Admin'
: dbEntity.isMod
? 'Moderator'
: dbEntity.isHelper
? 'Helper'
: 'Not set yet'
? 'Moderator'
: dbEntity.isHelper
? 'Helper'
: 'Not set yet'
: 'Not set yet'
}**`
);
Expand Down
4 changes: 2 additions & 2 deletions utils/classes/BanappealLogic.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ module.exports = class BanappealLogic {
err.code === 10026
? 'The user is not banned.'
: err.code === 50013
? 'The bot does not have permissions to unban the user.'
: 'There was an error while trying to unban the user.'
? 'The bot does not have permissions to unban the user.'
: 'There was an error while trying to unban the user.'
}`,
ephemeral: true,
})
Expand Down
2 changes: 1 addition & 1 deletion utils/classes/Notifications/Notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = class Notification {
updateNotification({ message, embed = null }) {
return new Promise((resolve, reject) => {
if (!message && !embed) return reject('No message, content or embed provided.');
if (!message instanceof Message) {
if ((!message) instanceof Message) {
return reject('Message is not a valid message object.');
}

Expand Down
4 changes: 2 additions & 2 deletions utils/classes/levelsystemAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ class Levelsystem {
type === 'dm'
? 'type to **DM**'
: type === 'disable'
? 'type to **disabled**'
: 'channel to ' + channel
? 'type to **disabled**'
: 'channel to ' + channel
}`
);
})
Expand Down
8 changes: 4 additions & 4 deletions utils/classes/scam.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ module.exports.manageScam = async ({ main_interaction }) => {
request.request_type == 'ADD'
? `✅ This request has been added to the scam list by ${main_interaction.user}`
: request.request_type == 'DELETE'
? `✅ This request has been deleted from the scam list by ${main_interaction.user}`
: `✅ This Guild has been added to the blacklist by ${main_interaction.user}`,
? `✅ This request has been deleted from the scam list by ${main_interaction.user}`
: `✅ This Guild has been added to the blacklist by ${main_interaction.user}`,
components: [],
}).catch((err) => {});
});
Expand All @@ -433,8 +433,8 @@ module.exports.manageScam = async ({ main_interaction }) => {
request.request_type == 'ADD'
? `✅ Your request got accepted.`
: request.request_type == 'DELETE'
? `❌ Your request got declined.`
: `❌ Your request got declined.`,
? `❌ Your request got declined.`
: `❌ Your request got declined.`,
})
.catch((err) => {});
}
Expand Down
16 changes: 8 additions & 8 deletions utils/functions/publicResponses/publicModResponses.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ module.exports.publicInfractionResponse = async ({
inf.mute === 1
? `${'Mute'}`
: inf.kick === 1
? `${'Kick'}`
: inf.warn === 1
? `${'Warn'}`
: `${'Ban'}`
? `${'Kick'}`
: inf.warn === 1
? `${'Warn'}`
: `${'Ban'}`
}`,
value: `Reason: ${inf.reason} ${
inf.warn === 0
Expand All @@ -116,10 +116,10 @@ module.exports.publicInfractionResponse = async ({
timeZone: 'UTC',
})
: inf.mute === 1
? 'Permanent'
: inf.ban === 1
? 'Permanent'
: ''
? 'Permanent'
: inf.ban === 1
? 'Permanent'
: ''
}**`
: ''
}`,
Expand Down

0 comments on commit 4a5ff17

Please sign in to comment.