aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | | Source: Few text fixes, made help command detection betterGravatar ks1292020-05-31-3/+3
| | | | | | | |
| * | | | | | | Source: Add thumbnail to source command bot repo embedGravatar ks1292020-05-31-0/+1
| | | | | | | |
| * | | | | | | Source: Show only first line of every source item docstring instead fullGravatar ks1292020-05-31-5/+4
| | | | | | | |
| * | | | | | | Source: Implement file and line showing in source embed footerGravatar ks1292020-05-31-7/+10
| | | | | | | |
| * | | | | | | Source: Move big unions to variable of typeGravatar ks1292020-05-31-3/+5
| | | | | | | |
| * | | | | | | Source: Migrate from os.path to PathGravatar ks1292020-05-31-4/+6
| | | | | | | |
| * | | | | | | Source: Implement tags file showing to source commandGravatar ks1292020-05-31-16/+27
| | | | | | | |
| * | | | | | | Merge remote-tracking branch 'origin/source-command' into source-commandGravatar ks1292020-05-31-439/+1749
| |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ Merge branch 'master' into source-commandGravatar ks1292020-05-31-439/+1749
| | |\ \ \ \ \ \ \
| * | | | | | | | | Source: Direct aliases to their original commandsGravatar ks1292020-05-31-7/+17
| | | | | | | | | |
| * | | | | | | | | Source: Remove checks running from source commandGravatar ks1292020-05-31-5/+2
| |/ / / / / / / /
| * | | | | | | | Source: Fix docstringsGravatar ks1292020-05-31-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
| * | | | | | | | Source: Fix description of cogGravatar ks1292020-05-20-1/+1
| | | | | | | | |
| * | | | | | | | Source: Rename cog + move checks status from footer to fieldGravatar ks1292020-05-20-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Renamed cog from `Source` to `BotSource` for itself (bot will be unable to get cog, because this always return command). - Moved checks status from footer to field and changed it's content.
| * | | | | | | | Source: Remove Cog check displaying from commandGravatar ks1292020-05-20-5/+0
| | | | | | | | |
| * | | | | | | | Source: Remove links from title of embedsGravatar ks1292020-05-20-2/+2
| | | | | | | | |
| * | | | | | | | Source: Make converter raising `BadArgument` againGravatar ks1292020-05-20-5/+5
| | | | | | | | |
| * | | | | | | | Source: Fix `Cog` instance of source no `help` attributeGravatar ks1292020-05-20-1/+4
| | | | | | | | |
| * | | | | | | | Source: Implement no argument GitHub repo responseGravatar ks1292020-05-20-5/+11
| | | | | | | | |
| * | | | | | | | Source: Remove `command` shadowing on converterGravatar ks1292020-05-20-3/+3
| | | | | | | | |
| * | | | | | | | Source: Make `source` command to `command` instead `group`Gravatar ks1292020-05-20-2/+2
| | | | | | | | |
| * | | | | | | | Source: Create `source` command with alias `src`Gravatar ks1292020-05-20-1/+7
| | | | | | | | |
| * | | | | | | | Source: Create `build_embed` function that build embed of source itemGravatar ks1292020-05-20-0/+27
| | | | | | | | |
| * | | | | | | | Source: Add cog loading to __main__.pyGravatar ks1292020-05-20-0/+1
| | | | | | | | |
| * | | | | | | | Source: Create `get_source_link` function that build item's GitHub linkGravatar ks1292020-05-20-2/+23
| | | | | | | | |
| * | | | | | | | Source: Create converter for source object convertingGravatar ks1292020-05-19-2/+31
| | | | | | | | |
| * | | | | | | | Source: Created initial cog layout + setup functionGravatar ks1292020-05-19-0/+15
| | | | | | | | |
* | | | | | | | | Merge pull request #1055 from python-discord/Senjan/clean_messageGravatar Mark2020-07-20-1/+34
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | Added command&system to purge all messages up to given message
| * | | | | | | | Merge branch 'master' into Senjan/clean_messageGravatar Senjan212020-07-16-1/+8
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Prevent deleting messages above the desired message.Gravatar Senjan212020-07-16-6/+7
| | | | | | | | | |
| * | | | | | | | | Fix docstring and commentsGravatar Senjan212020-07-15-13/+7
| | | | | | | | | |
| * | | | | | | | | Added command&system to purge all messages up to given messageGravatar Senjan212020-07-15-1/+39
| | | | | | | | | |
| | | | | * | | | | Edited tests to reflect changes (removed py formatting)Gravatar wookie1842020-07-20-3/+3
| | | | | | | | | |
| | | | | * | | | | Removed python formatting from returned codeblockGravatar wookie1842020-07-20-1/+1
| |_|_|_|/ / / / / |/| | | | | | | |
* | | | | | | | | Merge pull request #993 from python-discord/kwzrd/incidentsGravatar kwzrd2020-07-17-12/+1203
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Implement #incidents channel automation
| * \ \ \ \ \ \ \ \ Merge branch 'master' into kwzrd/incidentsGravatar kwzrd2020-07-17-1/+1
| |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
| * | | | | | | | | Incidents: reduce log level of 403 exceptionGravatar kwzrd2020-07-16-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to 404, this shouldn't send Sentry notifs. Co-authored-by: MarkKoz <[email protected]>
| * | | | | | | | | Merge 'master' into 'kwzrd/incidents'; resolve config conflictsGravatar kwzrd2020-07-16-351/+626
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add upstream changes & resolve config conflicts introduced by #1041. In the conflicting parts of the diff, this commit also re-sorts constants which were added upstream to lexicographical order. This does **not** re-sort all constants added upstream.
| * | | | | | | | | | Incidents: reduce log level of 404 exceptionGravatar kwzrd2020-07-16-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | | | | | | | | | Incidents: link `proxy_url` if attachment fails to downloadGravatar kwzrd2020-07-14-50/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Mark during review. If the download fails, we fallback on showing an informative message, which will link the attachment cdn link. The attachment-handling logic was moved from the `archive` coroutine into `make_embed`, which now also returns the file, if available. In the end, this appears to be the smoothest approach. Co-authored-by: MarkKoz <[email protected]>
| * | | | | | | | | | Incidents: add `download_file` helper & testsGravatar kwzrd2020-07-13-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | | | | | | | | | Merge d.py version bump from master branchGravatar kwzrd2020-07-10-3/+3
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Config: refactor #incidents constants to lexicographical sortingGravatar kwzrd2020-07-09-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | | | | | | | | | | Incidents tests: improve in-line comment wordingGravatar kwzrd2020-07-09-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | | | | | | | | | | Incidents: use `moderation_roles` constantGravatar kwzrd2020-07-09-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Better than building the set manually. Tested against regression by comparing the two sets for equality. Suggested by vivax. Co-authored-by: vivax3794 <[email protected]>
| * | | | | | | | | | | Merge 'master' into 'kwzrd/incidents'; resolve mod pkg init conflictGravatar kwzrd2020-07-08-217/+672
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Incidents: archive incident attachmentsGravatar kwzrd2020-07-03-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no handling of file types as explained in the `archive` docstring. Testing indicates that relaying incidents with e.g. a text file attachment is simply a noop in the Discord GUI. If there is at least one attachment, we always only relay the one at index 0, as it is believed the user-sent messages can only contain one attachment at maximum. This also adds an extra test asserting the behaviour when an incident with an attachment is archived. The existing test for `archive` is adjusted to assume no attachments. Joe helped me conceive & test this. Co-authored-by: Joseph Banks <[email protected]>
| * | | | | | | | | | | | Incidents: trace-level log incident embed creationGravatar kwzrd2020-07-02-0/+2
| | | | | | | | | | | | |
| * | | | | | | | | | | | Incidents: relay incidents as embeds rather than raw contentGravatar kwzrd2020-07-01-37/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies the previously defined `make_embed` function. As the `archive` function is now simpler, I decided to reduce the amount of whitespace ~ it's a lot more compact now. Tests are adjusted as appropriate.
| * | | | | | | | | | | | Incidents: implement `make_embed` helper & testsGravatar kwzrd2020-07-01-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See `make_embed` docstring for further information. The tests are fairly loose and should be easily adjustable in the future should changes be made.