aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-01-22Update badges on the README fileGravatar Matteo Bertucci-4/+3
2021-01-21Fix aliases of shadow tempbanGravatar Joe Banks-1/+1
2021-01-21Added slowmode tracking to dpy and ot0Gravatar Boris Muratov-2/+12
2021-01-21Changed slowmode reset testsGravatar mbaruh-12/+4
2021-01-21Added slowmode stat for python-general.Gravatar mbaruh-4/+8
2021-01-21Slowmode reset now uses slowmode setGravatar mbaruh-10/+1
2021-01-20Prevent bot from sending DMs to itselfGravatar Joe Banks-0/+4
Fixes BOT-KX
2021-01-20Remove incorrect pointGravatar Chris-1/+0
2021-01-20Apply suggestions from code review Gravatar ChrisJL-2/+2
Grammar Co-authored-by: Mark <[email protected]>
2021-01-19Add a section on why to use a virtual envGravatar Chris-3/+12
2021-01-19Fix urlGravatar Chris-1/+1
2021-01-19grammar and spelling fixesGravatar Chris-18/+18
2021-01-19Remove additional embed messageGravatar Boris Muratov-9/+1
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-04Set asyncio logger level to INFOGravatar MarkKoz-0/+3
If asyncio's debug mode is enabled, the asyncio logger's level gets set to DEBUG. While other features of the debug mode are useful, the DEBUG log level spams generally irrelevant stuff.
2021-01-04HelpChannels: fix unclaim exiting too early if claimant is NoneGravatar MarkKoz-4/+2
2021-01-04HelpChannels: fix manual use of lock decoratorGravatar MarkKoz-3/+3
2021-01-04HelpChannels: fix race condition when unclaiming a channelGravatar MarkKoz-0/+1
Place a channel-specific lock on `unclaim_channel`. If both the dormant task and the command simultaneously unclaim a channel, one of them will silently be aborted. Fix #1341
2021-01-04HelpChannels: change caller str parameter to a boolGravatar MarkKoz-11/+12
Booleans are less error-prone than strings.
2021-01-04HelpChannels: unschedule the dormant task in unclaim_channelGravatar MarkKoz-2/+5
Ensure the cancellation will be under the lock once the lock is added.
2021-01-04HelpChannels: clarify close command docstringGravatar MarkKoz-2/+1
Referencing internal functions in public-facing documentation is not helpful to users.
2021-01-04HelpChannels: refactor the close command checkGravatar MarkKoz-10/+10
2021-01-04HelpChannels: make a channel available within the lockGravatar MarkKoz-5/+6
If the lock causes the function to abort, a new channel shouldn't be made available. However, the only way to know it's aborted from the outside would be through a return value or global variable. Neither seem as nice as just just using `create_task` within the lock to avoid having `move_to_available` hold the lock.
2021-01-04Add asyncio.create_task wrapper which logs exceptionsGravatar MarkKoz-0/+17
Normally exceptions are only logged when tasks are garbage collected. This wrapper will allow them to be logged immediately through a done callback. This is similar to how the Scheduler logs errors.
2021-01-04HelpChannels: fix race condition between claiming and unclaimingGravatar MarkKoz-1/+15
The race condition is when a user claims a channel while their other channel is being unclaimed. Specifically, it's while their cooldown is being removed. The lock ensures that either the cooldown will be re-applied after it's removed or that it won't be removed since `unclaim_channel` will see the user has another claimed channel.