aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | | | | * | | | | | | | | | Merge branch 'stream-and-revokestream-commands' of ↵Gravatar Chris2021-04-01-2/+2
| | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | github.com:python-discord/bot into stream-and-revokestream-commands
| | | | | | | * | | | | | | | | | Reword logging and docstrings to different moodGravatar ChrisJL2021-04-01-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
| | | | | | * | | | | | | | | | | Mention user when upgrading streaming permissions to permanentGravatar Chris2021-04-01-1/+1
| | | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | | Ensure duration is always tz-awareGravatar Chris2021-04-01-2/+7
| | | | | | |/ / / / / / / / / /
| | | | | | * | | | | | | | | | Use tz aware timestamps and refactor for readibility - Stream cogGravatar Chris2021-04-01-5/+3
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Update schedule_at() to work with tz aware date timesGravatar Chris2021-04-01-2/+6
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Remove redundant traceback log in log.exceptionGravatar Chris2021-04-01-2/+2
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Only convert to naive when sending to scheduler, general refactor&commentsGravatar Chris2021-04-01-11/+20
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Convert to arrow for datetime managementGravatar Chris2021-04-01-4/+6
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Remove unnecessary wrapper variableGravatar Chris2021-04-01-2/+3
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Change references to user's in Stream cog to membersGravatar Chris2021-04-01-40/+42
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Merge branch 'stream-and-revokestream-commands' of ↵Gravatar Chris2021-04-01-2/+2
| | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | github.com:python-discord/bot into stream-and-revokestream-commands
| | | | | | | * | | | | | | | | | Fix spelling errors in logging statements - Stream cogGravatar ChrisJL2021-04-01-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Shivansh-007 <[email protected]>
| | | | | | * | | | | | | | | | | Rename function in stream cog for consistancyGravatar Chris2021-04-01-4/+4
| | | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | | Describe redis cache var better in stream cogGravatar Chris2021-04-01-1/+1
| | | | | | |/ / / / / / / / / /
| | | | | | * | | | | | | | | | Sprinkle some logging into the Stream cogGravatar Chris2021-04-01-4/+15
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Stream cog docstring updatesGravatar Chris2021-04-01-3/+4
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | function sig formatting, function ordering and remove unnessisary functionGravatar Chris2021-04-01-28/+10
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Remove empty test for stream cogGravatar Chris2021-03-31-20/+0
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Atempt to get member from cache first, and handle errors from API member callGravatar Chris2021-03-31-1/+19
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Refactor code to match prevailing style, and reword some output in streaming cogGravatar Chris2021-03-31-8/+10
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Remove unnessisary functions in stream cogGravatar Chris2021-03-31-6/+2
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Simplify name of function param in stream cogGravatar Chris2021-03-31-3/+3
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Merge branch 'main' into stream-and-revokestream-commandsGravatar Chris2021-03-31-3531/+5360
| | | | | | |\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Merge pull request #1463 from kwzrd/kwzrd/brandingGravatar Joe Banks2021-03-31-669/+766
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / | |/| | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | Branding: log after successful fetchGravatar kwzrd2021-03-31-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Shivansh-007 <[email protected]> Co-authored-by: Joe Banks <[email protected]>
| | * | | | | | | | | | | | | | Branding: apply documentation improvements after reviewGravatar kwzrd2021-03-31-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No code changes in this commit. Co-authored-by: Shivansh-007 <[email protected]> Co-authored-by: Joe Banks <[email protected]>
| | * | | | | | | | | | | | | | Branding: target 'main' branchGravatar kwzrd2021-03-31-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the branding-side PR merged, we can now target the production branch.
| | * | | | | | | | | | | | | | Merge: changes from 'upstream/main'Gravatar kwzrd2021-03-31-272/+282
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lockfile conflict resolved by re-locking on the merged Pipfile.
| * | | | | | | | | | | | | | | Merge pull request #1491 from python-discord/fix/dmrelayGravatar Joe Banks2021-03-30-13/+9
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into fix/dmrelayGravatar Xithrius2021-03-30-345/+490
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Merge pull request #1470 from python-discord/help-channel-closing-delay-changesGravatar Joe Banks2021-03-30-345/+490
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend close time logic to differentiate between the claimant and other users
| | * | | | | | | | | | | | | | | | Fix copy & paste error in closing reason enumGravatar Chris2021-03-30-1/+1
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | Change to an Enum for possible closing reasonsGravatar Chris2021-03-30-20/+32
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | Enumerate all possible values for closed_on in docstringGravatar Chris2021-03-30-1/+4
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | HelpChannels: refactor get_closing_timeGravatar MarkKoz2021-03-30-43/+43
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | HelpChannels: use aware datetimes everywhereGravatar MarkKoz2021-03-30-27/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issues converting timestamps to datetimes and vice-versa. The main culprit id `datetime.timestamp()`, which always assumes naïve objects are in local time. That behaviour conflicts with discord.py, which returns naïve objects in UTC rather than local time. Switching from `utcfromtimestamp` to `fromtimestamp` was incorrect since the latter also assumes the timestamp is in local time.
| | * | | | | | | | | | | | | | | | Update arrow to 1.0.3Gravatar MarkKoz2021-03-30-267/+336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has some API changes, so it's best to update now before the project starts using the library more.
| | * | | | | | | | | | | | | | | | Switch to datetime.fromtimestamp() to avoid over-compensationGravatar Chris2021-03-26-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we were using `utcfromtimestamp()` which would compensate the timestamp when converting to UTC even though the timestamp itself was in UTC: >>> datetime.utcnow() datetime.datetime(2021, 3, 26, 22, 8, 47, 441603) >>> a = datetime.utcnow().timestamp() 1616821624.207364 >>> a = datetime.utcfromtimestamp(a) datetime.datetime(2021, 3, 27, 5, 7, 4, 207364) By switching to `fromtimestamp()` this avoids that behaviour.
| | * | | | | | | | | | | | | | | | Use correct constant for each type of help session userGravatar Chris2021-03-26-5/+5
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | 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
| | | | | | | | | | | | | | | | | |