aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-01-20Cleans Up TestsGravatar Hassan Abouelela-5/+5
2021-01-19Replace in_whitelist check with commands.has_any_role checkGravatar ks129-2/+1
in_whitelist allow normal users also run commands in bot commands, but branding commands should be mod+ only, so we need to use has_any_role instead from discord.py.
2021-01-18Sync: test chunking of user requestsGravatar MarkKoz-11/+18
2021-01-18Sync: chunk user requestsGravatar MarkKoz-2/+8
The site can't handle huge syncs. Even a bulk patch of 10k users will crash the service. Chunk the requests into groups of 1000 users and await them sequentially. Testing showed that concurrent requests are not scalable and would also crash the service.
2021-01-18Update config-default.ymlGravatar Boris Muratov-0/+4
Whitelisted mod_meta and mod_tools as mod channels
2021-01-17Stop Tag Matching On SuggestionGravatar Hassan Abouelela-6/+1
2021-01-17Checks If Similar Command Is NoneGravatar Hassan Abouelela-0/+3
2021-01-17Adds Return On Tag MatchesGravatar Hassan Abouelela-4/+9
2021-01-17Update to use Member.pending instead of bot.http.get_memberGravatar Joe Banks-3/+1
2021-01-16Removed 'Channels' import, unused.Gravatar xithrius-1/+1
2021-01-16Relock PipfileGravatar Karlis S-17/+7
2021-01-16Add startup and daemon tasks canceling on cog unloadGravatar ks129-0/+6
2021-01-16Remove unwatch reason from the !nominate outputGravatar Matteo Bertucci-2/+1
As the watch reason can contain private information, we shouldn't share it with the whole staff.
2021-01-11Update discord.py to the 1.6 releaseGravatar MarkKoz-17/+27
2021-01-11Annihilate all traces of Developer and Unverified rolesGravatar mbaruh-720/+14
2021-01-10Make sure that users without the Developers role can use tag.Gravatar Matteo Bertucci-2/+2
We have a check in place to restrict tag usage to a certain role, but our default is the Developers role, and some users now don't have this code. This commit fixes this by using None as a default and adding a truth test in the check_accessibility method.
2021-01-08Upped duckpond threshold to 5Gravatar Boris Muratov-1/+1
2021-01-06Only helpers and below now get command suggestionsGravatar xithrius-2/+2
2021-01-06Fix BrandingError import in error handlerGravatar ks129-1/+2
2021-01-06Add startup task that starts daemon to branding cogGravatar ks129-4/+5
2021-01-06Fix seasons file import orderGravatar ks129-2/+2
2021-01-06Add missing docstring to Month enumGravatar ks129-0/+2
2021-01-06Refactor branding manager to keep everything in one directoryGravatar ks129-112/+135
To keep everything at one place, moved all branding manager special things to one module.
2021-01-06Remove sir lancebot names from seasonsGravatar ks129-7/+0
2021-01-06Remove unnecessary pass statementGravatar ks129-2/+0
Co-authored-by: Dennis Pham <[email protected]>
2021-01-05If user is a staff member, no command suggestions.Gravatar xithrius-6/+7
2021-01-05Re-lock PipfileGravatar Karlis S-4/+4
2021-01-03Remove unnecessary Keys import from utils cogGravatar ks129-1/+1
2021-01-02Removed 'Optional' import.Gravatar xithrius-1/+1
2021-01-02Removed unnecessary debugging logs.Gravatar Xithrius-2/+0
Co-authored-by: Dennis Pham <[email protected]>
2021-01-02Set reason to default as an empty string.Gravatar Xithrius-5/+2
Co-authored-by: Dennis Pham <[email protected]>
2021-01-02No nominaton reason blank replaced by italic NoneGravatar xithrius-2/+4
2021-01-02Removed possibility of exception via walrus.Gravatar xithrius-16/+16
2021-01-01Update discord.py to fix webhook message publishing.Gravatar Den4200-45/+60
Related to #1342.
2020-12-30"Pending: False" to "Verified: True" to agree with new semantics.Gravatar Steele-1/+1
2020-12-28Update raw command no permission error messageGravatar ks129-1/+1
Co-authored-by: Xithrius <[email protected]>
2020-12-27Enable raw commandGravatar ks129-2/+2
2020-12-27Add check does user can see channel in raw commandGravatar ks129-0/+4
2020-12-25`!user` command says if user is "Verified"Gravatar Steele-2/+2
Previously, `!user` said if the user is "Pending", whereas "Verified" is the boolean opposite.
2020-12-24`if user.pending` -> `if not user.pending`Gravatar Steele Farnsworth-1/+1
This was a logic error. This functionality is unfortunately difficult to test outside of production.
2020-12-23`ALTERNATE_VERIFIED_MESSAGE`: "You're" -> "You are".Gravatar Steele-1/+1
2020-12-23Move PEP cog to info extensions categoryGravatar ks129-0/+0
2020-12-23Move constants out from classGravatar ks129-5/+4
2020-12-22Rewrite `!verify` to account for new native-gate-only verification.Gravatar Steele-10/+11
Renamed method; if not `user.pending`, adds and immediately removes an arbitrary role (namely the Announcements role), which verifies the user.
2020-12-20Add the clear alias to the clean commandGravatar Matteo Bertucci-1/+1
2020-12-20Fix wrong way for getting Git SHAGravatar ks129-1/+1
2020-12-20Remove unused constantGravatar ks129-1/+0
2020-12-20Implement GitHub API authorization headerGravatar ks129-1/+9
2020-12-20Log warning and return early when can't get PEP URLs from APIGravatar ks129-0/+4
2020-12-20Make last PEPs listing refresh non-optionalGravatar ks129-1/+2