aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorLines
2020-10-18Silence: add locks to commandsGravatar MarkKoz-1/+9
2020-10-18Silence: rename function to reduce ambiguityGravatar MarkKoz-10/+10
2020-10-09Silence: amend the manual unsilence messageGravatar MarkKoz-2/+3
Clarify that this situation could also result from the cache being cleared prematurely. There's no way to distinguish the two scenarios, so a manual unsilence is required for both.
2020-10-09Silence: require only 1 permission to be False for a manual unsilenceGravatar MarkKoz-1/+3
Previously, both sending messages and adding reactions had to be false in order for the manual unsilence failure message to be sent. Because staff may only set one of these manually, the message should be sent if at least one of the permissions is set.
2020-10-09Silence: fix scheduled tasks not being cancelled on unloadGravatar MarkKoz-1/+1
2020-10-08Silence tests: make _async_init attribute tests more robustGravatar MarkKoz-7/+11
2020-10-08Silence: remove _mod_log_channel attributeGravatar MarkKoz-3/+2
It's only used as an argument to `SilenceNotifier`, so it doesn't need to be an instance attribute.
2020-10-08Silence: add to notifier when indefinite rather than temporaryGravatar MarkKoz-7/+7
Accidentally swapped the logic in a previous commit during a refactor.
2020-10-08Fix millisecond time for command processing timeGravatar Gustav Odinger-1/+1
- For the `.ping` command - Fixes a faulty convertion from seconds to milliseconds
2020-10-08Update bot/exts/moderation/infraction/infractions.pyGravatar scragly-1/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-10-08update documentationGravatar RohanJnr-1/+14
2020-10-08remove redundant if statementGravatar RohanJnr-1/+1
2020-10-08remove redundant if statementGravatar RohanJnr-2/+1
2020-10-07Silence tests: fix unawaited coro warningsGravatar MarkKoz-2/+7
Because the Scheduler is mocked, it doesn't actually do anything with the coroutines passed to the schedule() functions, hence the warnings.
2020-10-07made sure to use sub_clyde on username passed to send_attachmentsGravatar wookie184-1/+2
2020-10-07Refactor tests to use updated changes to syncer.py and API.Gravatar RohanJnr-58/+59
2020-10-07improve code efficiency and use updated API changes to paginationGravatar RohanJnr-98/+48
2020-10-07Add the ability to purge and ban in one command.Gravatar scragly-2/+26
2020-10-06Silence: rename _init_cog to _async_initGravatar MarkKoz-15/+15
2020-10-06Silence: refactor _silenceGravatar MarkKoz-33/+32
* Rename to `_silence_overwrites` * Reduce responsibilities to only setting permission overwrites * Log in `silence` instead * Add to notifier in `silence` instead
2020-10-06Silence: move unsilence scheduling to a separate functionGravatar MarkKoz-8/+13
2020-10-06Include rolled over logs in gitignoreGravatar Numerlor-0/+1
RotatingFileHandler appends .# to log names when rolling over to a new file.
2020-10-06Fix old nick in superstarify reasonGravatar Boris Muratov-2/+3
2020-10-06Use .get() instead of index for fetching is_pending propertyGravatar Joe Banks-1/+1
2020-10-06Correct raw_member to member in verification on_joinGravatar Joe Banks-1/+1
2020-10-06Reword on_join comment for alternate gate membersGravatar Joe Banks-1/+4
2020-10-06Clear up comment around DM sendGravatar Joe Banks-0/+4
2020-10-06Reword cache creation commentGravatar Joe Banks-1/+1
2020-10-06Use clearer variable names in list comprehensionsGravatar Joe Banks-2/+2
2020-10-06Merge get and pop into one conditionalGravatar Joe Banks-3/+1
2020-10-06Add type annotation to on_member_update listenerGravatar Joe Banks-1/+1
2020-10-06Support users with alternate gating methodsGravatar Joe Banks-0/+42
2020-10-04Sort rules before determining invalid indices.Gravatar Den4200-14/+5
This is to avoid sorting twice - once for invalid indices and again for send the rules.
2020-10-03Use `url` argument instead of setting it outside.Gravatar Den4200-2/+1
2020-10-03Use `Greedy` converter instead of the splat operator.Gravatar Den4200-2/+2
2020-10-03Remove duplicates from given rule indices and sort them in order.Gravatar Den4200-4/+11
2020-10-03Replace `map` with a more pythonic list comprehension.Gravatar Den4200-1/+1
2020-10-03Use invite for tracking offline presences instead of `ctx`Gravatar Senjan21-2/+2
2020-10-03Add trailing comma to intentsGravatar Senjan21-1/+1
2020-10-03Lock: make LockGuard.locked a propertyGravatar MarkKoz-1/+2
2020-10-03Lock: rename variable to avoid shadowingGravatar MarkKoz-3/+3
2020-10-03add missing test for `user` commandGravatar Senjan21-0/+5
2020-10-03Cap most_common to 25 to not go over the embed fields limitGravatar Joe Banks-1/+1
2020-10-03Add a socket stats commandGravatar Joe Banks-5/+37
2020-10-02Changed dm_relay to include user id in webhook when sending attachments.Gravatar wookie184-1/+5
2020-10-02 Add use_cached argument to send_attachments, and change it to default to FalseGravatar wookie184-1/+2
2020-10-02Changed send_attachments so kwargs could be given and would be passed to send()Gravatar wookie184-14/+13
2020-10-02remove un-used variableGravatar RohanJnr-1/+0
2020-10-02Refactor unit tests UserSyncerSyncTests to use changes made to UserSyncer in ↵Gravatar RohanJnr-7/+5
_syncers.py
2020-10-02update UserSyncerDiffTests Tests to use changes made to API calls.Gravatar RohanJnr-6/+32