mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-09-19 12:02:20 +02:00
feat(arabot): add ara vegan role to verification
This commit is contained in:
parent
4f37da9a71
commit
141d07c01c
@ -286,6 +286,7 @@ export class VerificationJoinVCListener extends Listener {
|
|||||||
roles: {
|
roles: {
|
||||||
vegan: false,
|
vegan: false,
|
||||||
activist: false,
|
activist: false,
|
||||||
|
araVegan: false,
|
||||||
trusted: false,
|
trusted: false,
|
||||||
vegCurious: false,
|
vegCurious: false,
|
||||||
convinced: false,
|
convinced: false,
|
||||||
|
@ -22,7 +22,7 @@ import {
|
|||||||
CategoryChannel,
|
CategoryChannel,
|
||||||
ChannelType,
|
ChannelType,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
PermissionsBitField,
|
PermissionsBitField, Snowflake,
|
||||||
TextChannel,
|
TextChannel,
|
||||||
time,
|
time,
|
||||||
User,
|
User,
|
||||||
@ -135,12 +135,14 @@ export async function getVerificationRoles(
|
|||||||
roles: {
|
roles: {
|
||||||
vegan: boolean,
|
vegan: boolean,
|
||||||
activist: boolean,
|
activist: boolean,
|
||||||
|
araVegan: boolean
|
||||||
trusted: boolean,
|
trusted: boolean,
|
||||||
vegCurious: boolean,
|
vegCurious: boolean,
|
||||||
convinced: boolean
|
convinced: boolean
|
||||||
},
|
},
|
||||||
|
manual: boolean = false,
|
||||||
) {
|
) {
|
||||||
const rolesAdd = [];
|
const rolesAdd: Snowflake[] = [];
|
||||||
if (roles.convinced) {
|
if (roles.convinced) {
|
||||||
rolesAdd.push(IDs.roles.nonvegan.convinced);
|
rolesAdd.push(IDs.roles.nonvegan.convinced);
|
||||||
}
|
}
|
||||||
@ -152,9 +154,12 @@ export async function getVerificationRoles(
|
|||||||
}
|
}
|
||||||
if (roles.activist) {
|
if (roles.activist) {
|
||||||
rolesAdd.push(IDs.roles.vegan.activist);
|
rolesAdd.push(IDs.roles.vegan.activist);
|
||||||
} else {
|
} else if (!manual) {
|
||||||
rolesAdd.push(IDs.roles.verifyBlock);
|
rolesAdd.push(IDs.roles.verifyBlock);
|
||||||
}
|
}
|
||||||
|
if (roles.araVegan) {
|
||||||
|
rolesAdd.push(IDs.roles.vegan.araVegan);
|
||||||
|
}
|
||||||
if (roles.trusted) {
|
if (roles.trusted) {
|
||||||
rolesAdd.push(IDs.roles.trusted);
|
rolesAdd.push(IDs.roles.trusted);
|
||||||
}
|
}
|
||||||
@ -168,6 +173,7 @@ export async function getVerificationRoles(
|
|||||||
export async function finishDM(user: User, roles: {
|
export async function finishDM(user: User, roles: {
|
||||||
vegan: boolean,
|
vegan: boolean,
|
||||||
activist: boolean,
|
activist: boolean,
|
||||||
|
araVegan: boolean,
|
||||||
trusted: boolean,
|
trusted: boolean,
|
||||||
vegCurious: boolean,
|
vegCurious: boolean,
|
||||||
convinced: boolean
|
convinced: boolean
|
||||||
@ -196,6 +202,7 @@ export async function finishVerifyMessages(
|
|||||||
roles: {
|
roles: {
|
||||||
vegan: boolean,
|
vegan: boolean,
|
||||||
activist: boolean,
|
activist: boolean,
|
||||||
|
araVegan: boolean
|
||||||
trusted: boolean,
|
trusted: boolean,
|
||||||
vegCurious: boolean,
|
vegCurious: boolean,
|
||||||
convinced: boolean
|
convinced: boolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user