Skip to content

BumpLeaderboard cog not detecting /bump command — leaderboard and stats not updating #17

@youngcoder45

Description

@youngcoder45

The new BumpLeaderboard cog is not detecting when the /bump command is executed in the configured bump channel. Because of this, bumps are never recorded and the leaderboard and stats commands become useless.

Problem:
When a user runs /bump in the bump channel, the bot should increment the user's bump count and update the stored data. However, the event listener does not seem to catch the bump action.

Current Behavior:

  • /bump command runs normally (from the bump bot / system)
  • The cog does not detect the bump
  • No bump count is added
  • /leaderboard shows no data
  • /mybumps always returns 0 or no bumps recorded

Expected Behavior:

  • When /bump is executed in the configured channel
  • The bot should detect it
  • Increment the user's bump count
  • Save the update to the data file
  • Leaderboard and stats commands should reflect the change

Possible Cause:
The listener currently checks:

if message.content.startswith("/bump"):

But slash commands typically do not appear in message content, which may be why the event is never triggered.

Environment:

  • Library: disnake
  • Cog: BumpLeaderboard
  • Python version: (add version here)

Steps to Reproduce:

  1. Set bump channel using /setbumpchannel
  2. Run /bump in that channel
  3. Run /leaderboard or /mybumps
  4. Observe that no bumps were recorded

Additional Notes:
It may require detecting:

  • interaction events
  • the DISBOARD bot message
  • or another trigger instead of message.content.

Any help fixing the bump detection logic would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions