refactor(arabot): ran prettier

This commit is contained in:
Anthony Berg 2024-09-02 22:24:24 +02:00
parent fe88e9f87b
commit 8f8580398e
4 changed files with 10 additions and 4 deletions

View File

@ -146,7 +146,7 @@ export class TrustedCommand extends Command {
.send(
`You have been given the ${trusted.name} role by ${mod}!` +
'\n\nThis role allows you to post attachments to the server and stream in VCs.' +
"\nMake sure that you follow the rules, especially by **not** posting anything **NSFW**, and **no animal products or consumption of animal products**." +
'\nMake sure that you follow the rules, especially by **not** posting anything **NSFW**, and **no animal products or consumption of animal products**.' +
`\n\nNot following these rules will result in the **immediate removal** of the ${trusted.name} role.`,
)
.catch(() => {});

View File

@ -148,7 +148,10 @@ export class VerificationLeaveVCListener extends Listener {
listTextChannels.forEach((c) => {
const textChannel = c as TextChannel;
// Checks if the channel topic has the user's snowflake
if (textChannel.topic !== null && textChannel.topic.includes(userSnowflake!)) {
if (
textChannel.topic !== null &&
textChannel.topic.includes(userSnowflake!)
) {
textChannel.delete();
}
});

View File

@ -80,7 +80,10 @@ export class VerificationReady extends Listener {
const textChannel = c as TextChannel;
// Checks if the channel topic has the user's snowflake
emptyVC.forEach((snowflake) => {
if (textChannel.topic !== null && textChannel.topic.includes(snowflake)) {
if (
textChannel.topic !== null &&
textChannel.topic.includes(snowflake)
) {
textChannel.delete();
}
});

View File

@ -81,7 +81,7 @@ export class TrustedListener extends Listener {
await member.user.send(
`Hi, you have been given the ${trusted.name} as you have been interacting in ARA for a long enough time!` +
'\n\nThis role allows you to post attachments to the server and stream in VCs.' +
"\nMake sure that you follow the rules, especially by **not** posting anything **NSFW**, and **no animal products or consumption of animal products**." +
'\nMake sure that you follow the rules, especially by **not** posting anything **NSFW**, and **no animal products or consumption of animal products**.' +
`\n\nNot following these rules will result in the **immediate removal** of the ${trusted.name} role.`,
);
}