Skip to content

Commit

Permalink
fix bump notifications i think
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Oct 29, 2024
1 parent 69f37c0 commit ec9ee3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devdenbot",
"version": "8.4.0",
"version": "8.4.1",
"type": "module",
"main": "src/index.ts",
"engines": {
Expand Down
9 changes: 8 additions & 1 deletion src/modules/core/bump.listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ import {logger} from "../../logging.js";
import {config} from "../../Config.js";

export const BumpListener: EventListener = {
interactionCreate: async (client, message) => {

},
messageCreate: async (client, message) => {
const interaction = message.interactionMetadata


if (!interaction || !(interaction.type == InteractionType.ApplicationCommand)) return
if (interaction.id != '947088344167366698') return // /bump id
if (message.author.id != '302050872383242240') return // /disboard user id
// noinspection JSDeprecatedSymbols dont think theres another way of doing this
if (message.interaction?.commandName !== 'bump') return

// since the bump failed message is ephemeral, we know if we can see the message then the bump succeeded!
const ddUser = await getOrCreateUserById(BigInt(message.author.id))
Expand Down

0 comments on commit ec9ee3f

Please sign in to comment.