| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2020-02-23 | Don't log exception traceback on Forbidden for welcomes. | -12/+9 | ||
| 2020-02-23 | Don't set project log level so it uses root level. | -1/+1 | ||
| 2020-02-23 | Define `_count` in `__init__`. | -0/+1 | ||
| 2020-02-23 | Suppress NotFound on react clear, tidy imports. | -18/+21 | ||
| 2020-02-21 | Change defcon log levels from warning to info | -2/+2 | ||
| 2020-02-21 | Enable logging warnings to Sentry | -3/+12 | ||
| 2020-02-21 | Attach jump_to url to the event | -0/+8 | ||
| 2020-02-21 | Use push_scope instead of configure_scope | -2/+2 | ||
| 2020-02-21 | Use log.error instead of capture_exception | -2/+2 | ||
| 2020-02-21 | Remove AIOHTTP integration from Sentry since it is intended for AIOHTTP servers. | -3/+1 | ||
| 2020-02-21 | Remove tests for custom bot log | -62/+2 | ||
| 2020-02-21 | Remove the space that makes the test fail | -1/+1 | ||
| 2020-02-21 | Use the code provided by sco1 to fix the checks failing. | -5/+10 | ||
| 2020-02-21 | Add basic sentry usage for command errors giving user information and ↵ | -85/+10 | ||
| command context. | ||||
| 2020-02-21 | Attach extra information on a command error | -1/+13 | ||
| 2020-02-21 | Set BOT_SENTRY_DSN environment variable for tests | -1/+1 | ||
| 2020-02-21 | Implement basic Sentry SDK usage | -2/+14 | ||
| 2020-02-20 | Update flake8-annotations to v2.0. | -10/+51 | ||
| 2020-02-20 | Change to explicit logs, remove logmatic. | -160/+76 | ||
| 2020-02-19 | Moderation: show avatar in infraction deactivation log | -0/+5 | ||
| 2020-02-17 | Pagination migrations - Emoji Data Structure Modified | -1/+1 | ||
| Changed the pagination emoji collection from list to tuple This change was suggested since this collection is constant | ||||
| 2020-02-17 | Change snekbox api url to internal docker domain. | -1/+1 | ||
| NGINX has been dockerised, and proxy passes now reference internal container domains rather than referencing host or external domains. This will have a few extra benefits: - Less external factors involved for resolving the service address - Can work with the same address on development envs - Snekbox can be closed down entirely so it's inaccessible from external networks. | ||||
| 2020-02-15 | Moderation: show member as a mention in expired infraction log | -1/+1 | ||
| 2020-02-15 | Moderation: show correct actor in expired infraction log | -3/+4 | ||
| The bot user was always being used instead of using the actor field of the infraction. | ||||
| 2020-02-15 | Moderation: add creation date & duration to expired infraction log | -1/+7 | ||
| Closes #685 | ||||
| 2020-02-15 | Utils: refactor format_infraction_with_duration and support absolute val | -13/+23 | ||
| The absolute value is useful for preventing negative values in the case that date_to is in the past relative to date_from. * Add an absolute parameter to take the absolute value of the duration * Rename expiry to date_to * Rewrite the docstring | ||||
| 2020-02-14 | Stop scheduling expiration of permanent infractions on edit | -2/+5 | ||
| https://github.com/python-discord/bot/issues/751 The infraction edit command defined in `bot.cogs.moderation.management` contained a bug causing it to attempt to schedule an expiration task when turning a temporary infraction into a permanent infraction. Since the "expires_at" field of a permanent infractions is `None`, this caused an exception to occur in the scheduler: Traceback (most recent call last): File "/bot/bot/cogs/moderation/scheduler.py", line 415, in _scheduled_task expiry = dateutil.parser.isoparse(infraction["expires_at"]).replace(tzinfo=None) File "/usr/local/lib/python3.7/site-packages/dateutil/parser/isoparser.py", line 37, in func return f(self, str_in, *args, **kwargs) File "/usr/local/lib/python3.7/site-packages/dateutil/parser/isoparser.py", line 134, in isoparse components, pos = self._parse_isodate(dt_str) File "/usr/local/lib/python3.7/site-packages/dateutil/parser/isoparser.py", line 208, in _parse_isodate return self._parse_isodate_common(dt_str) File "/usr/local/lib/python3.7/site-packages/dateutil/parser/isoparser.py", line 213, in _parse_isodate_common len_str = len(dt_str) TypeError: object of type 'NoneType' has no len() I have solved this by adding a check that makes sure we only schedule an expiration task when the `"expires_at"` field has a truthy value (which all valid datetime strings are) using `if request_data['expires_at']`. IMPORTANT NOTE: While it's tempting to just skip the entire scheduling block for permanent infractions, it's essential to unschedule existing expiration tasks for this infraction as we're changing a temporary infraction to a permanent infraction. This commit closes #751 | ||||
| 2020-02-13 | Add thousand separators to Members count, closes #744 | -4/+4 | ||
| 2020-02-13 | Update the tests accordingly to reflect the new changes | -3/+3 | ||
| 2020-02-12 | Use collections.Counter properly. Use the ChannelType enum instead of the ↵ | -12/+6 | ||
| __class__ attribute, and re-add the None check for !user roles. | ||||
| 2020-02-12 | Fix pagniation module for "last page" reaction | -1/+1 | ||
| Fixes #746. | ||||
| 2020-02-09 | Remove clear reaction from paginators | -17/+2 | ||
| It could be confused with the delete reaction. Clearing reactions manually is rarely a useful feature anyway. | ||||
| 2020-02-08 | Use the enum itself instead of its string value | -6/+6 | ||
| 2020-02-07 | Pin discord.py to 1.3.x | -2/+2 | ||
| 2020-02-07 | Update discord.py to 1.3.1 | -39/+34 | ||
| 2020-02-06 | Fix some of the testing for information.py; I think this should be it. ↵ | -2/+2 | ||
| (hopefully). | ||||
| 2020-02-06 | Change if statement to elif; if the first if statement returns true, the ↵ | -1/+1 | ||
| second cannot be true making it unneccesary to check | ||||
| 2020-02-06 | Fix up imports a bit; there's no need to import all of discord and typing ↵ | -10/+7 | ||
| for just 1 or 2 uses (e.g. Union, and Message). | ||||
| 2020-02-06 | Instead of sending a message everytime a role can't be converted, append it ↵ | -1/+8 | ||
| to a list, and then send them it at once (less spammy) | ||||
| 2020-02-06 | Update tests to reflect status changes | -4/+4 | ||
| 2020-02-06 | Refactor how channels and statuses are counted; using Counter() - way cleaner. | -35/+17 | ||
| 2020-02-06 | Remove some a lot of unneccesary newlines that arguably make it harder to read | -9/+2 | ||
| 2020-02-06 | Roles cannot return None because everyone has the Developer role by default, ↵ | -1/+1 | ||
| and non-verified users cannot use this command. | ||||
| 2020-02-06 | No longer check if every role is @everyone; just skip the first element in ↵ | -3/+2 | ||
| the list | ||||
| 2020-02-06 | Add missing slash to asking good questions url. | -1/+1 | ||
| 2020-02-05 | Move tools and questions guide to under resources | -2/+2 | ||
| After the wiki pages adjustment to the resources page, these two urls are needing to be updated to point to the new correct locations for each page. Tools will be under resources, and Asking Good Questions is a guide, so will be under Guides. | ||||
| 2020-02-05 | Made searching even stricter by searching from start of each word | -11/+13 | ||
| - Added regex back to sub and split by non-alphabet. - Now use two pointers to move from words to words. | ||||
| 2020-02-05 | Removed regex, implemented a stricter letter searching. | -10/+12 | ||
| 2020-02-05 | Increased default thresholds from just [100, 80] to [100, 90, 80, 70, 60] | -2/+2 | ||
| - Since it is returning as soon as there are suggestions found for a threshold, this will give a better reflection of what the bot thinks user is searching for. | ||||
| 2020-02-05 | Removed non-alphabets from both search and tag_name when scoring. | -2/+5 | ||
| - Added a regex to remove non-alphabet ( `[^a-z]` with `re.IGNORECASE` ) | ||||