| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2021-03-01 | Provide default cache values when syncing | -2/+2 | ||
| 2021-03-01 | Change to handle specifically redis errors | -11/+15 | ||
| The idea to ignore alerts on fake redis didn't solve the problem completely, because sometimes you'll just develop with a real redis. It also didn't solve the ping we would get on first start up. After looking into it there seems like there's no actual reason to alert on key errors, as they should only happen if the cache gets wiped for some reason, which shouldn't happen, but in which case we have bigger issues. Alerts are therefore limited to connection errors raised by redis. This additionally handles only redis errors when writing to it as well. If any other error is raised it is ok for the function to stop at that point, as all variables have already been set. The only thing which doesn't get executed is the confirmation message and logging, the lack of which is an exception message in itself. | ||||
| 2021-02-26 | Sync alert won't trigger with fake redis | -5/+6 | ||
| The alert will trigger with fake redis on every bot startup even when people aren't working on the defcon cog. Added a condition to check if fake redis is being used. | ||||
| 2021-02-26 | Changed name of _duration_parser constant to uppercase | -2/+2 | ||
| 2021-02-26 | Supressing any exceptions while updating the threshold in redis | -6/+8 | ||
| Updating redis might cause an error, making sure it doesn't stop the command mid-way | ||||
| 2021-02-19 | Retain 'd' alias for threshold command | -1/+1 | ||
| 2021-02-19 | Error to load settings will send the traceback to the channel | -0/+2 | ||
| 2021-02-17 | Threshold has false-y value when set to 0 | -15/+20 | ||
| 2021-02-17 | Error loading settings will also ping devops role | -1/+5 | ||
| 2021-02-17 | Gave more meaningful name and description to the cache | -5/+8 | ||
| 2021-02-17 | Changed server command to work with new defcon cog | -6/+7 | ||
| 2021-02-14 | Renamed _defcon_action to _update_threshold and updated docstring | -4/+4 | ||
| 2021-02-14 | Removed cog check, shutdown restricted to admins | -4/+5 | ||
| 2021-02-14 | _update_channel_topic not longer needs to be awaited | -3/+3 | ||
| It's important to note that it's appropriate for the sync and action methods to have a lock between them, because if an action is made before syncing is complete it gets screwed and starts throwing excpetion for every command. | ||||
| 2021-02-13 | Prevent channel description edit from locking commands | -1/+2 | ||
| Because some parts are defined as atomic transaction, we can't use them with channel description edits which are heavily rate limited. Description edits are now run in a separate task. | ||||
| 2021-02-13 | Status command displays verification level | -0/+1 | ||
| 2021-02-13 | Fixed on_message | -8/+11 | ||
| 2021-02-13 | Add option to schedule threshold reset | -16/+46 | ||
| Added optional argument to defcon threshold to specify for how long it should be on. The notifier will now run only when there is no expiry date specified. | ||||
| 2021-02-13 | Defcon days is now defcon threshold with DurationDelta | -41/+84 | ||
| 2021-02-13 | Added cog check to only allow mods in the defcon channel | -5/+4 | ||
| 2021-02-13 | Removed _build_defcon_message method | -24/+15 | ||
| 2021-02-13 | Added server shutdown and reopen commands | -2/+24 | ||
| 2021-02-13 | Reordered methods | -18/+18 | ||
| 2021-02-13 | Removed enabling and switched to redis | -132/+65 | ||
| Removing self.enable and the defon & defoff commands. Defcon will now just be always 'on' and we can set the days threshold to 0 to turn it off. Switched from postgres to redis - if the data gets lost we should just reconfigure defcon again, it should not depend on the site. | ||||
| 2021-01-26 | Defon doesn't reset the number of days | -1/+1 | ||
| 2021-01-26 | Added cog unloader to cancel notifier | -0/+8 | ||
| 2021-01-26 | Moved channel topic change to _defcon_action | -3/+1 | ||
| 2021-01-26 | Moved self.enabled update to _defcon_action | -9/+6 | ||
| 2021-01-26 | Make the cog update even if write to DB fails | -3/+3 | ||
| The defcon cog should be functional even if there is some issue with writing to the DB for some reason. The functionality should have retention across restarts, but it shouldn't be its failing point. If necessary, it should be able to work with no DB at all | ||||
| 2021-01-25 | Update `is_helper_viewable` check | -2/+2 | ||
| 2021-01-25 | Removed the blank lines from __init__ function | -1/+0 | ||
| 2021-01-25 | Removed the import of helper interpreter | -1/+0 | ||
| 2021-01-25 | Removed self.interpreter from internal cog, and deleted the interpreter ↵ | -52/+0 | ||
| helper file | ||||
| 2021-01-24 | Fixed python_general const in server command | -1/+1 | ||
| 2021-01-24 | Reorganizes constants.py | -98/+111 | ||
| Mirrors the changes from config-default.yml to constants.py. | ||||
| 2021-01-24 | Reorganizes Config | -92/+90 | ||
| 2021-01-24 | Remove redundant parenthesis. | -3/+3 | ||
| 2021-01-23 | Handle unloaded cogs when retrieving server info. | -9/+16 | ||
| 2021-01-23 | Reduce unnecessary line splits and parameters. | -12/+6 | ||
| 2021-01-23 | Use helper function to determine mod channel. | -1/+1 | ||
| 2021-01-23 | Extract `is_staff_channel` to a utility function. | -18/+19 | ||
| 2021-01-22 | Do `is_helper_viewable` check before fetching message | -3/+3 | ||
| 2021-01-22 | Use the SVG badge on the README | -1/+1 | ||
| 2021-01-22 | Update badges on the README file | -4/+3 | ||
| 2021-01-21 | Fix aliases of shadow tempban | -1/+1 | ||
| 2021-01-21 | Added slowmode tracking to dpy and ot0 | -2/+12 | ||
| 2021-01-21 | Changed slowmode reset tests | -12/+4 | ||
| 2021-01-21 | Added slowmode stat for python-general. | -4/+8 | ||
| 2021-01-21 | Slowmode reset now uses slowmode set | -10/+1 | ||
| 2021-01-20 | Make type hints uniform across file | -2/+2 | ||