aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | | Update config-default.ymlGravatar Thomas Petersson2020-02-02-0/+1
|/ / / / / / /
* | | | | | | Create CODEOWNERSGravatar Joseph2020-02-02-0/+1
| | | | | | |
* | | | | | | Merge pull request #735 from python-discord/test-resourcesGravatar Leon Sandøy2020-01-30-1/+8
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Add additional resources to the test readme
| * | | | | | | Merge the note with the additional resources sectionGravatar Matteo Bertucci2020-01-30-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Move the link to Ned Batchelder’s talk and link the note to the section
| * | | | | | | Add additional resources to the test readmeGravatar Matteo Bertucci2020-01-30-0/+6
|/ / / / / / /
| | | | | | * Make RuleTest use ABCMetaGravatar kwzrd2020-02-02-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will prevent child classes to be instantiated unless they implement all abstract methods, leading to a more descriptive error message.
| | | | | | * Adjust existing tests to inherit from RuleTest ABCGravatar kwzrd2020-02-02-294/+157
| | | | | | |
| | | | | | * Implement RuleTest ABCGravatar kwzrd2020-02-02-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will serve as an ABC for tests for individual rules. The base class provides runners for allowed and disallowed cases, and the children classes then only provide the cases and implementations of helper methods specific to each rule.
| | | | | | * Adjust multi-line docstrings to prevailing styleGravatar kwzrd2020-01-31-3/+6
| | | | | | |
| | | | | | * Refactor msg helper function name to make_msgGravatar kwzrd2020-01-26-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The name msg is less descriptive and creates a needless name conflict in local gen exp.
| | | | | | * Fix incorrect config key in attachments antispam ruleGravatar kwzrd2020-01-26-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rule was incorrectly printing out the maximum amount of allowed attachments instead of the configured interval. This commit also adjusts the rule's unit test case.
| | | | | | * Add unit test case for role mentions antispam ruleGravatar kwzrd2020-01-26-0/+66
| | | | | | |
| | | | | | * Add unit test case for discord emojis antispam ruleGravatar kwzrd2020-01-26-0/+68
| | | | | | |
| | | | | | * Add unit test case for chars antispam ruleGravatar kwzrd2020-01-26-0/+75
| | | | | | |
| | | | | | * Add unit test case for burst shared antispam ruleGravatar kwzrd2020-01-26-0/+65
| | | | | | |
| | | | | | * Add unit test case for burst antispam ruleGravatar kwzrd2020-01-26-0/+69
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge pull request #730 from python-discord/user-info-fixGravatar Mark2020-01-16-1/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix user command error for empty custom status
| * \ \ \ \ \ Merge branch 'master' into user-info-fixGravatar Mark2020-01-16-122/+272
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #701 from manusaurio/fetched-userGravatar Shirayuki Nekomata2020-01-16-114/+171
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Support applying infractions to users not in the DB via Converter `FetchedUser`
| * \ \ \ \ \ \ Merge branch 'master' into fetched-userGravatar manusaurio2020-01-16-284/+658
| |\ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
* | | | | | | | Merge pull request #686 from python-discord/feature/645-voice-event-logGravatar Shirayuki Nekomata2020-01-16-8/+101
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Log voice channel events
| * \ \ \ \ \ \ \ Merge branch 'master' into feature/645-voice-event-logGravatar Shirayuki Nekomata2020-01-16-577/+1298
| |\ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |
| * | | | | | | | ModLog: support self_stream voice stateGravatar MarkKoz2019-12-18-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature will be available in discord.py 1.3.
| * | | | | | | | ModLog: change voice state embed icon and colourGravatar MarkKoz2019-12-18-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a red icon when leaving or mute/deafened. Use a green icon when joining or unmuted/undeafened. Use a blue icon when changing channels or any other possible change.
| * | | | | | | | Constants: add voice state emotesGravatar MarkKoz2019-12-18-0/+8
| | | | | | | | |
| * | | | | | | | ModLog: exclude afk attribute from voice state logGravatar MarkKoz2019-12-11-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The log will already show that the channel changes to the AFK channel so showing the attribute change is redundant. If the channel were not clearly named "AFK" then it might've made sense to keep the attribute.
| * | | | | | | | ModLog: exclude most channel attributes from voice state diffGravatar MarkKoz2019-12-11-2/+8
| | | | | | | | |
| * | | | | | | | ModLog: make voice state event respect ignored channelsGravatar MarkKoz2019-12-11-1/+4
| | | | | | | | |
| * | | | | | | | ModLog: use Unicode arrow when displaying value changesGravatar MarkKoz2019-12-11-8/+8
| | | | | | | | |
| * | | | | | | | ModLog: log voice state updatesGravatar MarkKoz2019-12-11-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add corresponding event to the Event enum so the event can be ignored
| * | | | | | | | Add constants for voice state loggingGravatar MarkKoz2019-12-10-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ID for the voice-log channel. * Add IDs for admins & staff voice channels and make the mod log ignore them.
| | * | | | | | | Move Expiry converter alias to converters.pyGravatar MarkKoz2019-12-23-10/+10
| | | | | | | | |
| | * | | | | | | Refactor user type aliasesGravatar MarkKoz2019-12-23-15/+15
| | | | | | | | |
| | * | | | | | | Create an alias for a Member + FetchedUser converterGravatar MarkKoz2019-12-23-20/+23
| | | | | | | | |
| | * | | | | | | Make FetchedUser a subclass of UserConverterGravatar MarkKoz2019-12-22-50/+52
| | | | | | | | |
| | * | | | | | | Use log.warning instead of the deprecated log.warnGravatar MarkKoz2019-12-22-1/+1
| | | | | | | | |
| | * | | | | | | Merge branch 'master' into fetched-userGravatar manusaurio2019-12-22-1/+18
| | |\ \ \ \ \ \ \
| | * | | | | | | | Show only status code in Discord msg when infraction post failsGravatar MarkKoz2019-12-22-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When debugging, the response_text exceeds the character limit since it's basically an entire HTML document.
| | * | | | | | | | Use more specific error message for infraction DM user fetchGravatar MarkKoz2019-12-22-1/+1
| | | | | | | | | |
| | * | | | | | | | Remove unreachable break in post_infraction loopGravatar MarkKoz2019-12-22-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Show the user in the post_infraction error log message
| | * | | | | | | | Catch HTTPException in fetching, only fetch if isn't User or MemberGravatar Manuel Ignacio Pérez Alcolea2019-12-22-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's now a check to see if the `user` argument (possibly a `discord.Object`) needs to be made a `User`, instead of doing so directly, to avoid unnecessary requests to the Discord API. Besides that, a possible HTTPException is catched if it the fetch fails, cancelling the message to be send to the user (which would make the following calls fail later on for not being of the proper type.)
| | * | | | | | | | Make `watchchannels` use `FetchedUser` instead of `proxy_user`Gravatar Manuel Ignacio Pérez Alcolea2019-12-22-31/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes also removes the original `proxy_user` used by `watchchannels` the attributes in its `discord.Object` object to the one returned by FetchedUser.
| | * | | | | | | | Fix bug to log if `user` is either `Member` or `User`Gravatar Manuel Ignacio Pérez Alcolea2019-12-22-1/+1
| | | | | | | | | |
| | * | | | | | | | Move type declarations for annotations and convertersGravatar Manuel Ignacio Pérez Alcolea2019-12-22-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out how it was originally was the best idea. Now the `infractions` module imports `FetchedUser` and makes a `typing.Union` between it and `utils.UserTypes`. The usage of `FetchedUser` isn't needed in `utils` at all, and it shouldn't be used for/as type hinting there.
| | * | | | | | | | Minor refactor moving `return ...`Gravatar Manuel Ignacio Pérez Alcolea2019-12-22-3/+1
| | | | | | | | | |
| | * | | | | | | | Merge branch 'fetched-user' of https://github.com/manusaurio/bot into ↵Gravatar Manuel Ignacio Pérez Alcolea2019-12-22-1/+1
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fetched-user
| | | * | | | | | | | Add space in conditionGravatar manusaurio2019-12-22-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Mark <[email protected]>
| | * | | | | | | | | Add descriptive message to exception if user from API doesn't existGravatar Manuel Ignacio Pérez Alcolea2019-12-22-1/+1
| | |/ / / / / / / /
| | * | | | | | | | Correct log messages levels, add log messages and ctx.send messageGravatar Manuel Ignacio Pérez Alcolea2019-12-22-7/+12
| | | | | | | | | |
| | * | | | | | | | Merge branch 'master' into fetched-userGravatar manusaurio2019-12-20-29/+26
| | |\ \ \ \ \ \ \ \