| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2021-10-11 | Remove leading whitespace from msg link embed content | -1/+1 | ||
| 2021-10-11 | Rename 'send_webhooks' to 'send_message_link_embed' | -3/+3 | ||
| Co-authored-by: Boris Muratov <[email protected]> | ||||
| 2021-10-11 | Appy requested grammar changes. | -5/+5 | ||
| Co-authored-by: Boris Muratov <[email protected]> | ||||
| 2021-10-11 | Remove redundant code | -4/+2 | ||
| 2021-10-11 | Rework message link embed. | -7/+9 | ||
| - Instead of default black colour, use gold to give it some shine! - Mention the channel also in the channel field. - Add message ID in footer, so it is easy to figure out for which message link is that embed. | ||||
| 2021-10-11 | Bug fixes | -16/+14 | ||
| - `await` message link embeds cache get - don't double send webhook embeds (edit, send) on message edits | ||||
| 2021-10-11 | Don't send errors, instead log them. | -9/+9 | ||
| Errors shouldn't be sent in #incidents. Instead, log them with log.exception and make the function return. | ||||
| 2021-10-11 | Do required flake8 changes in docstrings. | -4/+8 | ||
| 2021-10-11 | Use tasks to fetch incidents channel webhook. | -9/+13 | ||
| 2021-10-11 | On msg edits, edit the msg link embed rather than deleting it | -4/+9 | ||
| 2021-10-11 | Make incidents channel webhook a cog level attribute | -6/+6 | ||
| This would not fetch it everytime. | ||||
| 2021-10-11 | Use str() rather than f string for single variable. | -1/+1 | ||
| Makes the intent much more clear. | ||||
| 2021-10-11 | Don't allow more than 10 embeds per report. | -53/+32 | ||
| If more than 10 embeds found, just get the first 10 and ignore the rest. | ||||
| 2021-10-11 | Revert changes done by black. | -43/+13 | ||
| 2021-10-11 | Updates type hints for `message_link_embeds_cache`. | -1/+7 | ||
| 2021-10-11 | Refactors code. | -26/+94 | ||
| Earlier on message edit the message wasn't run through extract message links to see if new message links are added or if some got deleted. Similarly the cache was updated when a message got deleted. Now it makes extract message links a helper function and runs it on message edits and deletes in case there are some changes in the message links. This commit also updates the doc strings for functions according to the new changes done. | ||||
| 2021-10-11 | Use `DiscordException` instead of broad exception clause. | -2/+2 | ||
| 2021-10-11 | Apply grammar and style changes. | -13/+20 | ||
| 2021-10-11 | Run black code formatter. | -21/+53 | ||
| 2021-10-11 | Ignore N802 in 'asyncSetUp' and 'asyncTearDown' function in test_incidents.py | -2/+2 | ||
| 2021-10-11 | Allign comments to maintain readability | -3/+3 | ||
| 2021-10-11 | Modify tests to support redis cache, done with the help @SebastiaanZ | -16/+16 | ||
| 2021-10-11 | Run webhook message deletion if webhook_msg_id var is True | -5/+7 | ||
| 2021-10-11 | Update regex to support all message links i.e. support for 'app', 'canary', ↵ | -3/+4 | ||
| 'ptb' | ||||
| 2021-10-11 | Add a docstring to 'send_webhooks' function | -0/+9 | ||
| 2021-10-11 | If message content more than 500 characters shorten it done to 300 characters | -24/+34 | ||
| 2021-10-11 | Rollback to changes which aren't required | -6/+6 | ||
| 2021-10-11 | Fix tests according to the changes done to incidents.py | -3/+19 | ||
| 2021-10-11 | Use str() when checking for message.content | -1/+1 | ||
| 2021-10-11 | Use MessageConverter to find messages | -25/+35 | ||
| 2021-10-11 | Send multiple webhook messages in case of more than 10 message links | -9/+22 | ||
| 2021-10-11 | Add incidents webhook to default config template | -0/+1 | ||
| 2021-10-11 | Send webhook embed containing information about the message if there is a ↵ | -4/+70 | ||
| message link in the incident report | ||||
| 2021-10-10 | Fix typo in bot/exts/info/doc/_cog.py | -1/+1 | ||
| it only took 5 people looking through the diff ... Co-authored-by: Bluenix <[email protected]> | ||||
| 2021-10-10 | Handle 400 when setting pre-existing doc package | -1/+9 | ||
| If you run, for example: !doc setdoc black https://black.readthedocs/en/stable/objects.inv twice over. You'll get an unhelpful "According to the API, your request is malformed." error message back. This commit adds an error handler to catch the HTTP 400 and tell the user the package already exists. | ||||
| 2021-10-06 | Kill subdomains from configuration file. | -3/+3 | ||
| This will need a coordinated rollout with @jb3, in order to make the appropriate changes in Kubernetes beforehand. | ||||
| 2021-10-06 | Add appeal categories to mod categories | -0/+4 | ||
| This allows us to run moderation commands in the appeal categories | ||||
| 2021-10-06 | Revert "Apply infractions before DMing" | -10/+8 | ||
| 2021-10-05 | Use `isinstance` instead of `hasattr` to determine if `Member` | -2/+2 | ||
| 2021-10-05 | Fix linting | -0/+1 | ||
| Reverted accidental line deletion | ||||
| 2021-10-05 | Fix if statement error | -10/+9 | ||
| Adds `messages_as_list` for easy indexing of `self.messages.values()` Also updated the comment above if statement and tidied some code | ||||
| 2021-10-05 | Make attachments check explicit | -1/+1 | ||
| Co-authored-by: Matteo Bertucci <[email protected]> | ||||
| 2021-10-05 | Improvements to anti-spam log message | -3/+9 | ||
| - Removed redundant f-string - Made it so that messages with attachments will *always* upload to the log site. - Made it so that truncates messages will also upload to the paste site, for full viewing. - Fixed a previously unnoticed bug where truncating didn't account for extra characters of the ellipses. | ||||
| 2021-10-04 | Use utcnow() and lower a logging level in patch_typing | -3/+3 | ||
| 2021-10-04 | Move all monkey patches to their own file | -23/+22 | ||
| 2021-10-04 | Monkey patch http.send_typing to catch 403s | -1/+35 | ||
| Sometimes discord turns off typing events by throwing 403's, so we should catch those | ||||
| 2021-10-03 | Check cache for Members and Users | -5/+5 | ||
| By swapping the isinstance to check for int, the else block now catches the case where target is Member or User, this allows for editting the nomination reason of members that are off server. | ||||
| 2021-10-03 | Block helpers from editing nomination reasons in channels other than ↵ | -3/+7 | ||
| #nominations | ||||
| 2021-10-03 | Handle channel category being None in antispam/malware checks | -2/+2 | ||
| The code already handled the attribute not existing (e.g from a DM channel), but didn't handle TextChannels not in a category | ||||
| 2021-10-03 | Force kwargs when calling helper util | -1/+2 | ||
| Co-authored-by: Bluenix <[email protected]> | ||||