aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-03-18More descriptive comment for when an if block is enteredGravatar Chris-1/+1
2021-03-18Determine closing time from last message if either cache is empty, rather ↵Gravatar Chris-2/+2
than if both are empty
2021-03-18If the channel is empty, determine closing time based on last message.Gravatar Chris-4/+5
2021-03-18Move return behaviour comments to in-line rather than docstring.Gravatar Chris-8/+4
2021-03-18Delete cached claimant message time.Gravatar Chris-0/+1
2021-03-18Update function name to describe new behaviour.Gravatar Chris-3/+3
Also updates the doc string to reflect this new behaviour.
2021-03-18Repurpose unanswered cache for storing non-claimant last message timesGravatar Chris-59/+48
The unanswered cache was previously just a boolen of whether a non-claimant every replied to a help channel. With us now needing to know the time at which a non-claimant messaged in a given channel, we infer the answered status from this cache instead.
2021-03-17Improve docs strings and variable names within the help channel systemGravatar Chris-20/+20
2021-03-17Improve availible channel embed footerGravatar Chris-1/+1
2021-03-16Improve trace message.Gravatar Chris-1/+1
2021-03-16Extend close time logic to differentiate between the claimant and other users.Gravatar Chris-29/+75
2021-03-16Update help availible footerGravatar Chris-1/+1
As we have complicated this logic, we now don't specify exactly how long until the channel will close.
2021-03-16Set a reasonable default for `idle_minutes_others`.Gravatar Chris-1/+1
2021-03-16Split out help channel idle time constantsGravatar Chris-3/+8
This allows us to configure the idle time allowed for claiments seperate from tohers.
2021-03-15Info: account for defcon threshold being NoneGravatar MarkKoz-1/+2
Fixes BOT-XK
2021-03-15Defcon: fix naming conflict between threshold cmd and attributeGravatar MarkKoz-2/+2
2021-03-13Use .gitattributes to normalise line endings on check-inGravatar MarkKoz-2/+1
Remove the mixed line endings pre-commit hook because it is obsolete. Relying on git to handle line endings means contributors have more flexibility with which line endings they want to use on check-out. The settings in .gitattributes only impose which line endings will be used upon check-in (LF), which should not impact local development; git will still respect the core.eol and core.autocrlf settings.
2021-03-13master => mainGravatar Joe Banks-22/+22
2021-03-13Update help channel names from chemical elements to fruitGravatar Joe Banks-126/+59
* Update and rename elements.json to fruits.json * Update _name.py * Update _cog.py
2021-03-12Added '_' to allowed chars, shortened embed.Gravatar xithrius-21/+12
2021-03-12Fix typo in the token removerGravatar Matteo Bertucci-1/+1
2021-03-11Remove invoked command and message after failure.Gravatar xithrius-27/+35
2021-03-12Compose: read all environment variables from '.env'Gravatar kwzrd-4/+2
2021-03-11Compose: read GitHub API key from '.env'Gravatar kwzrd-0/+1
2021-03-09Delete repo specific FUNDING.yml file in favour of org one in ↵Gravatar Joe Banks-2/+0
python-discord/.github
2021-03-09Fix typo in stars.jsonGravatar Matteo Bertucci-1/+1
Please have a bit of respect to the baguette land. Also this is a good way to test the new deploy approval system.
2021-03-09DevOps team reviews for bot deploymentsGravatar Joe Banks-0/+1
2021-03-08Resolving KeyError on infractions that don't purge.Gravatar xithrius-1/+1
2021-03-08Revert "Use JSON logging in production"Gravatar Hassan Abouelela-196/+114
2021-03-08Limit maximum characters for reasons to 1000Gravatar ks129-1/+19
2021-03-08Shorten reason of nomination string to 1000 charactersGravatar ks129-1/+1
2021-03-08Don't mention watching anymore in talent pool add messageGravatar ks129-1/+1
2021-03-08Restrict non-staffer to one snowflake at the timeGravatar Matteo Bertucci-1/+5
2021-03-08Make the snowflake command accept many snowflakesGravatar Matteo Bertucci-12/+13
2021-03-08Fixed unittest for purge infraction.Gravatar xithrius-1/+1
2021-03-08Purge ban now says 'purge ban' on user purge ban.Gravatar xithrius-2/+6
2021-03-07Improve nomination string representationGravatar ks129-2/+2
2021-03-07Mark #appeals as a mod channelGravatar Matteo Bertucci-0/+2
2021-03-06Added filter.Gravatar xithrius-0/+9
2021-03-06Remove trailing whitespaceGravatar Boris Muratov-1/+1
2021-03-06Filtering hotfixGravatar Boris Muratov-1/+7
Bug caused by an outdated function signature in a previous commit in the #1402 PR
2021-03-06Version lock JSON loggerGravatar Joe Banks-2/+2
2021-03-06Use actor mention instead of username in nomination stringGravatar ks129-1/+3
2021-03-06Fix grammar of nomination cogGravatar ks129-8/+8
Co-authored-by: Boris Muratov <[email protected]>
2021-03-06Fix trace logging of nomination 404Gravatar ks129-2/+2
2021-03-06Add parentheses back to previous nominations countGravatar ks129-1/+1
Co-authored-by: Boris Muratov <[email protected]>
2021-03-06Use JSON logging when debug mode is disabledGravatar Joe Banks-16/+33
2021-03-06Add JSON logging dependenciesGravatar Joe Banks-98/+163
2021-03-03Migrate talentpool to new schemaGravatar ks129-27/+59
- Add disable_header to watchchannel initialization. We don't have root actor field anymore, so headers give error and there is no point to rewrite this, because this will be removed soon. - Removed duplicates check of nominations of one user. Now as API allows this, multiple actors can nomination one user. - Add special error message if same actor have already nominated user Every actor can only have 1 nomination entry. - Remove previous reason from watch command We don't store reason that way anymore, and we don't want that this message spam whole channel. - Split end reason and reason editing commands. API PATCH request buildup have been changed, so changing both of them in one command don't make sense anymore. - Migrate nomination string generation
2021-03-03Add disable_header to watchchannel to disable talentpool headersGravatar ks129-1/+7
We need to disable this, because new format of nominations don't match with it.