aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deploy-azure.sh (unfollow)
Commit message (Collapse)AuthorLines
2019-09-14Adds a !nominees alias.Gravatar Leon Sandøy-0/+8
This invokes the `!nomination list` command, showing all currently nominated users.
2019-09-14Improvements to the Wolfram cog.Gravatar Leon Sandøy-7/+27
This commit adds clearer error messages for all the errors produced by the Wolfram cog if the API key is missing in the config, or if the key isn't valid anymore. It also humanizes the timedelta returned in the error users get when they run out their cooldown. Instead of telling them they need to wait 84000 seconds, it will now tell them they need to wait 23 hours, 59 minutes ...
2019-09-14Make 'post_infraction' catch the right exceptionGravatar Sebastiaan Zeeff-11/+17
The internal 'api' of our API client has changed: It raises a custom RespondeCodeError instead of an `aiohttp.ClientError` when an API was not successful. I updated this utility function to catch the right exception and added handling for unknown users by notifying the user of that problem directly.
2019-09-14Add API response dict to ResponseCodeErrorGravatar Sebastiaan Zeeff-8/+14
The ReponseCodeError held a reference to `aiohttp.ResonseObject` to make sure the response data was available. However, the response data is not actually included in the Response Object, but needs to be awaited. Unfortunately, the ResponseCodeError is usually inspected after the connection has been closed, triggering a ClientConnectionError when the data was retrieved. I solved this by adding the awaited reponse data directly to our custom exception by awaiting the response.json() before raising the exception.
2019-09-13Add error handlers for more command exceptionsGravatar MarkKoz-5/+10
MissingPermissions, CheckFailure, DisabledCommand, and CommandOnCooldown will now have a simple message logged. * Log BotMissingPermissions and remove sending missing permissions as a message
2019-09-13Fix one-off error in the !clean commandGravatar Sebastiaan Zeeff-1/+2
https://github.com/python-discord/bot/issues/413 The message indexing phase of the `!clean` did not account for the presence of the invocation message, resulting in a one-off error in the amount of messages being indexed. Fixed it by adding one to the amount of messages we index from the message history. Closes #413
2019-09-13Fix bugs and inconsistencies in moderation cogGravatar Sebastiaan Zeeff-154/+149
Recent changes and updates to the moderation cog introduced some inconsistencies that were causing bugs or differences in behavior between very similar commands. I've remedied the problems by: - Consistently making sure we stop if a post_infraction API call fails; - Factoring out the check for active infractions to a utility function; - Updating commands that expected a pre-migration API response format. In addition, I've also added function annotations.
2019-09-12Update bot cog with recent changes.Gravatar Sebastiaan Zeeff-2/+4
The bot cog was not updated with recent changes to our community, so I've: - Updated the links in the about embed to GitHub; - Added help-6 and help-7 to the codeblock detection.
2019-09-12Add help-6 and help-7 to constantsGravatar Sebastiaan Zeeff-0/+4
We never added channel IDs for the new help channels to the constants after adding them, so I'm adding them in.
2019-09-12Fix AntiSpam incorrectly invoking tempmute.Gravatar Sebastiaan Zeeff-2/+5
https://github.com/python-discord/bot/issues/400 The AntiSpam punish method incorrectly invoked the tempmute command, as it provided an unconverted duration argument. Since direct invocation of commands bypasses converters, the conversion of the duration string to a datetime object is now done manually. Closes #400
2019-09-12Fixed incorrect API request field in superstarifyGravatar Sebastiaan Zeeff-1/+1
https://github.com/python-discord/bot/issues/409 The superstarify cog specified an incorrect infraction type in the API request in the on_member_join event listener. I've fixed it by giving it the correct infraction type, 'superstar'. closes #409
2019-09-12Fixed AntiSpam cog reload bugGravatar Sebastiaan Zeeff-6/+3
https://github.com/python-discord/bot/issues/411 The AntiSpam code suffered from a bug where the attribute self.muted_role was not defined after reloading the cog. The bug was caused by the cog setting the attribute in on_ready instead of directly in __init__. Fixed by setting the attribute in the __init__. Closes #411
2019-09-03Remove pydocstyle pinning now that flake8-docstrings is fixedGravatar sco1-145/+146
2019-09-03Use pipenv lint script for pre-commit hookGravatar S. Co1-10/+8
2019-09-03Update contrib doc for allowing edits from maintainersGravatar S. Co1-0/+3
2019-08-26Do not send log messages below DEBUG to the site.Gravatar Johannes Christ-6/+14
2019-08-23Changing deleted messages log to point at staff-subdomainGravatar Sebastiaan Zeeff-1/+2
2019-08-23Changing logging interpolation style to f-stringsGravatar Sebastiaan Zeeff-4/+3
2019-08-16Incorporating Mark's feedback on return annotationsGravatar Sebastiaan Zeeff-11/+15
2019-08-16Kaizen: Change all string concats to f-stringsGravatar Sebastiaan Zeeff-7/+7
2019-08-16Adding missing function annotationsGravatar Sebastiaan Zeeff-14/+14
2019-08-15Updating role sync tests for position and adding tests for deletion detectionGravatar Sebastiaan Zeeff-21/+60
2019-08-15Adding support for storing role positions and deleting rolesGravatar Sebastiaan Zeeff-27/+51
2019-08-14Add a site logging handler.Gravatar Johannes Christ-2/+80
2019-08-14Remove fun cogGravatar kosayoda-54/+0
2019-08-05Blame Mark.Gravatar Johannes Christ-1/+1
2019-08-05Be more helpful.Gravatar Johannes Christ-0/+1
2019-08-05Fix typo in bot/cogs/error_handler.py. Gravatar Johannes Christ-1/+1
Originally authored by @MarkKoz. Co-Authored-By: Mark <[email protected]>
2019-08-05Suppress response code errors on tag reinvoke.Gravatar Johannes Christ-1/+3
2019-08-05Finalize error handling.Gravatar Johannes Christ-12/+15
2019-08-05Update code to make use of the new `ResponseCodeError`.Gravatar Johannes Christ-18/+22
2019-08-04Raise specific exception for non-200s.Gravatar Johannes Christ-9/+21
2019-07-28Handle more API status codes.Gravatar Johannes Christ-1/+5
2019-07-28Move error handling to more descriptive `ErrorHandler` cog.Gravatar Johannes Christ-18/+14
2019-07-28Drop user updating from `events` cog.Gravatar Johannes Christ-203/+0
2019-07-28Revert 4d35f8f7137edb97e1124fa9087bd86399398047.Gravatar Johannes Christ-0/+286
2019-07-16Remove unused importGravatar MarkKoz-1/+0
2019-07-06moving over the communities to whitelist from master.Gravatar Leon Sandøy-0/+7
2019-07-06Whitelisting the kivy discord server from our filtersGravatar Leon Sandøy-0/+1
2019-07-05Apply suggestions from code reviewGravatar Sebastiaan Zeeff-2/+2
Co-Authored-By: Mark <[email protected]>
2019-07-04Changing class-level docstring of TalentPool class to be consistent with the ↵Gravatar SebastiaanZ-1/+1
BigBrother class
2019-07-04Adding correct docstring to TalentPool edit group method; adding periods to ↵Gravatar SebastiaanZ-5/+5
docstrings in the WatchChannel ABC
2019-07-04Applying docstring suggestionsGravatar Sebastiaan Zeeff-8/+8
Co-Authored-By: Mark <[email protected]>
2019-07-04Replacing BigBrother by TalentPool in TalentPool docstringsGravatar SebastiaanZ-4/+4
2019-07-04Removing unused importGravatar SebastiaanZ-1/+1
2019-07-04Fixing bug with misnamed MessageHistory attribute message_count in if-statementGravatar SebastiaanZ-1/+1
2019-07-04Removing the iter/unpacking support on dataclass in favour of multiline ifGravatar SebastiaanZ-5/+5
2019-07-03Removing redundant self.__class__.__name__ occurrencesGravatar Sebastiaan Zeeff-4/+4
Co-Authored-By: Mark <[email protected]>
2019-07-03Update bot/cogs/watchchannels/watchchannel.pyGravatar Sebastiaan Zeeff-1/+1
Co-Authored-By: Mark <[email protected]>
2019-07-03Removing last embed responses and unused importsGravatar SebastiaanZ-11/+3