mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 15:04:29 +02:00
feat(arabot): remove giving roles other than block verification on join
This commit is contained in:
parent
d771827b6d
commit
d2e4e7c167
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
import { Listener } from '@sapphire/framework';
|
import { Listener } from '@sapphire/framework';
|
||||||
import type { GuildMember } from 'discord.js';
|
import type { GuildMember } from 'discord.js';
|
||||||
import { fetchRoles } from '../../utils/database/dbExistingUser';
|
// import { fetchRoles } from '../../utils/database/dbExistingUser';
|
||||||
import IDs from '../../utils/ids';
|
import IDs from '../../utils/ids';
|
||||||
import { blockTime } from '../../utils/database/verification';
|
import { blockTime } from '../../utils/database/verification';
|
||||||
|
|
||||||
@ -34,7 +34,10 @@ class VerificationReady extends Listener {
|
|||||||
|
|
||||||
public async run(user: GuildMember) {
|
public async run(user: GuildMember) {
|
||||||
// Add basic roles
|
// Add basic roles
|
||||||
const roles = await fetchRoles(user.id);
|
// Removed this because it can give restricted people access back,
|
||||||
|
// Currently using another bot for this
|
||||||
|
// const roles = await fetchRoles(user.id);
|
||||||
|
const roles: string[] = [];
|
||||||
|
|
||||||
// Check if the user has a verification block
|
// Check if the user has a verification block
|
||||||
const timeout = await blockTime(user.id);
|
const timeout = await blockTime(user.id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user