fix(arabot): fix eslint issues with exporting

This commit is contained in:
Anthony 2022-08-22 23:13:39 +01:00
parent 75f669ac56
commit 8db488bc9d
25 changed files with 75 additions and 25 deletions

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { MessageEmbed } from 'discord.js'; import { MessageEmbed } from 'discord.js';
import { N1984 } from '../../utils/gifs'; import { N1984 } from '../../utils/gifs';
export class N1984Command extends Command { class N1984Command extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -63,3 +63,5 @@ export class N1984Command extends Command {
await interaction.reply({ embeds: [n1984Embed], fetchReply: true }); await interaction.reply({ embeds: [n1984Embed], fetchReply: true });
} }
} }
export default N1984Command;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { MessageEmbed } from 'discord.js'; import { MessageEmbed } from 'discord.js';
import { Happy } from '../../utils/gifs'; import { Happy } from '../../utils/gifs';
export class HappyCommand extends Command { class HappyCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -60,3 +60,5 @@ export class HappyCommand extends Command {
await interaction.reply({ embeds: [happyEmbed], fetchReply: true }); await interaction.reply({ embeds: [happyEmbed], fetchReply: true });
} }
} }
export default HappyCommand;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { MessageEmbed } from 'discord.js'; import { MessageEmbed } from 'discord.js';
import { Hugs } from '../../utils/gifs'; import { Hugs } from '../../utils/gifs';
export class HugCommand extends Command { class HugCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -65,3 +65,5 @@ export class HugCommand extends Command {
await interaction.reply({ content: `<@${user.id}>`, embeds: [hugEmbed], fetchReply: true }); await interaction.reply({ content: `<@${user.id}>`, embeds: [hugEmbed], fetchReply: true });
} }
} }
export default HugCommand;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { MessageEmbed } from 'discord.js'; import { MessageEmbed } from 'discord.js';
import { Kill } from '../../utils/gifs'; import { Kill } from '../../utils/gifs';
export class KillCommand extends Command { class KillCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -64,3 +64,5 @@ export class KillCommand extends Command {
await interaction.reply({ content: `<@${user.id}>`, embeds: [killEmbed], fetchReply: true }); await interaction.reply({ content: `<@${user.id}>`, embeds: [killEmbed], fetchReply: true });
} }
} }
export default KillCommand;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { MessageEmbed } from 'discord.js'; import { MessageEmbed } from 'discord.js';
import { Poke } from '../../utils/gifs'; import { Poke } from '../../utils/gifs';
export class PokeCommand extends Command { class PokeCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -65,3 +65,5 @@ export class PokeCommand extends Command {
await interaction.reply({ content: `<@${user.id}>`, embeds: [pokeEmbed], fetchReply: true }); await interaction.reply({ content: `<@${user.id}>`, embeds: [pokeEmbed], fetchReply: true });
} }
} }
export default PokeCommand;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { MessageEmbed } from 'discord.js'; import { MessageEmbed } from 'discord.js';
import { Sad } from '../../utils/gifs'; import { Sad } from '../../utils/gifs';
export class SadCommand extends Command { class SadCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -61,3 +61,5 @@ export class SadCommand extends Command {
await interaction.reply({ embeds: [sadEmbed], fetchReply: true }); await interaction.reply({ embeds: [sadEmbed], fetchReply: true });
} }
} }
export default SadCommand;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { MessageEmbed } from 'discord.js'; import { MessageEmbed } from 'discord.js';
import { Shrug } from '../../utils/gifs'; import { Shrug } from '../../utils/gifs';
export class ShrugCommand extends Command { class ShrugCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -61,3 +61,5 @@ export class ShrugCommand extends Command {
await interaction.reply({ embeds: [shrugEmbed], fetchReply: true }); await interaction.reply({ embeds: [shrugEmbed], fetchReply: true });
} }
} }
export default ShrugCommand;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import type { TextChannel } from 'discord.js'; import type { TextChannel } from 'discord.js';
import IDs from '../../utils/ids'; import IDs from '../../utils/ids';
export class ToggleOpenCommand extends Command { class ToggleOpenCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -123,3 +123,5 @@ export class ToggleOpenCommand extends Command {
}); });
} }
} }
export default ToggleOpenCommand;

View File

@ -127,7 +127,7 @@ async function deactivateAllNotes(userId: string) {
} }
// Main command // Main command
export class SusCommand extends Command { class SusCommand extends Command {
public constructor(context: Command.Context) { public constructor(context: Command.Context) {
super(context, { super(context, {
name: 'sus', name: 'sus',
@ -557,3 +557,5 @@ export class SusCommand extends Command {
await userGuildMember!.roles.remove(IDs.roles.restrictions.sus); await userGuildMember!.roles.remove(IDs.roles.restrictions.sus);
} }
} }
export default SusCommand;

View File

@ -20,7 +20,7 @@
import { Command, RegisterBehavior } from '@sapphire/framework'; import { Command, RegisterBehavior } from '@sapphire/framework';
import IDs from '../../utils/ids'; import IDs from '../../utils/ids';
export class StageHostCommand extends Command { class StageHostCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -98,3 +98,5 @@ export class StageHostCommand extends Command {
}); });
} }
} }
export default StageHostCommand;

View File

@ -20,7 +20,7 @@
import { Command, RegisterBehavior } from '@sapphire/framework'; import { Command, RegisterBehavior } from '@sapphire/framework';
import IDs from '../../utils/ids'; import IDs from '../../utils/ids';
export class VegCuriousCommand extends Command { class VegCuriousCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -109,3 +109,5 @@ export class VegCuriousCommand extends Command {
}); });
} }
} }
export default VegCuriousCommand;

View File

@ -20,7 +20,7 @@
import { isMessageInstance } from '@sapphire/discord.js-utilities'; import { isMessageInstance } from '@sapphire/discord.js-utilities';
import { Command } from '@sapphire/framework'; import { Command } from '@sapphire/framework';
export class PingCommand extends Command { class PingCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -49,3 +49,5 @@ export class PingCommand extends Command {
return interaction.editReply('Failed to retrieve ping :('); return interaction.editReply('Failed to retrieve ping :(');
} }
} }
export default PingCommand;

View File

@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
import { isMessageInstance } from '@sapphire/discord.js-utilities'; import { isMessageInstance } from '@sapphire/discord.js-utilities';
import IDs from '../../utils/ids'; import IDs from '../../utils/ids';
export class purgeVerifyingCommand extends Command { class PurgeVerifyingCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) { public constructor(context: Command.Context, options: Command.Options) {
super(context, { super(context, {
...options, ...options,
@ -129,3 +129,5 @@ export class purgeVerifyingCommand extends Command {
*/ */
} }
} }
export default PurgeVerifyingCommand;

View File

@ -20,7 +20,7 @@
import type { UserError, ChatInputCommandDeniedPayload } from '@sapphire/framework'; import type { UserError, ChatInputCommandDeniedPayload } from '@sapphire/framework';
import { Listener } from '@sapphire/framework'; import { Listener } from '@sapphire/framework';
export class CommandDeniedListener extends Listener { class CommandDeniedListener extends Listener {
public constructor(context: Listener.Context, options: Listener.Options) { public constructor(context: Listener.Context, options: Listener.Options) {
super(context, { super(context, {
...options, ...options,
@ -33,3 +33,5 @@ export class CommandDeniedListener extends Listener {
return interaction.reply(error.message); return interaction.reply(error.message);
} }
} }
export default CommandDeniedListener;

View File

@ -23,7 +23,7 @@
import { Listener } from '@sapphire/framework'; import { Listener } from '@sapphire/framework';
import type { Client } from 'discord.js'; import type { Client } from 'discord.js';
export class ReadyListener extends Listener { class ReadyListener extends Listener {
public constructor(context: Listener.Context, options: Listener.Options) { public constructor(context: Listener.Context, options: Listener.Options) {
super(context, { super(context, {
...options, ...options,
@ -37,3 +37,5 @@ export class ReadyListener extends Listener {
this.container.logger.info(`Successfully logged in as ${username} (${id})`); this.container.logger.info(`Successfully logged in as ${username} (${id})`);
} }
} }
export default ReadyListener;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class CoordinatorOnlyPrecondition extends AllFlowsPrecondition { class CoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkCoordinator(message.member!); return this.checkCoordinator(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
CoordinatorOnly: never; CoordinatorOnly: never;
} }
} }
export default CoordinatorOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class DevCoordinatorOnlyPrecondition extends AllFlowsPrecondition { class DevCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkDevCoordinator(message.member!); return this.checkDevCoordinator(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
DevCoordinatorOnly: never; DevCoordinatorOnly: never;
} }
} }
export default DevCoordinatorOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class DiversityCoordinatorOnlyPrecondition extends AllFlowsPrecondition { class DiversityCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkDiversityCoordinator(message.member!); return this.checkDiversityCoordinator(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
DiversityCoordinatorOnly: never; DiversityCoordinatorOnly: never;
} }
} }
export default DiversityCoordinatorOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class EventCoordinatorOnlyPrecondition extends AllFlowsPrecondition { class EventCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkEventCoordinator(message.member!); return this.checkEventCoordinator(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
EventCoordinatorOnly: never; EventCoordinatorOnly: never;
} }
} }
export default EventCoordinatorOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class MentorCoordinatorOnlyPrecondition extends AllFlowsPrecondition { class MentorCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkMentorCoordinator(message.member!); return this.checkMentorCoordinator(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
MentorCoordinatorOnly: never; MentorCoordinatorOnly: never;
} }
} }
export default MentorCoordinatorOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class ModOnlyPrecondition extends AllFlowsPrecondition { class ModOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkMod(message.member!); return this.checkMod(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
ModOnly: never; ModOnly: never;
} }
} }
export default ModOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class PatreonOnlyPrecondition extends AllFlowsPrecondition { class PatreonOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkPatreon(message.member!); return this.checkPatreon(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
PatreonOnly: never; PatreonOnly: never;
} }
} }
export default PatreonOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class VerifierCoordinatorOnlyPrecondition extends AllFlowsPrecondition { class VerifierCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkVerifierCoordinator(message.member!); return this.checkVerifierCoordinator(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
VerifierCoordinatorOnly: never; VerifierCoordinatorOnly: never;
} }
} }
export default VerifierCoordinatorOnlyPrecondition;

View File

@ -26,7 +26,7 @@ import type {
} from 'discord.js'; } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class VerifierOnlyPrecondition extends AllFlowsPrecondition { class VerifierOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) { public override async messageRun(message: Message) {
// for message command // for message command
return this.checkVerifier(message.member!); return this.checkVerifier(message.member!);
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
VerifierOnly: never; VerifierOnly: never;
} }
} }
export default VerifierOnlyPrecondition;

View File

@ -22,7 +22,7 @@ import { container } from '@sapphire/framework';
import type { TextChannel } from 'discord.js'; import type { TextChannel } from 'discord.js';
import IDs from '../utils/ids'; import IDs from '../utils/ids';
export class StandupTask extends ScheduledTask { class StandupTask extends ScheduledTask {
public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) { public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) {
super(context, { super(context, {
...options, ...options,
@ -45,3 +45,5 @@ declare module '@sapphire/plugin-scheduled-tasks' {
cron: never; cron: never;
} }
} }
export default StandupTask;