aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | | | | | | | | | | | Do required flake8 changes in docstrings.Gravatar Shivansh-0072021-10-11-4/+8
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Use tasks to fetch incidents channel webhook.Gravatar Shivansh-0072021-10-11-9/+13
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | On msg edits, edit the msg link embed rather than deleting itGravatar Shivansh-0072021-10-11-4/+9
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Make incidents channel webhook a cog level attributeGravatar Shivansh-0072021-10-11-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This would not fetch it everytime.
| | * | | | | | | | | | | | | | | Use str() rather than f string for single variable.Gravatar Shivansh-0072021-10-11-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the intent much more clear.
| | * | | | | | | | | | | | | | | Don't allow more than 10 embeds per report.Gravatar Shivansh-0072021-10-11-53/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If more than 10 embeds found, just get the first 10 and ignore the rest.
| | * | | | | | | | | | | | | | | Revert changes done by black.Gravatar Shivansh-0072021-10-11-43/+13
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Updates type hints for `message_link_embeds_cache`.Gravatar Shivansh-0072021-10-11-1/+7
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Refactors code.Gravatar Shivansh-0072021-10-11-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.
| | * | | | | | | | | | | | | | | Use `DiscordException` instead of broad exception clause.Gravatar Shivansh-0072021-10-11-2/+2
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Apply grammar and style changes.Gravatar Shivansh-0072021-10-11-13/+20
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Run black code formatter.Gravatar Shivansh-0072021-10-11-21/+53
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Ignore N802 in 'asyncSetUp' and 'asyncTearDown' function in test_incidents.pyGravatar Shivansh-0072021-10-11-2/+2
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Allign comments to maintain readabilityGravatar Shivansh-0072021-10-11-3/+3
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Modify tests to support redis cache, done with the help @SebastiaanZGravatar Shivansh-0072021-10-11-16/+16
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Run webhook message deletion if webhook_msg_id var is TrueGravatar Shivansh-0072021-10-11-5/+7
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Update regex to support all message links i.e. support for 'app', 'canary', ↵Gravatar Shivansh-0072021-10-11-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'ptb'
| | * | | | | | | | | | | | | | | Add a docstring to 'send_webhooks' functionGravatar Shivansh-0072021-10-11-0/+9
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | If message content more than 500 characters shorten it done to 300 charactersGravatar Shivansh-0072021-10-11-24/+34
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Rollback to changes which aren't requiredGravatar Shivansh-0072021-10-11-6/+6
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Fix tests according to the changes done to incidents.pyGravatar Shivansh-0072021-10-11-3/+19
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Use str() when checking for message.contentGravatar Shivansh-0072021-10-11-1/+1
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Use MessageConverter to find messagesGravatar Shivansh-0072021-10-11-25/+35
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Send multiple webhook messages in case of more than 10 message linksGravatar Shivansh-0072021-10-11-9/+22
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Add incidents webhook to default config templateGravatar Shivansh-0072021-10-11-0/+1
| | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | Send webhook embed containing information about the message if there is a ↵Gravatar Shivansh-0072021-10-11-4/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | message link in the incident report
| | | | | * | | | | | | | | | | | Add ability to reply to message for `!remind`Gravatar Izan2021-11-16-2/+16
| |_|_|_|/ / / / / / / / / / / / |/| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Update order of off-topic channels (#1956)Gravatar mina2021-11-14-2/+2
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverse order of off-topic channels from ot0, ot1, ot2 to ot2, ot1, ot0
* | | | | | | | | | | | | | | Change log level from `WARNING` to `DEBUG`. (#1950)Gravatar TizzySaurus2021-11-11-3/+1
| | | | | | | | | | | | | | |
| | | | | | | | | | | * | | | Remove debug `maxDiff` assignment.Gravatar Izan2021-11-25-1/+0
| | | | | | | | | | | | | | |
| | | | | | | | | | | * | | | Fix testsGravatar Izan2021-11-16-8/+19
| | | | | | | | | | | | | | |
| | | | | | | | | | | * | | | Display whether DM was sent to user when listing infraction(s).Gravatar Izan2021-11-16-4/+27
| |_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge PR #1947: Fix `!infractions by me`Gravatar TizzySaurus2021-11-10-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Put the literal converter before the Member converter so that "me"/"m" isn't attempted to be converted to a Member.
* | | | | | | | | | | | | | Merge pull request #1926 from python-discord/infractions-by-commandGravatar Johannes Christ2021-11-10-2/+58
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for `!infractions by <m|me|uid>`
| * \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into infractions-by-commandGravatar Boris Muratov2021-11-10-558/+1046
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | |
* | | | | | | | | | | | | | | commands: add pip as an alias to pypi (#1942)Gravatar aru2021-11-10-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | | | | | | | Merge pull request #1946 from python-discord/refactor-modlogGravatar Matteo Bertucci2021-11-09-19/+21
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor ModLog
| * | | | | | | | | | | | | | | Listen to only on_raw_message_deleteGravatar Qwerty-1332021-11-09-19/+21
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Call the appropriate function in the raw listenerGravatar Qwerty-1332021-11-09-1/+1
|/ / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | Merge pull request #1944 from python-discord/ignore-botGravatar ChrisJL2021-11-09-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filter the same kind of messages in both message deletion listeners.
| * | | | | | | | | | | | | | | Filter the same messages in both listeners.Gravatar Qwerty-1332021-11-09-1/+1
|/ / / / / / / / / / / / / / /
| * | | | | | | | | | | | | | Unify infraction embed titleGravatar Izan2021-11-10-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Embed for `!infractions by` no longer has the author in codeblock.
| * | | | | | | | | | | | | | Add missing newline after region commentGravatar Izan2021-11-08-0/+1
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Improve ordering logic in API requestGravatar Izan2021-11-03-1/+6
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Address ReviewGravatar Izan2021-11-02-16/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add `format_infraction_count` and migrate - Improve logic for `actor` being `"m"`/`"me"` - Rename `search_by_user` to `search_by_actor` - Better Ordering Logic (thanks @ChrisLovering) - Make embed title consistent with other search embeds
| * | | | | | | | | | | | | | Add support for `!infractions by <m|me|uid>`Gravatar Izan2021-11-01-0/+38
| | |_|/ / / / / / / / / / / | |/| | | | | | | | | | | |
| | | | | | | | | | | | | * Update bot/resources/tags/type-hint.mdGravatar wookie1842022-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: ChrisJL <[email protected]>
| | | | | | | | | | | | | * Update type-hint.mdGravatar wookie1842022-03-31-7/+7
| | | | | | | | | | | | | |
| | | | | | | | | | | | | * Implement suggestionsGravatar SavagePastaMan2021-11-15-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added links to mypy and PEP484 (the type hint pep). Removed the temp variable for clarity, maybe it's fine if we don't show that you can typehint normal variables?
| | | | | | | | | | | | | * Make type-hint tagGravatar SavagePastaMan2021-11-08-0/+16
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | |