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:
- Set bump channel using
/setbumpchannel
- Run
/bump in that channel
- Run
/leaderboard or /mybumps
- 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.