| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Provide default cache values when syncing | 2021-03-01 | -2/+2 | |
| | | ||||
| * | Change to handle specifically redis errors | 2021-03-01 | -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. | |||
| * | Sync alert won't trigger with fake redis | 2021-02-26 | -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. | |||
| * | Changed name of _duration_parser constant to uppercase | 2021-02-26 | -2/+2 | |
| | | ||||
| * | Supressing any exceptions while updating the threshold in redis | 2021-02-26 | -6/+8 | |
| | | | | | Updating redis might cause an error, making sure it doesn't stop the command mid-way | |||
| * | Retain 'd' alias for threshold command | 2021-02-19 | -1/+1 | |
| | | ||||
| * | Error to load settings will send the traceback to the channel | 2021-02-19 | -0/+2 | |
| | | ||||
| * | Threshold has false-y value when set to 0 | 2021-02-17 | -15/+20 | |
| | | ||||
| * | Error loading settings will also ping devops role | 2021-02-17 | -1/+5 | |
| | | ||||
| * | Gave more meaningful name and description to the cache | 2021-02-17 | -5/+8 | |
| | | ||||
| * | Changed server command to work with new defcon cog | 2021-02-17 | -6/+7 | |
| | | ||||
| * | Renamed _defcon_action to _update_threshold and updated docstring | 2021-02-14 | -4/+4 | |
| | | ||||
| * | Removed cog check, shutdown restricted to admins | 2021-02-14 | -4/+5 | |
| | | ||||
| * | _update_channel_topic not longer needs to be awaited | 2021-02-14 | -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. | |||
| * | Prevent channel description edit from locking commands | 2021-02-13 | -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. | |||
| * | Status command displays verification level | 2021-02-13 | -0/+1 | |
| | | ||||
| * | Fixed on_message | 2021-02-13 | -8/+11 | |
| | | ||||
| * | Add option to schedule threshold reset | 2021-02-13 | -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. | |||
| * | Defcon days is now defcon threshold with DurationDelta | 2021-02-13 | -41/+84 | |
| | | ||||
| * | Added cog check to only allow mods in the defcon channel | 2021-02-13 | -5/+4 | |
| | | ||||
| * | Removed _build_defcon_message method | 2021-02-13 | -24/+15 | |
| | | ||||
| * | Added server shutdown and reopen commands | 2021-02-13 | -2/+24 | |
| | | ||||
| * | Reordered methods | 2021-02-13 | -18/+18 | |
| | | ||||
| * | Removed enabling and switched to redis | 2021-02-13 | -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. | |||
| * | Defon doesn't reset the number of days | 2021-01-26 | -1/+1 | |
| | | ||||
| * | Merge branch 'mbaruh/defcon' of https://github.com/python-discord/bot into ↵ | 2021-01-26 | -3222/+4337 | |
| |\ | | | | | | | mbaruh/defcon | |||
| | * | Merge branch 'master' into mbaruh/defcon | 2021-01-26 | -3222/+4337 | |
| | |\ | ||||
| | | * | Merge pull request #1372 from anand2312/duckpond-check | 2021-01-26 | -3/+18 | |
| | | |\ | | | | | | | | | Duckpond check | |||
| | | | * | Merge branch 'master' into duckpond-check | 2021-01-26 | -555/+599 | |
| | | | |\ | | | |/ | | |/| | ||||
| | | * | | Merge pull request #1380 from HassanAbouelela/alphabetize-config | 2021-01-26 | -190/+201 | |
| | | |\ \ | | | | | | | | | | | Alphabetize Configs | |||
| | | | * \ | Merge remote-tracking branch 'origin/master' into alphabetize-config | 2021-01-26 | -359/+381 | |
| | | | |\ \ | | | |/ / | | |/| | | ||||
| | | * | | | Merge pull request #1383 from Inheritanc-e/remove_interpreter | 2021-01-25 | -54/+0 | |
| | | |\ \ \ | | | | | | | | | | | | | Removed helper interpreter. | |||
| | | | * | | | Removed the blank lines from __init__ function | 2021-01-25 | -1/+0 | |
| | | | | | | | ||||
| | | | * | | | Removed the import of helper interpreter | 2021-01-25 | -1/+0 | |
| | | | | | | | ||||
| | | | * | | | Removed self.interpreter from internal cog, and deleted the interpreter ↵ | 2021-01-25 | -52/+0 | |
| | | |/ / / | | | | | | | | | | | | | | | | helper file | |||
| | | * | | | Fixed python_general const in server command | 2021-01-24 | -1/+1 | |
| | | | | | | ||||
| | | * | | | Merge pull request #1166 from python-discord/feat/info/server-cmd-enhancements | 2021-01-24 | -81/+100 | |
| | | |\ \ \ | | | | | | | | | | | | | Enhance the !server command. | |||
| | | | * \ \ | Merge branch 'master' into feat/info/server-cmd-enhancements | 2021-01-23 | -0/+26 | |
| | | | |\ \ \ | | | |/ / / | | |/| | | | ||||
| | | * | | | | Merge pull request #1344 from ChrisLovering/new-env-tag | 2021-01-23 | -0/+26 | |
| | | |\ \ \ \ | | | | | | | | | | | | | | | Add new tag to explain python environments | |||
| | | | * \ \ \ | Merge branch 'master' into new-env-tag | 2021-01-23 | -1065/+1354 | |
| | | | |\ \ \ \ | | | |/ / / / | | |/| | | | | ||||
| | | | * | | | | Remove incorrect point | 2021-01-20 | -1/+0 | |
| | | | | | | | | ||||
| | | | * | | | | Apply suggestions from code review | 2021-01-20 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Grammar Co-authored-by: Mark <[email protected]> | |||
| | | | * | | | | Add a section on why to use a virtual env | 2021-01-19 | -3/+12 | |
| | | | | | | | | ||||
| | | | * | | | | Fix url | 2021-01-19 | -1/+1 | |
| | | | | | | | | ||||
| | | | * | | | | grammar and spelling fixes | 2021-01-19 | -18/+18 | |
| | | | | | | | | ||||
| | | | * | | | | Merge branch 'new-env-tag' of github.com:ChrisLovering/bot into new-env-tag | 2020-12-31 | -0/+0 | |
| | | | |\ \ \ \ | ||||
| | | | | * | | | | Fix linting by adding new line at eof | 2020-12-31 | -1/+1 | |
| | | | | | | | | | ||||
| | | | | * | | | | First draft of env explaintions | 2020-12-31 | -0/+18 | |
| | | | | | | | | | ||||
| | | | * | | | | | First draft of env explaintions | 2020-12-31 | -0/+18 | |
| | | | |/ / / / | ||||
| | | | | * | | | Remove redundant parenthesis. | 2021-01-24 | -3/+3 | |
| | | | | | | | | ||||
