#dev-log

1 messages ยท Page 13 of 1

oak estuaryBOT
odd spireBOT
regal archBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
#
[python-discord/site] New branch created: ChrisLovering\-patch\-1
odd spireBOT
regal archBOT
#
[python-discord/site] branch deleted: ChrisLovering\-patch\-1
regal archBOT
#
[python-discord/bot] New branch created: shenanigansd\-patch\-1
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/sir-robin] New branch created: trivia\-night\-port
regal archBOT
#
[python-discord/bot] branch deleted: shenanigansd\-patch\-1
oak estuaryBOT
regal archBOT
odd spireBOT
oak estuaryBOT
odd spireBOT
oak estuaryBOT
odd spireBOT
oak estuaryBOT
odd spireBOT
oak estuaryBOT
regal archBOT
odd spireBOT
oak estuaryBOT
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: add\-nom\-alias
#

About displaying the supported python versions, I think displaying it as a range (e.g. 3.8 - 3.11) would be nice, but the API only returns individual supported versions (under response["info"]["classifiers"], prefixed with "Programming Language :: Python ::"), which would mean some extra processing has to be done. It should also account for packages that don't have support for a version in-between (e.g. 3.8, 3.9 and 3.11), but I think falling back to listing individual versions would be...

odd spireBOT
regal archBOT
regal archBOT
regal archBOT
regal archBOT
regal archBOT
#
[python-discord/bot-core] branch deleted: paste\-api
#
[python-discord/bot-core] branch deleted: add\-done\_callbacks\-to\-schedules
regal archBOT
thin oysterBOT
#
Sir Robin

Connected!

regal archBOT
#
[python-discord/bot] New branch created: vivek/dont\-pin\-nomination
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
regal archBOT
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

night lilyBOT
#
Sir Lancebot

Connected!

#
Sir Lancebot

Connected!

regal archBOT
#
[python-discord/sir-lancebot] New branch created: disbale\-reddit\-webhook
#

Otherwise this will error every morning while r/python isn't accessible

Relevant Issues

<!-- Link the issue by typing: "Closes #" (Closes #0 to close issue 0 for example). -->

Description

Did you:

  • [ ] Join the Python Discord Community?
  • [ ] Read all the comments in this template?
  • [ ] Ensure there is an issue open, or link relevant discord discussions?
  • [ ] Read and agree to the [contributing guidelines](https://python...
odd spireBOT
regal archBOT
#
[python-discord/sir-lancebot] branch deleted: disbale\-reddit\-webhook
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

oak estuaryBOT
odd spireBOT
oak estuaryBOT
regal archBOT
odd spireBOT
oak estuaryBOT
regal archBOT
odd spireBOT
oak estuaryBOT
odd spireBOT
regal archBOT
oak estuaryBOT
regal archBOT
odd spireBOT
mint goblet
oak estuaryBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] branch deleted: vivek/dont\-pin\-nomination
odd spireBOT
oak estuaryBOT
regal archBOT
#
[python-discord/bot] New branch created: vivek/dont\-pin\-nomination
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] branch deleted: vivek/dont\-pin\-nomination
odd spireBOT
oak estuaryBOT
regal archBOT
#
[python-discord/bot] New branch created: pre\-commit\-update\-2\.5\.0\-to\-4\.4\.0
odd spireBOT
odd spireBOT
regal archBOT
#
[python-discord/bot-core] New branch created: bump\-d\.py
regal archBOT
#
[python-discord/bot] New branch created: swfarnsworth/help\-thread\-timeout
odd spireBOT
odd spireBOT
regal archBOT
regal archBOT
#
[python-discord/site] branch deleted: pre\-commit\-update\-2\.5\.0\-to\-4\.4\.0
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

regal archBOT
#
[python-discord/bot-core] branch deleted: bump\-d\.py
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
#

I very vaguely remember the discussion behind this feature so I just want to double check whether the issue has to be raised on the python-discord/mods repo or python-discord/admins (?) repo.

Whenever a vote has passed the upvote threshold, the admins add a ticket to the admin tasks tracker** and not python-discord/mods repo- which is why I'm asking for clarification on which repo stale reviews should be posted.

**I'm not actually sure what the "admin tasks tracker" is, I always...

regal archBOT
regal archBOT
#
[python-discord/bot] branch deleted: swfarnsworth/help\-thread\-timeout
oak estuaryBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
regal archBOT
regal archBOT
#

# is used to provide additional context to an incident report without creating a new ticket. However, due to the new Discord markdown feature, the messages starting with # turns into heading text

and the messages end up looking huge.

We could use a different prefix or, as suggested by @import-pandas-as-numpy (sudorem on discord), use the message reply feature.

I personally prefer replacing # prefix with message replies.

regal archBOT
regal archBOT
#
[python-discord/bot-core] New branch created: lexer-validation
odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: use-bot-core-paste-service
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
oak estuaryBOT
regal archBOT
regal archBOT
#
[python-discord/bot] New branch created: simplify-subscribe
odd spireBOT
regal archBOT
#
[python-discord/sir-lancebot] New branch created: fix-pride-facts
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

regal archBOT
odd spireBOT
oak estuaryBOT
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] branch deleted: pre-commit-update-2.5.0-to-4.4.0
odd spireBOT
regal archBOT
oak estuaryBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
regal archBOT
#
[python-discord/bot] New branch created: vivek/incidents-context
odd spireBOT
regal archBOT
#

Closes #2647.
You can now include additional context to an incident reply by replying to a message and it will not be treated as a separate incident ticket.

I've not removed the previous method of adding additional context (iie, by prefixing # to the message) for now to make transition easier (reporter muscle memory and all that).
Howeverm , IMO, removing it immediately will not inconvenience helpers much and it may also assist in the discovery of this change.

Screenshot:
![imag...

odd spireBOT
regal archBOT
#

One of the changes in dpy 2.3 is

Update __str__ for User to drop discriminators if the user has been migrated.

This will break this regex:

https://github.com/python-discord/bot/blob/56c57ea7b73582fe46eff9fd4771c738891dd650/bot/exts/recruitment/talentpool/_review.py#L49

I think just removing #\d{4} would fix it and also be backwards compatible.

Added a fix for this, to make the #XXXX op...

odd spireBOT
regal archBOT
#

I can reproduce this consistently by running

while True:
    with run_gunicorn():
        ...

and waiting a bit. It seems like with run_gunicorn() can finish before the actual process is dead, allowing a new process to be created which causes an error as the port is still in use by the last process.

run_gunicorn() terminates the process here:
https://github.com/python-discord/snekbox/blob/9804a10a598b678225d299178113210f74a25392/tests/gunicorn_utils.py#L80

Addin...

odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: compf_pings
odd spireBOT
oak estuaryBOT
regal archBOT
#
[python-discord/bot-core] branch deleted: lexer-validation
#
[python-discord/bot] New branch created: fix_domain_filter
odd spireBOT
regal archBOT
#
[python-discord/bot] branch deleted: vivek/incidents-context
odd spireBOT
regal archBOT
odd spireBOT
oak estuaryBOT
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] branch deleted: fix_domain_filter
oak estuaryBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
#

I've looked into it a bit more and tried a few things. For each test i just ran

while True:
    with run_gunicorn():
        pass

Test 1 - just proc.join

        proc.terminate()
        s = time.time()
        proc.join(40)
        print(time.time() - s)
  • The error never seems to appear.
  • proc.join mostly takes less than 0.5s, but occasionally takes just over 30s, sometimes along with a warning saying a gunicorn worker was killed. [30s is the d...
regal archBOT
#
[python-discord/snekbox] New branch created: fix-status-badge
#

Running python -m unittest tests/test_integration.py gives this error

root@snekbox_dev:/snekbox# while true; do python -m unittest tests/test_integration.py; done
/root/.local/lib/python3.11/site-packages/falcon/media/__init__.py:4: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  from .handlers import Handlers
2023-06-22 11:59:55,203 |  8983 |                 gunicorn.error |    ERROR | Exception in worker process
Traceback (most recent call last):
...
#
[python-discord/snekbox] branch deleted: fix-status-badge
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/snekbox] New branch created: fix-integration-tests
odd spireBOT
regal archBOT
#
[python-discord/site] branch deleted: fix-status-badges
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
#

17a82d9 Bump pydis-core from 9.7.0 to 9.8.0 - dependabot[bot]
c868811 Write custom get_role func for MockMember - ChrisLovering
5f182ed Update MockAttachment data with new expected fi... - ChrisLovering
0d104ae Update NOMINATION_MESSAGE_REGEX for new discord... - ChrisLovering
65f38f9 Merge pull request #2642 from python-discord/de... - shtlrs

odd spireBOT
oak estuaryBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
oak estuaryBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
#

But all the other duckies are facing left. Not sure how to make it work with the skull

I think facing it left makes it thematically different from :skull: (I'm assuming that's the reason for ducky_skull), also ducky_sphere isn't strictly left facing either

I though twemoji were under a creative commons license...
Also, we should be fine using Twemojis (like in a lot of our other assets)....

whoops, wasn't sure what license applied off the top of my head

I'm fine with ei...

odd spireBOT
regal archBOT
regal archBOT
#
[python-discord/snekbox] branch deleted: fix-integration-tests
oak estuaryBOT
odd spireBOT
oak estuaryBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
oak estuaryBOT
regal archBOT
#
[python-discord/site] New branch created: add-new-rule-aliases
odd spireBOT
regal archBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
#

dac3024 Don't have interaction_owner as a class var - ChrisLovering
eae9f4b Remove logic around when a role is available - ChrisLovering
b18570f Swap the order of interaction resposnes in sub cog - ChrisLovering
75f1bad Merge branch 'main' into simplify-subscribe - minalike
c8bcc63 Merge pull request #2650 from python-discord/si... - minalike

#
[python-discord/bot] branch deleted: simplify-subscribe
oak estuaryBOT
regal archBOT
#
[python-discord/bot-core] New branch created: bump-d.py
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
oak estuaryBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
regal archBOT
regal archBOT
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

regal archBOT
night lilyBOT
#
Sir Lancebot

Connected!

thin oysterBOT
#
Sir Robin

Connected!

#
Sir Robin

Connected!

odd spireBOT
odd spireBOT
regal archBOT
#
[python-discord/branding] New branch created: snake-day
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
regal archBOT
#
[python-discord/bot-core] New branch created: expiry-label
#
[python-discord/bot-core] branch deleted: expiry-label
odd spireBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: optimise-startup-time
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
#
[python-discord/bot] New branch created: invite-symbols
odd spireBOT
regal archBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
odd spireBOT
odd spireBOT
oak estuaryBOT
#

Doc item doc_item.symbol_id='grammar-token-python-grammar-key_datum' present in loaded documentation inventories not found on site, inventories may need to be refreshed.

regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: phishing_button
#

Adds a button to the mod alert when there's a chance this is a phishing attempt. Pressing the button will compban the user and add the appropriate content as an autoban filter.

Additionally, when adding an invite filter, if the given content isn't in the discord.gg/ pattern, it will instead take it as the invite code itself as long as it doesn't contain spaces.

odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: undo-sentry-sdk-update
#
[python-discord/sir-lancebot] New branch created: revert-1315-dependabot/pip/sentry-sdk-1.27.0
odd spireBOT
regal archBOT
#
[python-discord/bot] branch deleted: undo-sentry-sdk-update
odd spireBOT
oak estuaryBOT
night lilyBOT
#
Sir Lancebot

Connected!

odd spireBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
regal archBOT
#

I've tried emulating this with a 1024x768 viewport on both chrome & firefox but could not reproduce. You mentioned that chrome is on the latest version, but i see that there is an Update message in the top right. Could you try updating and try again?

If that still doesn't work, could you open console and run console.log($(window).width(), $(window).height()) and send the results here?

regal archBOT
odd spireBOT
regal archBOT
odd spireBOT
night lilyBOT
#
Sir Lancebot

Connected!

regal archBOT
regal archBOT
regal archBOT
#
[python-discord/bot] branch deleted: optimise-startup-time
oak estuaryBOT
regal archBOT
#
[python-discord/sir-lancebot] New branch created: snakes-cleanup
#

Relevant Issues

None

Description

I was only planning on replacing async_timeout for aiohttp with ClientTimeout since it's now the preferred way, but accidentally found 3 bugs in the process:

  • .snakes card didn't work any more due to a function being removed from PIL
  • .snakes card (once fixed) sometimes fails due to an image not being found for the snake
  • .snakes card (once fixed again) when passing an argument, it can ask you to select a number but it just... didn't...
#

Sentry Issue: SIR-LANCEBOT-A6

AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
  File "bot/exts/fun/snakes/_snakes_cog.py", line 1011, in card_command
    final_buffer = await self.bot.loop.run_in_executor(None, func)
  File "bot/exts/fun/snakes/_snakes_cog.py", line 245, in _generate_card
    offset += CARD["font"].getsize(line)[1]

Unhandled command error: 'FreeTypeFont' object has no att...
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: fix-test-warnings
#

Currently these warnings are raised when running tests:

tests/bot/exts/backend/test_logging.py::LoggingTests::test_debug_mode_false
tests/bot/exts/backend/test_logging.py::LoggingTests::test_debug_mode_true
  C:\Users\wookie\Documents\GitHub\bot\bot\exts\backend\logging.py:18: RuntimeWarning: coroutine 'Logging.startup_greeting' was never awaited
    scheduling.create_task(self.startup_greeting(), event_loop=self.bot.loop)
  Enable tracemalloc to get traceback where the object...
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
regal archBOT
#

We'll need to define exactly what we want to do with the exception.

The thing is, our error handler handles errors raised inside commands, which isn't the case for tasks.

We could generate a "fake context", but I'm unsure of how good of an idea that is.

What we also do is override the Loop class' on_error callback and define the "generic" exception handling there.

We'd then have, in pydis_core.ext.tasks

from discord.ext.tasks import Loop as BaseLoop, LF
from disco...
odd spireBOT
regal archBOT
#
[python-discord/bot] branch deleted: fix-test-warnings
oak estuaryBOT
odd spireBOT
regal archBOT
regal archBOT
#
[python-discord/site] New branch created: drop-redirect-url-refs
odd spireBOT
regal archBOT
#
[python-discord/sir-lancebot] branch deleted: fix-pride-facts
night lilyBOT
#
Sir Lancebot

Connected!

regal archBOT
#
[python-discord/site] New branch created: fix-postegresql-typo
odd spireBOT
regal archBOT
#
[python-discord/site] branch deleted: fix-postegresql-typo
odd spireBOT
regal archBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
odd spireBOT
odd spireBOT
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
#
[python-discord/site] New branch created: fix-broken-link
odd spireBOT
odd spireBOT
regal archBOT
#
[python-discord/site] branch deleted: fix-broken-link
odd spireBOT
regal archBOT
#
[python-discord/bot] New branch created: remove-caching-util
odd spireBOT
regal archBOT
#
[python-discord/sir-robin] New branch created: remove-duplicate-services-module
odd spireBOT
regal archBOT
odd spireBOT
regal archBOT
regal archBOT
#
[python-discord/bot-core] New branch created: update-channel-util-signature