mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 08:34:15 +02:00
fix(arabot): fix eslint issues with exporting
This commit is contained in:
parent
75f669ac56
commit
8db488bc9d
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { MessageEmbed } from 'discord.js';
|
||||
import { N1984 } from '../../utils/gifs';
|
||||
|
||||
export class N1984Command extends Command {
|
||||
class N1984Command extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -63,3 +63,5 @@ export class N1984Command extends Command {
|
||||
await interaction.reply({ embeds: [n1984Embed], fetchReply: true });
|
||||
}
|
||||
}
|
||||
|
||||
export default N1984Command;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { MessageEmbed } from 'discord.js';
|
||||
import { Happy } from '../../utils/gifs';
|
||||
|
||||
export class HappyCommand extends Command {
|
||||
class HappyCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -60,3 +60,5 @@ export class HappyCommand extends Command {
|
||||
await interaction.reply({ embeds: [happyEmbed], fetchReply: true });
|
||||
}
|
||||
}
|
||||
|
||||
export default HappyCommand;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { MessageEmbed } from 'discord.js';
|
||||
import { Hugs } from '../../utils/gifs';
|
||||
|
||||
export class HugCommand extends Command {
|
||||
class HugCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -65,3 +65,5 @@ export class HugCommand extends Command {
|
||||
await interaction.reply({ content: `<@${user.id}>`, embeds: [hugEmbed], fetchReply: true });
|
||||
}
|
||||
}
|
||||
|
||||
export default HugCommand;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { MessageEmbed } from 'discord.js';
|
||||
import { Kill } from '../../utils/gifs';
|
||||
|
||||
export class KillCommand extends Command {
|
||||
class KillCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -64,3 +64,5 @@ export class KillCommand extends Command {
|
||||
await interaction.reply({ content: `<@${user.id}>`, embeds: [killEmbed], fetchReply: true });
|
||||
}
|
||||
}
|
||||
|
||||
export default KillCommand;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { MessageEmbed } from 'discord.js';
|
||||
import { Poke } from '../../utils/gifs';
|
||||
|
||||
export class PokeCommand extends Command {
|
||||
class PokeCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -65,3 +65,5 @@ export class PokeCommand extends Command {
|
||||
await interaction.reply({ content: `<@${user.id}>`, embeds: [pokeEmbed], fetchReply: true });
|
||||
}
|
||||
}
|
||||
|
||||
export default PokeCommand;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { MessageEmbed } from 'discord.js';
|
||||
import { Sad } from '../../utils/gifs';
|
||||
|
||||
export class SadCommand extends Command {
|
||||
class SadCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -61,3 +61,5 @@ export class SadCommand extends Command {
|
||||
await interaction.reply({ embeds: [sadEmbed], fetchReply: true });
|
||||
}
|
||||
}
|
||||
|
||||
export default SadCommand;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { MessageEmbed } from 'discord.js';
|
||||
import { Shrug } from '../../utils/gifs';
|
||||
|
||||
export class ShrugCommand extends Command {
|
||||
class ShrugCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -61,3 +61,5 @@ export class ShrugCommand extends Command {
|
||||
await interaction.reply({ embeds: [shrugEmbed], fetchReply: true });
|
||||
}
|
||||
}
|
||||
|
||||
export default ShrugCommand;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import type { TextChannel } from 'discord.js';
|
||||
import IDs from '../../utils/ids';
|
||||
|
||||
export class ToggleOpenCommand extends Command {
|
||||
class ToggleOpenCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -123,3 +123,5 @@ export class ToggleOpenCommand extends Command {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default ToggleOpenCommand;
|
||||
|
@ -127,7 +127,7 @@ async function deactivateAllNotes(userId: string) {
|
||||
}
|
||||
|
||||
// Main command
|
||||
export class SusCommand extends Command {
|
||||
class SusCommand extends Command {
|
||||
public constructor(context: Command.Context) {
|
||||
super(context, {
|
||||
name: 'sus',
|
||||
@ -557,3 +557,5 @@ export class SusCommand extends Command {
|
||||
await userGuildMember!.roles.remove(IDs.roles.restrictions.sus);
|
||||
}
|
||||
}
|
||||
|
||||
export default SusCommand;
|
||||
|
@ -20,7 +20,7 @@
|
||||
import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import IDs from '../../utils/ids';
|
||||
|
||||
export class StageHostCommand extends Command {
|
||||
class StageHostCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -98,3 +98,5 @@ export class StageHostCommand extends Command {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default StageHostCommand;
|
||||
|
@ -20,7 +20,7 @@
|
||||
import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import IDs from '../../utils/ids';
|
||||
|
||||
export class VegCuriousCommand extends Command {
|
||||
class VegCuriousCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -109,3 +109,5 @@ export class VegCuriousCommand extends Command {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default VegCuriousCommand;
|
||||
|
@ -20,7 +20,7 @@
|
||||
import { isMessageInstance } from '@sapphire/discord.js-utilities';
|
||||
import { Command } from '@sapphire/framework';
|
||||
|
||||
export class PingCommand extends Command {
|
||||
class PingCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -49,3 +49,5 @@ export class PingCommand extends Command {
|
||||
return interaction.editReply('Failed to retrieve ping :(');
|
||||
}
|
||||
}
|
||||
|
||||
export default PingCommand;
|
||||
|
@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework';
|
||||
import { isMessageInstance } from '@sapphire/discord.js-utilities';
|
||||
import IDs from '../../utils/ids';
|
||||
|
||||
export class purgeVerifyingCommand extends Command {
|
||||
class PurgeVerifyingCommand extends Command {
|
||||
public constructor(context: Command.Context, options: Command.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -129,3 +129,5 @@ export class purgeVerifyingCommand extends Command {
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
export default PurgeVerifyingCommand;
|
||||
|
@ -20,7 +20,7 @@
|
||||
import type { UserError, ChatInputCommandDeniedPayload } 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) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -33,3 +33,5 @@ export class CommandDeniedListener extends Listener {
|
||||
return interaction.reply(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
export default CommandDeniedListener;
|
||||
|
@ -23,7 +23,7 @@
|
||||
import { Listener } from '@sapphire/framework';
|
||||
import type { Client } from 'discord.js';
|
||||
|
||||
export class ReadyListener extends Listener {
|
||||
class ReadyListener extends Listener {
|
||||
public constructor(context: Listener.Context, options: Listener.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -37,3 +37,5 @@ export class ReadyListener extends Listener {
|
||||
this.container.logger.info(`Successfully logged in as ${username} (${id})`);
|
||||
}
|
||||
}
|
||||
|
||||
export default ReadyListener;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class CoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class CoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkCoordinator(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
CoordinatorOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default CoordinatorOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class DevCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class DevCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkDevCoordinator(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
DevCoordinatorOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default DevCoordinatorOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class DiversityCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class DiversityCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkDiversityCoordinator(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
DiversityCoordinatorOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default DiversityCoordinatorOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class EventCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class EventCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkEventCoordinator(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
EventCoordinatorOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default EventCoordinatorOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class MentorCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class MentorCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkMentorCoordinator(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
MentorCoordinatorOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default MentorCoordinatorOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class ModOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class ModOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkMod(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
ModOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default ModOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class PatreonOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class PatreonOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkPatreon(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
PatreonOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default PatreonOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class VerifierCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class VerifierCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkVerifierCoordinator(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
VerifierCoordinatorOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default VerifierCoordinatorOnlyPrecondition;
|
||||
|
@ -26,7 +26,7 @@ import type {
|
||||
} from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class VerifierOnlyPrecondition extends AllFlowsPrecondition {
|
||||
class VerifierOnlyPrecondition extends AllFlowsPrecondition {
|
||||
public override async messageRun(message: Message) {
|
||||
// for message command
|
||||
return this.checkVerifier(message.member!);
|
||||
@ -54,3 +54,5 @@ declare module '@sapphire/framework' {
|
||||
VerifierOnly: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default VerifierOnlyPrecondition;
|
||||
|
@ -22,7 +22,7 @@ import { container } from '@sapphire/framework';
|
||||
import type { TextChannel } from 'discord.js';
|
||||
import IDs from '../utils/ids';
|
||||
|
||||
export class StandupTask extends ScheduledTask {
|
||||
class StandupTask extends ScheduledTask {
|
||||
public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) {
|
||||
super(context, {
|
||||
...options,
|
||||
@ -45,3 +45,5 @@ declare module '@sapphire/plugin-scheduled-tasks' {
|
||||
cron: never;
|
||||
}
|
||||
}
|
||||
|
||||
export default StandupTask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user