Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #99

Open
1 task done
Grommish opened this issue Feb 10, 2025 · 0 comments
Open
1 task done

[Bug] #99

Grommish opened this issue Feb 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Grommish
Copy link

Cog

  • Defender

Describe the bug

Feb 09 23:51:02 redbot python[219895]: [2025-02-09 23:51:02] [WARNING] red.x26cogs.defender: Unexpected error in RaiderDetection
Feb 09 23:51:02 redbot python[219895]: Traceback (most recent call last):
Feb 09 23:51:02 redbot python[219895]:   File "/home/redbot/.local/share/Red-DiscordBot/data/ninjabot/cogs/CogManager/cogs/defender/core/events.py", line 127, in on_me>
Feb 09 23:51:02 redbot python[219895]:     expelled = await self.detect_raider(message)
Feb 09 23:51:02 redbot python[219895]:   File "/home/redbot/.local/share/Red-DiscordBot/data/ninjabot/cogs/CogManager/cogs/defender/core/automodules.py", line 257, in >
Feb 09 23:51:02 redbot python[219895]:     await self.create_modlog_case(
Feb 09 23:51:02 redbot python[219895]:   File "/home/redbot/.local/share/Red-DiscordBot/data/ninjabot/cogs/CogManager/cogs/defender/defender.py", line 669, in create_m>
Feb 09 23:51:02 redbot python[219895]:     await modlog.create_case(
Feb 09 23:51:02 redbot python[219895]:   File "/home/redbot/redenv/lib/python3.10/site-packages/redbot/core/modlog.py", line 985, in create_case
Feb 09 23:51:02 redbot python[219895]:     raise ValueError(f"{action_type} is not a valid action type.")
Feb 09 23:51:02 redbot python[219895]: ValueError: punish is not a valid action type.

To Reproduce
Steps to reproduce the behavior:

  1. Issue command '!dset rd action punish'
  2. Raiderdetection gets triggered by spammer
  3. See error

Expected behavior
User should be punished as expected

This was on Red 3.5.15, but all cogs were up-to-date. Have since updated to 3.5.16, but haven't had a spammer trigger RD yet.

@Grommish Grommish added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants