| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2021-04-13 | Branding: use tz-aware datetime representation | -7/+8 | ||
| Using `datetime.utcnow` produces a tz-naive object. When converting the object into a POSIX timestamp (L212), the library then converts the naive object into UTC, which will offset it unless the local timezone is UTC. We prevent this behaviour by using an Arrow repr instead, which is by default tz-aware. Since the object already knows it is in UTC, it does not shift when converting to a timestamp. Because L233 used `fromtimestamp` rather than `utcfromtimestamp`, the timestamp then got converted back into local time, canceling the previous error. Therefore, the bug wasn't observable from logs, as the times looked correct, but were being stored incorrectly. By using `Arrow.utcfromtimestamp`, the created object will be aware of being UTC again, which is more safe. | ||||
| 2021-04-12 | Remove reactions from everyone when paginating and waiting for trashcan ↵ | -44/+68 | ||
| reaction. (#1471) * Remove reactions from everyone * Make flake8 happy * Make flake8 happy again * Remove reactions in check functions * Make flake8 happy for the last time * Update bot/pagination.py Co-authored-by: Kieran Siek <[email protected]> * Make create_task one line and return False in checks * Fix return so it returns either True or False * Use scheduling.create_task and suppress HTTPException * Suppress HTTPException in scheduling.create_task * Remove double if-statements Co-authored-by: Mark <[email protected]> * change suppress_exceptions to suppressed_exceptions * Make suppressed_exceptions a kwargs for _log_task_exception * Update scheduling.create_task call to correspond with *args * Fix NameError: reaction, user -> reaction_, user_ * Update scheduling.create_task call to correspond with *args in messages.wait_for_deletion * reaction -> reaction_ * Ignore reactions from the bot * Fix type annotations for create_task * Refactor add_reaction check to a separate function * Name the remove_reaction task Co-authored-by: Kieran Siek <[email protected]> Co-authored-by: Mark <[email protected]> | ||||
| 2021-04-12 | Use == instead of str.startswith | -2/+3 | ||
| 2021-04-11 | Sort the available help channels in #how-to-get-help by position | -1/+3 | ||
| 2021-04-11 | Filtering: use a more thorough regex for zalgo & invisible chars | -35/+91 | ||
| Install the regex package to take advantage of its support for Unicode categories. | ||||
| 2021-04-11 | Recruitment: Don't use emoji literals | -9/+9 | ||
| 2021-04-09 | Filtering: remove invisible characters before checking filters | -0/+22 | ||
| 2021-04-08 | Added how_to_get_help channel constant. | -0/+2 | ||
| 2021-04-08 | Close voice channels with defcon shutdown | -2/+2 | ||
| 2021-04-08 | update comment | -1/+1 | ||
| 2021-04-08 | Use 'Similar names' instead of 'moved' in footer | -1/+1 | ||
| The meaning of 'moved' may not have been clear for people that weren't familiar with how the system works Co-authored-by: MarkKoz <[email protected]> | ||||
| 2021-04-07 | Use the UK version of the YouTube TOS | -3/+3 | ||
| 2021-04-07 | Update YouTube terms in the ytdl tag | -4/+4 | ||
| 2021-04-06 | Reduce default duration of stream permission from 30m to 5m | -1/+1 | ||
| 2021-04-06 | Add a comment to _reload_tasks_from_redis() in the Stream cog. | -0/+2 | ||
| 2021-04-06 | Talentpool: loop style change | -1/+1 | ||
| Co-authored-by: ToxicKidz <[email protected]> | ||||
| 2021-04-06 | Properly handle the lack of nomination of a user | -2/+2 | ||
| 2021-04-06 | Use emoji names in nomination body | -1/+1 | ||
| This caused unicode errors in Discord attachment previews. | ||||
| 2021-04-06 | Add a !tp get_review command to get the nomination text without posting it | -13/+37 | ||
| This can be used when an information should be added to the post, or someone wants to review the user. | ||||
| 2021-04-05 | Convert back to datetime as Embed.timestamp doesn't support Arrow | -1/+2 | ||
| 2021-04-05 | Output stream command confimation in embed for automatic tz conversion | -4/+14 | ||
| 2021-04-05 | Minor test changes for the !user embed | -10/+6 | ||
| 2021-04-05 | Migrate GHCR_TOKEN -> GITHUB_TOKEN in Docker build action | -1/+1 | ||
| GITHUB_TOKEN has now enough permissions to be used for pushing to GHCR, so we don't need PAT anymore. | ||||
| 2021-04-05 | chore: don't create an instance of intents before calling its classmethod | -1/+1 | ||
| 2021-04-04 | Update information tests for new embed color logic | -6/+8 | ||
| 2021-04-04 | Use Member.colour rather than a list comprehension for !user | -3/+1 | ||
| 2021-04-04 | Ignore colourless roles in !user embed | -1/+3 | ||
| 2021-04-04 | Blacklist staff_info for duckpond | -0/+2 | ||
| 2021-04-03 | Remove redundant conversion to Arrow datetime in Stream cog | -1/+1 | ||
| 2021-04-01 | Mention user when upgrading streaming permissions to permanent | -1/+1 | ||
| 2021-04-01 | Ensure duration is always tz-aware | -2/+7 | ||
| 2021-04-01 | Reword logging and docstrings to different mood | -2/+2 | ||
| Co-authored-by: Mark <[email protected]> | ||||
| 2021-04-01 | Use tz aware timestamps and refactor for readibility - Stream cog | -5/+3 | ||
| 2021-04-01 | Update schedule_at() to work with tz aware date times | -2/+6 | ||
| 2021-04-01 | Add missing 'attempts' | -1/+3 | ||
| Co-authored-by: Kieran Siek <[email protected]> | ||||
| 2021-04-01 | Remove redundant traceback log in log.exception | -2/+2 | ||
| 2021-04-01 | Only convert to naive when sending to scheduler, general refactor&comments | -11/+20 | ||
| 2021-04-01 | Convert to arrow for datetime management | -4/+6 | ||
| 2021-04-01 | Remove unnecessary wrapper variable | -2/+3 | ||
| 2021-04-01 | Change references to user's in Stream cog to members | -40/+42 | ||
| 2021-04-01 | Fix spelling errors in logging statements - Stream cog | -2/+2 | ||
| Co-authored-by: Shivansh-007 <[email protected]> | ||||
| 2021-04-01 | Rename function in stream cog for consistancy | -4/+4 | ||
| 2021-04-01 | Describe redis cache var better in stream cog | -1/+1 | ||
| 2021-04-01 | Update policy documents | -122/+8 | ||
| 2021-04-01 | Sprinkle some logging into the Stream cog | -4/+15 | ||
| 2021-04-01 | Stream cog docstring updates | -3/+4 | ||
| 2021-04-01 | function sig formatting, function ordering and remove unnessisary function | -28/+10 | ||
| 2021-03-31 | Remove empty test for stream cog | -20/+0 | ||
| 2021-03-31 | Atempt to get member from cache first, and handle errors from API member call | -1/+19 | ||
| 2021-03-31 | Refactor code to match prevailing style, and reword some output in streaming cog | -8/+10 | ||