aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-10-14enhancement(filters): use a stricter bot token regex (#2006)Gravatar arl-5/+5
Use a stricter bot token regex Co-authored-by: wookie184 <[email protected]> Co-authored-by: Hassan Abouelela <[email protected]>
2022-10-13`REPO_TOKEN` is no more. (#2289)Gravatar Xithrius-1/+0
2022-10-10Use explicit mock channels in tests to remove warningGravatar Chris Lovering-2/+11
This is need due to the new behaviour of discord.utils.get supporting both iterables and async iterables by checking for the presence of the __aiter__ attr on the iterable. GuildChannelConverter._resolve_channel uses this get util under the hood which grabs the voice channels on the guild, which were previously Mocked by the MagicMock, meaning the __aiter__ attr was present, causing the util to think it should be ran asynchronously.
2022-10-10noqa an abstract class with no abstract methodsGravatar Chris Lovering-1/+1
This warning was added in the latest version of flake8-bugbear, but can be ignored in this instance.
2022-10-10Bump all deps to latestGravatar Chris Lovering-498/+426
2022-10-10Bump bot-core to 8.2.1Gravatar Chris Lovering-152/+1340
From the release notes on d.py [here](https://canary.discord.com/channels/336642139381301249/381965829857738772/1006359073610010664) and [here](https://canary.discord.com/channels/336642139381301249/381965829857738772/1008772795179737230) none of the breaking changes for the commit we were on to 2.0.1 affect us.
2022-10-05Add message when there are no patrons in a tierGravatar wookie184-1/+2
2022-10-03await unawaited remove_cog callsGravatar Amrou Bellalouna-3/+3
2022-10-02Make autoban report silently fail if output will be sent to a non-mod channelGravatar Chris Lovering-0/+4
2022-10-02Send weekly_autoban_report to ctx channel when manually invokedGravatar Chris Lovering-3/+7
2022-10-02Report on all autoban filters added in the last 7 daysGravatar Chris Lovering-1/+55
This adds both a command to runt he report, and schedules a report to be automatically once a week.
2022-10-02Namespace discord import in filter_listsGravatar Chris Lovering-4/+4
2022-10-02Send filter alerts to #filter-log instead of #mod-metaGravatar Chris Lovering-2/+5
This is to reduce the amount of spam in #mod-meta.
2022-09-28use tldextract for a correct url decompositionGravatar Amrou Bellalouna-5/+5
2022-09-28check for the url existence in the final_urls setGravatar Amrou Bellalouna-1/+1
2022-09-28collect all urls in a set to avoid duplicatesGravatar Amrou Bellalouna-2/+3
2022-09-28transform urls matched in messagesGravatar Amrou Bellalouna-2/+9
We add the transformed urls to the set to account for the way discord renders relative urls in cases like Twitter's
2022-09-28add remove_subdomain_from_url in bot util helpersGravatar Amrou Bellalouna-0/+12
2022-09-20Display mention & str of the mentionable object in `!remind list`.Gravatar Izan-1/+1
Added so that the user still gets information on what the mention is, when the mention doesn't render (due to client cache etc.)
2022-09-20move DEFAULT_RULES_DESCRIPTION under information.pyGravatar Amrou Bellalouna-9/+7
2022-09-19use subTest to isolate assertionsGravatar Amrou Bellalouna-14/+17
2022-09-19add DEFAULT_RULES_DESCRIPTION to avoid duplicationGravatar Amrou Bellalouna-13/+10
2022-09-19fix redundant test nameGravatar Amrou Bellalouna-1/+1
2022-09-19test the cases where default rules message is supposed to be sentGravatar Amrou Bellalouna-0/+31
2022-09-19fix wrong type hint of the rules function return valueGravatar Amrou Bellalouna-2/+2
2022-09-19add test that checks for the sent content if one invalid index is present in ↵Gravatar Amrou Bellalouna-0/+46
the input
2022-09-19return final list of rule numbers to be sentGravatar Amrou Bellalouna-2/+4
2022-09-19sort the list of final rule numbersGravatar Amrou Bellalouna-1/+1
2022-09-18determine final_rule_numbers value by subscribing to the ↵Gravatar Amrou Bellalouna-9/+2
keyword_to_rule_number using the matched keywords
2022-09-18subscribe directly to the keyword_to_rule_number dict instead of using .getGravatar Amrou Bellalouna-1/+2
2022-09-18remove redundant use of list transformation when sorting final rule numbersGravatar Amrou Bellalouna-1/+1
2022-09-18Moved `escape_markdown` after Truthy check (#2279)Gravatar Ionite-2/+3
2022-09-18replace the keywords set with a dict that maps each keyword to its rule numberGravatar Amrou Bellalouna-8/+6
2022-09-18enumerate full_rules with a start index of 1Gravatar Amrou Bellalouna-2/+2
2022-09-18remove useless initial sorting of keywordsGravatar Amrou Bellalouna-2/+0
2022-09-18remove duplicate final rule numbers then sortGravatar Amrou Bellalouna-1/+1
2022-09-18remove unreachable codeGravatar Amrou Bellalouna-8/+0
2022-09-18rename pick to rule_numberGravatar Amrou Bellalouna-2/+2
2022-09-18rename index to rule_numberGravatar Amrou Bellalouna-1/+3
2022-09-18stop matching keywords when they're invalid upon triaging the rule numbers & ↵Gravatar Amrou Bellalouna-19/+17
keywords
2022-09-18stop matching as soon as an invalid kw is encounteredGravatar Amrou Bellalouna-11/+22
2022-09-17Use Python Poetry Base Action (#2277)Gravatar Hassan Abouelela-21/+3
2022-09-17Address ReviewGravatar Izan-2/+6
- Convert `ids` to a set to remove duplicates - Limit the amount of reminders you can delete at once to 5 in order to prevent API spam
2022-09-17Update wording of patreon messageGravatar wookie184-2/+2
2022-09-17Removed italics from the help command (#2272)Gravatar Mohammad Ibrahim-5/+5
* removed asterisk from embed description * removed italics from line 334, 375 and 415 * pagination.py, L239 added italics
2022-09-16remove help message that displays the available keywords per ruleGravatar Amrou Bellalouna-8/+2
2022-09-16Removed "redis_ready" from additional_spec_asyncs in MockBot (#2275)Gravatar Aleksey Zasorin-1/+1
The attribute was removed from Bot in fc05849
2022-09-16rename rules to rule_numbersGravatar Amrou Bellalouna-7/+7
2022-09-16replace .isdigit predicate with a try except blockGravatar Amrou Bellalouna-2/+2
2022-09-16fix typo in docstringsGravatar Amrou Bellalouna-1/+1