diff options
Diffstat (limited to 'src/listeners')
-rw-r--r-- | src/listeners/client/readyListener.ts (renamed from src/listeners/client/ready.ts) | 2 | ||||
-rw-r--r-- | src/listeners/client/syncSlashCommandsListener.ts (renamed from src/listeners/client/syncslashcommands.ts) | 4 | ||||
-rw-r--r-- | src/listeners/commands/commandBlockedListener.ts (renamed from src/listeners/commands/commandblocked.ts) | 0 | ||||
-rw-r--r-- | src/listeners/commands/commandErrorListener.ts (renamed from src/listeners/commands/error.ts) | 0 | ||||
-rw-r--r-- | src/listeners/commands/commandStartedListener.ts (renamed from src/listeners/commands/commandstarted.ts) | 0 | ||||
-rw-r--r-- | src/listeners/commands/slashCommandErrorListener.ts (renamed from src/listeners/commands/slashError.ts) | 2 | ||||
-rw-r--r-- | src/listeners/guild/syncUnbanListener.ts (renamed from src/listeners/guild/syncunban.ts) | 2 | ||||
-rw-r--r-- | src/listeners/message/levelListener.ts (renamed from src/listeners/message/levels.ts) | 1 |
8 files changed, 6 insertions, 5 deletions
diff --git a/src/listeners/client/ready.ts b/src/listeners/client/readyListener.ts index b13dd36..8d4ac6a 100644 --- a/src/listeners/client/ready.ts +++ b/src/listeners/client/readyListener.ts @@ -1,7 +1,7 @@ import chalk from 'chalk'; import { BushListener } from '../../lib/extensions/BushListener'; -export default class CommandBlockedListener extends BushListener { +export default class ReadyListener extends BushListener { public constructor() { super('ready', { emitter: 'client', diff --git a/src/listeners/client/syncslashcommands.ts b/src/listeners/client/syncSlashCommandsListener.ts index d734507..7835136 100644 --- a/src/listeners/client/syncslashcommands.ts +++ b/src/listeners/client/syncSlashCommandsListener.ts @@ -1,8 +1,8 @@ import { BushListener } from '../../lib/extensions/BushListener'; -export default class CreateSlashCommands extends BushListener { +export default class SyncSlashCommandsListener extends BushListener { constructor() { - super('createslashcommands', { + super('syncslashcommands', { emitter: 'client', event: 'ready' }); diff --git a/src/listeners/commands/commandblocked.ts b/src/listeners/commands/commandBlockedListener.ts index dee1319..dee1319 100644 --- a/src/listeners/commands/commandblocked.ts +++ b/src/listeners/commands/commandBlockedListener.ts diff --git a/src/listeners/commands/error.ts b/src/listeners/commands/commandErrorListener.ts index 518545a..518545a 100644 --- a/src/listeners/commands/error.ts +++ b/src/listeners/commands/commandErrorListener.ts diff --git a/src/listeners/commands/commandstarted.ts b/src/listeners/commands/commandStartedListener.ts index d81ed59..d81ed59 100644 --- a/src/listeners/commands/commandstarted.ts +++ b/src/listeners/commands/commandStartedListener.ts diff --git a/src/listeners/commands/slashError.ts b/src/listeners/commands/slashCommandErrorListener.ts index 3f2260d..a2b7bb7 100644 --- a/src/listeners/commands/slashError.ts +++ b/src/listeners/commands/slashCommandErrorListener.ts @@ -5,7 +5,7 @@ import { MessageEmbed } from 'discord.js'; import { TextChannel } from 'discord.js'; import { CommandInteraction } from 'discord.js'; -export default class CommandErrorListener extends BushListener { +export default class SlashCommandErrorListener extends BushListener { constructor() { super('slashError', { emitter: 'commandHandler', diff --git a/src/listeners/guild/syncunban.ts b/src/listeners/guild/syncUnbanListener.ts index b8a1419..81a08f8 100644 --- a/src/listeners/guild/syncunban.ts +++ b/src/listeners/guild/syncUnbanListener.ts @@ -2,7 +2,7 @@ import { User, Guild } from 'discord.js'; import { BushListener } from '../../lib/extensions/BushListener'; import { Ban } from '../../lib/models'; -export default class CommandBlockedListener extends BushListener { +export default class SyncUnbanListener extends BushListener { public constructor() { super('guildBanRemove', { emitter: 'client', diff --git a/src/listeners/message/levels.ts b/src/listeners/message/levelListener.ts index 3503584..3b23f36 100644 --- a/src/listeners/message/levels.ts +++ b/src/listeners/message/levelListener.ts @@ -19,6 +19,7 @@ export default class LevelListener extends BushListener { if (!this.client.config.dev && message.guild.id != '516977525906341928') return; if (this.blacklistedChannels.includes(message.channel.id)) return; + if (!['DEFAULT', 'REPLY'].includes(message.type)) return; //checks for join messages, slash commands, booster messages etc const [user] = await Level.findOrBuild({ where: { id: message.author.id |