mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 17:14:15 +02:00
refactor(arabot): ran prettier
This commit is contained in:
parent
d90c985cec
commit
8c48473ef3
@ -31,7 +31,10 @@ import {
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class PrivateCommand extends Subcommand {
|
export class PrivateCommand extends Subcommand {
|
||||||
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
|
public constructor(
|
||||||
|
context: Subcommand.LoaderContext,
|
||||||
|
options: Subcommand.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
name: 'private',
|
name: 'private',
|
||||||
|
@ -31,7 +31,10 @@ import type { TextChannel, Snowflake } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class DiversityCommand extends Subcommand {
|
export class DiversityCommand extends Subcommand {
|
||||||
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
|
public constructor(
|
||||||
|
context: Subcommand.LoaderContext,
|
||||||
|
options: Subcommand.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
name: 'diversity',
|
name: 'diversity',
|
||||||
|
@ -24,7 +24,10 @@ import { CategoryChannel, ChannelType } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class RestrictToolsCommand extends Subcommand {
|
export class RestrictToolsCommand extends Subcommand {
|
||||||
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
|
public constructor(
|
||||||
|
context: Subcommand.LoaderContext,
|
||||||
|
options: Subcommand.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
name: 'restricttools',
|
name: 'restricttools',
|
||||||
|
@ -38,7 +38,10 @@ import IDs from '#utils/ids';
|
|||||||
import { EmbedBuilder } from 'discord.js';
|
import { EmbedBuilder } from 'discord.js';
|
||||||
|
|
||||||
export class OutreachCommand extends Subcommand {
|
export class OutreachCommand extends Subcommand {
|
||||||
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
|
public constructor(
|
||||||
|
context: Subcommand.LoaderContext,
|
||||||
|
options: Subcommand.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
name: 'outreach',
|
name: 'outreach',
|
||||||
|
@ -25,7 +25,10 @@ import type { ButtonInteraction, GuildMember } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class NonVeganAccessButtonHandler extends InteractionHandler {
|
export class NonVeganAccessButtonHandler extends InteractionHandler {
|
||||||
public constructor(ctx: InteractionHandler.LoaderContext, options: InteractionHandler.Options) {
|
public constructor(
|
||||||
|
ctx: InteractionHandler.LoaderContext,
|
||||||
|
options: InteractionHandler.Options,
|
||||||
|
) {
|
||||||
super(ctx, {
|
super(ctx, {
|
||||||
...options,
|
...options,
|
||||||
interactionHandlerType: InteractionHandlerTypes.Button,
|
interactionHandlerType: InteractionHandlerTypes.Button,
|
||||||
|
@ -25,7 +25,10 @@ import type { ButtonInteraction, GuildMember, TextChannel } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class WelcomeButtonHandler extends InteractionHandler {
|
export class WelcomeButtonHandler extends InteractionHandler {
|
||||||
public constructor(ctx: InteractionHandler.LoaderContext, options: InteractionHandler.Options) {
|
public constructor(
|
||||||
|
ctx: InteractionHandler.LoaderContext,
|
||||||
|
options: InteractionHandler.Options,
|
||||||
|
) {
|
||||||
super(ctx, {
|
super(ctx, {
|
||||||
...options,
|
...options,
|
||||||
interactionHandlerType: InteractionHandlerTypes.Button,
|
interactionHandlerType: InteractionHandlerTypes.Button,
|
||||||
|
@ -25,7 +25,10 @@ import IDs from '#utils/ids';
|
|||||||
import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser';
|
import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser';
|
||||||
|
|
||||||
export class BanListener extends Listener {
|
export class BanListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'guildBanAdd',
|
event: 'guildBanAdd',
|
||||||
|
@ -23,7 +23,10 @@ import { checkBan, getBanReason } from '#utils/database/ban';
|
|||||||
import { checkTempBan } from '#utils/database/tempBan';
|
import { checkTempBan } from '#utils/database/tempBan';
|
||||||
|
|
||||||
export class BanJoinListener extends Listener {
|
export class BanJoinListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'guildMemberAdd',
|
event: 'guildMemberAdd',
|
||||||
|
@ -25,7 +25,10 @@ import IDs from '#utils/ids';
|
|||||||
import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser';
|
import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser';
|
||||||
|
|
||||||
export class UnbanListener extends Listener {
|
export class UnbanListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'guildBanRemove',
|
event: 'guildBanRemove',
|
||||||
|
@ -21,7 +21,10 @@ import { Listener } from '@sapphire/framework';
|
|||||||
import type { Message } from 'discord.js';
|
import type { Message } from 'discord.js';
|
||||||
|
|
||||||
export class BotAppreciationListener extends Listener {
|
export class BotAppreciationListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'messageCreate',
|
event: 'messageCreate',
|
||||||
|
@ -24,7 +24,10 @@ import type {
|
|||||||
import { Listener } from '@sapphire/framework';
|
import { Listener } from '@sapphire/framework';
|
||||||
|
|
||||||
export class OldCommandDeniedListener extends Listener {
|
export class OldCommandDeniedListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'messageCommandDenied',
|
event: 'messageCommandDenied',
|
||||||
|
@ -25,7 +25,10 @@ import { getLastCount, addCount } from '#utils/database/counting';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class XpListener extends Listener {
|
export class XpListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'messageCreate',
|
event: 'messageCreate',
|
||||||
|
@ -27,7 +27,10 @@ import {
|
|||||||
} from '#utils/database/dbExistingUser';
|
} from '#utils/database/dbExistingUser';
|
||||||
|
|
||||||
export class DbLeaveServerListener extends Listener {
|
export class DbLeaveServerListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'guildMemberRemove',
|
event: 'guildMemberRemove',
|
||||||
|
@ -24,7 +24,10 @@ import type {
|
|||||||
import { Listener } from '@sapphire/framework';
|
import { Listener } from '@sapphire/framework';
|
||||||
|
|
||||||
export class CommandDeniedListener extends Listener {
|
export class CommandDeniedListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'chatInputCommandDenied',
|
event: 'chatInputCommandDenied',
|
||||||
|
@ -24,7 +24,10 @@ import { Listener } from '@sapphire/framework';
|
|||||||
import { setupTypes } from '#utils/database/outreach';
|
import { setupTypes } from '#utils/database/outreach';
|
||||||
|
|
||||||
export class EventTypesReadyListener extends Listener {
|
export class EventTypesReadyListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
once: true,
|
once: true,
|
||||||
|
@ -24,7 +24,10 @@ import type { Client, TextChannel } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class NonVeganAccessReady extends Listener {
|
export class NonVeganAccessReady extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
once: true,
|
once: true,
|
||||||
|
@ -24,7 +24,10 @@ import { Listener } from '@sapphire/framework';
|
|||||||
import type { Client } from 'discord.js';
|
import type { Client } from 'discord.js';
|
||||||
|
|
||||||
export class ReadyListener extends Listener {
|
export class ReadyListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
once: true,
|
once: true,
|
||||||
|
@ -33,7 +33,10 @@ import { blockedRoles, blockedRolesAfterRestricted } from '#utils/blockedRoles';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class RolesJoinServerListener extends Listener {
|
export class RolesJoinServerListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'guildMemberAdd',
|
event: 'guildMemberAdd',
|
||||||
|
@ -23,7 +23,10 @@ import type { Message } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class Suggestions extends Listener {
|
export class Suggestions extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'messageCreate',
|
event: 'messageCreate',
|
||||||
|
@ -22,7 +22,10 @@ import type { VoiceState } from 'discord.js';
|
|||||||
import { checkActive, removeMute } from '#utils/database/vcMute';
|
import { checkActive, removeMute } from '#utils/database/vcMute';
|
||||||
|
|
||||||
export class VCMuteListener extends Listener {
|
export class VCMuteListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'voiceStateUpdate',
|
event: 'voiceStateUpdate',
|
||||||
|
@ -22,7 +22,10 @@ import type { Message } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class VerificationMessageCounter extends Listener {
|
export class VerificationMessageCounter extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'messageCreate',
|
event: 'messageCreate',
|
||||||
|
@ -29,7 +29,10 @@ import { createVerificationVoice } from '#utils/verification';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class VerificationReady extends Listener {
|
export class VerificationReady extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
once: true,
|
once: true,
|
||||||
|
@ -24,7 +24,10 @@ import type { Client, TextChannel } from 'discord.js';
|
|||||||
import IDs from '#utils/ids';
|
import IDs from '#utils/ids';
|
||||||
|
|
||||||
export class VerificationReady extends Listener {
|
export class VerificationReady extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
once: true,
|
once: true,
|
||||||
|
@ -23,7 +23,10 @@ import { addXp, checkCanAddXp } from '#utils/database/xp';
|
|||||||
import { randint } from '#utils/maths';
|
import { randint } from '#utils/maths';
|
||||||
|
|
||||||
export class XpListener extends Listener {
|
export class XpListener extends Listener {
|
||||||
public constructor(context: Listener.LoaderContext, options: Listener.Options) {
|
public constructor(
|
||||||
|
context: Listener.LoaderContext,
|
||||||
|
options: Listener.Options,
|
||||||
|
) {
|
||||||
super(context, {
|
super(context, {
|
||||||
...options,
|
...options,
|
||||||
event: 'messageCreate',
|
event: 'messageCreate',
|
||||||
|
@ -102,6 +102,6 @@ export class TempBan extends ScheduledTask {
|
|||||||
|
|
||||||
declare module '@sapphire/plugin-scheduled-tasks' {
|
declare module '@sapphire/plugin-scheduled-tasks' {
|
||||||
interface ScheduledTasks {
|
interface ScheduledTasks {
|
||||||
tempBan: { userId: string; guildId: string }
|
tempBan: { userId: string; guildId: string };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user