| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2019-10-11 | Small code review fixes | -3/+2 | ||
| 2019-10-08 | Fix linting errors | -7/+8 | ||
| 2019-10-08 | Fix wrong import | -2/+1 | ||
| 2019-10-08 | Add raw command | -3/+83 | ||
| Closes #334 | ||||
| 2019-10-07 | Only allow members currently in the guild to be warned | -1/+1 | ||
| 2019-10-07 | Update the nickname policy URL | -1/+1 | ||
| Co-Authored-By: Sebastiaan Zeeff <[email protected]> | ||||
| 2019-10-06 | Update max threshold for attachments | -1/+1 | ||
| 2019-10-04 | Make categories class attributes and support descriptions | -5/+20 | ||
| * Document support for custom categories. | ||||
| 2019-10-04 | Fix error when symbol_id cannot be found in doc HTML | -0/+3 | ||
| 2019-10-04 | Adjust verbiage of totals for watch commands | -2/+2 | ||
| 2019-10-04 | Show previous watch reason and total after invoking watch command | -2/+39 | ||
| 2019-10-04 | Wait until the bot is ready before reschedule infractions | -0/+2 | ||
| 2019-10-03 | Improve readability | -0/+1 | ||
| Co-Authored-By: Mark <[email protected]> | ||||
| 2019-10-03 | Move asyncio.sleep() to avoid disturbing function signatures. | -16/+13 | ||
| 2019-10-03 | Fix rescheduling of infractions when cog is reloaded | -3/+5 | ||
| 2019-10-03 | Make warns, notes, and kicks always inactive | -4/+4 | ||
| It doesn't make sense for these types of infractions to be "active". Co-Authored-By: Sebastiaan Zeeff <[email protected]> | ||||
| 2019-10-03 | Add note instead of failure to mod log during pardon when ban not found | -2/+7 | ||
| 2019-10-03 | Check if tzinfo is None in ISODateTime test | -1/+3 | ||
| As we have decided that the converter should return naive datetime objects, we should explicitly test that datetime strings with a timezone offset are still converted to a naive datetime object. I have done this by adding a `tzinfo is None` assertion. | ||||
| 2019-10-02 | Add sleep(3) between retries, with bot indicating typing during sleep | -4/+9 | ||
| 2019-10-02 | Add logging for invalid response (after all retries are exhausted) | -1/+3 | ||
| 2019-10-02 | Mention moderators in the mod log when an infraction fails to expire | -1/+7 | ||
| 2019-10-02 | Swap arguments for post_infraction calls | -2/+2 | ||
| Co-Authored-By: Sebastiaan Zeeff <[email protected]> | ||||
| 2019-10-03 | Fix mutes not being re-applied on rejoins. | -5/+42 | ||
| 2019-10-02 | Remove __all__ definition from moderation subpackage | -3/+0 | ||
| 2019-10-02 | Rename parameters to stop shadowing type built-in | -15/+10 | ||
| Co-Authored-By: scragly <[email protected]> | ||||
| 2019-10-02 | Format duration units as a list in management doctsrings | -2/+9 | ||
| Co-Authored-By: scragly <[email protected]> | ||||
| 2019-10-02 | Format duration units as a list in infractions doctsrings | -9/+37 | ||
| Co-Authored-By: scragly <[email protected]> | ||||
| 2019-10-02 | Make ISODateTime return tz-unaware datetime | -1/+33 | ||
| The parser we use, `dateutil.parsers.isoparse` returns a timezone- aware or timezone-unaware `datetime` object depending on whether or not the datetime string included a timezone offset specification. Since we can't compare tz-aware objects to tz-unaware objects it's better to make sure our converter is consistent in the type it will return. For now, I've chosen to return tz-unaware datetime objects, since `discord.py` also returns tz-unaware datetime objects when accessing datetime-related attributes of objects. Since we're likely to compare "our" datetime objects to discord.py-provided datetime objects, I think that's the most parsimonious option for now. Note: It's probably a good idea to open a larger discussion about using timezone-aware datetime objects throughout the library to avoid a UTC-time being interpreted as localtime. This will require a broader discussion than this commit/PR allows, though. | ||||
| 2019-10-02 | Remove angle brackets from ISODateTime docstring | -1/+1 | ||
| This commit removes the angle brackets from the url in the docstring of `ISODateTime.convert`. The reason: it's ugly. | ||||
| 2019-10-02 | Apply docstring review suggestion | -1/+1 | ||
| Co-Authored-By: Mark <[email protected]> | ||||
| 2019-10-02 | Fix `cog_unload` bug in WatchChannel ABC | -1/+1 | ||
| https://github.com/python-discord/bot/issues/482 There was small bug in the `cog_unload` method of the WatchChannel ABC in `bot.cogs.watchchannels.watchchannel`. The problem was that it tries to check if the Task assigned to `self._consume_task` is done by accessing its `done` method. However, if a watch channel has not yet relayed messages after the bot has started, it will not have a consumption task yet, meaning this `_consume_task` attribute will be assigned to `None`. The solution is to change the `if` condition to: `if self._consume_task and not self._consume_task.done():` This commit closes #482 | ||||
| 2019-10-01 | Add help category for Infractions and ModManagement cogs | -8/+31 | ||
| The two cogs will be listed under the same category in the help output. | ||||
| 2019-10-01 | Use has_active_infraction util function in superstarify | -19/+15 | ||
| * Rename already_has_active_infraction to has_active_infraction * Fit some lines in utils to 100 columns | ||||
| 2019-10-01 | Add an optional icon_url parameter with a default to notify_infraction | -3/+3 | ||
| 2019-10-01 | Tidy up imports | -95/+96 | ||
| * Remove redundant discord.Colour() usage * Fix type annotation of colour parameter for modlog.send_log_message() * Use a cog check in superstarify to require moderation roles | ||||
| 2019-10-01 | Use consistent expiration format in superstarify | -3/+4 | ||
| 2019-10-01 | Move DM notification functions to moderation utils module | -110/+104 | ||
| 2019-10-01 | Add comments and improve docstrings in the infractions cog | -13/+13 | ||
| 2019-10-01 | Remove redundant cancel_expiration method and use cancel_task | -19/+9 | ||
| * Cancel the task inside deactivate_infraction | ||||
| 2019-10-01 | Ignore the default unban event in the mod log | -2/+3 | ||
| * Shorten the mod log footer for pardons | ||||
| 2019-10-01 | Fix out-of-order and missing arguments for post_infraction calls | -2/+2 | ||
| 2019-10-01 | Display username in addition to id for unmutes in mod log | -0/+1 | ||
| 2019-10-01 | Fix string representation of bot user in mod log | -1/+1 | ||
| 2019-10-01 | Refactor _scheduled_task & remove extraneous DM for expired infractions | -22/+10 | ||
| * Use dateutil to parse expiration timestamp | ||||
| 2019-10-01 | Fix concatenation of log text dictionary | -2/+2 | ||
| 2019-10-01 | Add reason for pardons in audit log | -2/+3 | ||
| 2019-10-01 | Add a generic function to pardon infractions | -130/+91 | ||
| * Display error in the confirmation message when the pardon fails * Only attempt to remove the infraction from Discord once | ||||
| 2019-10-01 | Rework deactivate_infraction to handle errors and send a mod log | -29/+93 | ||
| * Rename to deactivate_infraction * Send DM for unmute * Log errors with logging module and to the mod log embed * Return a dictionary representation of the mod log text * Raise a ValueError for unsupported infraction types | ||||
| 2019-10-01 | Add infraction pardon icons to dictionary | -7/+8 | ||
| 2019-10-01 | Fix stars.json resource test | -8/+3 | ||