Twentysix26 / x26-Cogs

General purpose cogs for Red V3
GNU General Public License v3.0
41 stars 30 forks source link

[Bug] Warden Rule Upload Error Locks the Command #80

Open EternalllZM opened 8 months ago

EternalllZM commented 8 months ago

Cog

Describe the bug If you produce an error when interacting with the def warden upload command, it can get stuck and prevent you from using it, giving the message This command is on cooldown. Try again in a day., where quit does not refresh it and the only presumable resolution is reloading the cog (not ideal with the way it's designed)

To Reproduce Steps to reproduce the behavior:

  1. Issue command def warden upload
  2. Upload a rule that would cause the command to error Error in command 'defender warden upload'.
  3. Attempt to run the command again def warden upload
  4. Receive error message This command is on cooldown. Try again in a day.

Expected behavior Command should properly reset and not lock the operator out for presumably over a day.