mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-29 09:18:28 +01:00
refactor(arabot): ran prettier
This commit is contained in:
@@ -146,7 +146,7 @@ export class TrustedCommand extends Command {
|
|||||||
.send(
|
.send(
|
||||||
`You have been given the ${trusted.name} role by ${mod}!` +
|
`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.' +
|
'\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.`,
|
`\n\nNot following these rules will result in the **immediate removal** of the ${trusted.name} role.`,
|
||||||
)
|
)
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
|
|||||||
@@ -148,7 +148,10 @@ export class VerificationLeaveVCListener extends Listener {
|
|||||||
listTextChannels.forEach((c) => {
|
listTextChannels.forEach((c) => {
|
||||||
const textChannel = c as TextChannel;
|
const textChannel = c as TextChannel;
|
||||||
// Checks if the channel topic has the user's snowflake
|
// 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();
|
textChannel.delete();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -80,7 +80,10 @@ export class VerificationReady extends Listener {
|
|||||||
const textChannel = c as TextChannel;
|
const textChannel = c as TextChannel;
|
||||||
// Checks if the channel topic has the user's snowflake
|
// Checks if the channel topic has the user's snowflake
|
||||||
emptyVC.forEach((snowflake) => {
|
emptyVC.forEach((snowflake) => {
|
||||||
if (textChannel.topic !== null && textChannel.topic.includes(snowflake)) {
|
if (
|
||||||
|
textChannel.topic !== null &&
|
||||||
|
textChannel.topic.includes(snowflake)
|
||||||
|
) {
|
||||||
textChannel.delete();
|
textChannel.delete();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export class TrustedListener extends Listener {
|
|||||||
await member.user.send(
|
await member.user.send(
|
||||||
`Hi, you have been given the ${trusted.name} as you have been interacting in ARA for a long enough time!` +
|
`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.' +
|
'\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.`,
|
`\n\nNot following these rules will result in the **immediate removal** of the ${trusted.name} role.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user