aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Add 1 second due to POSIX timestamps being lower resolution than datetime ↵Gravatar Chris2021-03-26-3/+5
| | | | objects.
* Fix error when converting non claimant messageGravatar Chris2021-03-26-7/+10
| | | | | | datetime.min cannot be converted to a timestamp as it's pre-epoch. Instead wait until we actuall need it and then create the correct datetime object depending on teh cache contents.
* Convert to timestamp before posting to redisGravatar Chris2021-03-25-2/+2
|
* Reset a channel's non-claimant cache on claim, to indicate that the session ↵Gravatar Chris2021-03-25-7/+9
| | | | has yet to be answered.
* Refactor if block within help channel system to be more readableGravatar Chris2021-03-25-6/+7
|
* Refactor help channel update message cache function for clearer flowGravatar Chris2021-03-25-9/+8
|
* Create utc datetime objects from timestampsGravatar Chris2021-03-25-4/+4
|
* Change help channel caching logic to use timezone naive stampsGravatar Chris2021-03-25-3/+3
|
* Only fetch claimant id onceGravatar Chris2021-03-25-2/+3
|
* update help channel on_message docstring to reflect unchanged responsibilityGravatar Chris2021-03-25-6/+1
|
* Schedule channels just opened using claimant configured idle timeGravatar Chris2021-03-25-1/+1
|
* Check for close on command explictly.Gravatar Chris2021-03-25-1/+1
|
* Remove unneeded cache clearingGravatar Chris2021-03-25-8/+0
|
* Change help channel logic to use timezone naive stampsGravatar Chris2021-03-25-8/+6
|
* Don't prepend command closes with autoGravatar Chris2021-03-25-2/+3
|
* Add back seperation whitespaceGravatar Chris2021-03-24-0/+1
|
* Use claiment idle time as default idle minutes.Gravatar Chris2021-03-24-1/+1
|
* Use fallback behaviour during cog initGravatar Chris2021-03-24-5/+8
|
* Merge pull request #1476 from laundmo/help-channel-closing-delay-changesGravatar ChrisJL2021-03-20-27/+45
|\ | | | | reset cache on bot start, stats for different close reasons
| * run precommit with all depsGravatar laundmo2021-03-20-1/+1
| |
| * passing pre-commitGravatar laundmo2021-03-20-4/+11
| |
| * reset cache on bot start, stats for different close reasonsGravatar laundmo2021-03-19-28/+39
|/
* More descriptive comment for when an if block is enteredGravatar Chris2021-03-18-1/+1
|
* Determine closing time from last message if either cache is empty, rather ↵Gravatar Chris2021-03-18-2/+2
| | | | than if both are empty
* If the channel is empty, determine closing time based on last message.Gravatar Chris2021-03-18-4/+5
|
* Move return behaviour comments to in-line rather than docstring.Gravatar Chris2021-03-18-8/+4
|
* Delete cached claimant message time.Gravatar Chris2021-03-18-0/+1
|
* Update function name to describe new behaviour.Gravatar Chris2021-03-18-3/+3
| | | | Also updates the doc string to reflect this new behaviour.
* Repurpose unanswered cache for storing non-claimant last message timesGravatar Chris2021-03-18-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.
* Improve docs strings and variable names within the help channel systemGravatar Chris2021-03-17-20/+20
|
* Improve availible channel embed footerGravatar Chris2021-03-17-1/+1
|
* Improve trace message.Gravatar Chris2021-03-16-1/+1
|
* Extend close time logic to differentiate between the claimant and other users.Gravatar Chris2021-03-16-29/+75
|
* Update help availible footerGravatar Chris2021-03-16-1/+1
| | | | | As we have complicated this logic, we now don't specify exactly how long until the channel will close.
* Set a reasonable default for `idle_minutes_others`.Gravatar Chris2021-03-16-1/+1
|
* Split out help channel idle time constantsGravatar Chris2021-03-16-3/+8
| | | | | This allows us to configure the idle time allowed for claiments seperate from tohers.
* Merge pull request #1468 from ↵Gravatar Matteo Bertucci2021-03-16-3/+4
|\ | | | | | | | | python-discord/bug/info/bot-xk/defcon-threshold-none Account for defcon threshold being None when displaying server info
| * Info: account for defcon threshold being NoneGravatar MarkKoz2021-03-15-1/+2
| | | | | | | | Fixes BOT-XK
| * Defcon: fix naming conflict between threshold cmd and attributeGravatar MarkKoz2021-03-15-2/+2
|/
* Merge pull request #1465 from python-discord/gitattributesGravatar Dennis Pham2021-03-14-2/+1
|\ | | | | Use .gitattributes to normalise line endings on check-in
| * Use .gitattributes to normalise line endings on check-inGravatar MarkKoz2021-03-13-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.
* master => mainGravatar Joe Banks2021-03-13-22/+22
|
* Update help channel names from chemical elements to fruitGravatar Joe Banks2021-03-13-126/+59
| | | | | * Update and rename elements.json to fruits.json * Update _name.py * Update _cog.py
* Merge pull request #1461 from python-discord/simplify-pypiGravatar ks1292021-03-13-21/+12
|\ | | | | Simplifying the PyPi command.
| * Added '_' to allowed chars, shortened embed.Gravatar xithrius2021-03-12-21/+12
|/
* Merge pull request #1455 from python-discord/many-snowflakesGravatar Matteo Bertucci2021-03-12-11/+16
|\ | | | | Allow the sf command to take more than one snowflake at the time
| * Merge branch 'master' into many-snowflakesGravatar Xithrius2021-03-12-262/+248
| |\ | |/ |/|
* | Fix typo in the token removerGravatar Matteo Bertucci2021-03-12-1/+1
| |
* | Merge pull request #1452 from python-discord/pypi-delete-on-not-foundGravatar Matteo Bertucci2021-03-12-27/+35
|\ \ | | | | | | Remove invoked command and message after failure.
| * \ Merge branch 'master' into pypi-delete-on-not-foundGravatar Matteo Bertucci2021-03-12-3/+2
| |\ \ | |/ / |/| |