#dev-contrib

1 messages ยท Page 156 of 1

clever wraith
#

^ @green oriole

vale ibex
#

but I've changed it to ping now

#

just dev testing

#

depends on the context

#

simpler can be good, unless there's a good reason for convention

magic arch
#

love the new buttons for help groups zig

#

all these new buttons are great lol

vale ibex
#

alright, small PR to improve ux for the subscribe command bot#1985

cold island
#

!help reminders

stable mountainBOT
#
Command Help

!remind [mentions]... <expiration> [content]
Can also use: reminder, reminders, remindme

*Commands for managing your reminders.

The expiration duration of !remind new supports the following symbols for each unit of time: - years: Y, y, year, years - months: m, month, months - weeks: w, W, week, weeks - days: d, D, day, days - hours: H, h, hour, hours - minutes: M, minute, minutes - seconds: S, s, second, seconds

For example, to set a reminder that expires in 3 days and 1 minute, you can do !remind new 3d1M Do something.*

Subcommands:

!remind delete <id_>
Delete one of your active reminders.
!remind edit
Commands for modifying your current reminders.
!remind list
View a paginated embed of all reminders for your user.
!remind new [mentions]... <expiration> [content]
Set yourself a simple reminder.

cold island
#

Nice

vale ibex
#

Yea, just pointing it out since poetry run task test is a lot longer than just plain pytest

#

In bot we have it since we add a bunch of params for xdist and code coverage

#

and retesting config

fallen patrol
#

addopts can be configured to always run with those params

clever wraith
#

core devs: might want to comment on the open api PRs so no more work in being put into them, no?

fallen patrol
#

poetry run runs it in the environment, pytest must be ran within the environment as well

#

so its only comparing task test to pytest

#

if you're running pytest, its either already in the venv OR poetry run pytest

#

and task test and pytest are about the same length so

dusky shoreBOT
magic arch
stable mountainBOT
#
Alright.

Your reminder will arrive on <t:1638406149:F>!

fallen patrol
#

small pr to fix the hanukkah command before hanukkah is over, since its currently live!
sir-lancebot#959

dusky shoreBOT
fallen patrol
#

only one more review needed ^^

trail pilot
#

it's ready for merge now ๐ŸŽ‰

fallen patrol
#

yay i can't merge it tho ๐Ÿ˜”

#

@vale ibex wat, no automerge turned on?

#

yay

vale ibex
#

@fallen patrol what do you mean by no labels added to the pr yet, tho?

fallen patrol
#

triage

vale ibex
#

PR labels are mostly just for categorisation, rather than functionality

fallen patrol
#

:facepalm:

vale ibex
#

unless its the Do not merge, or needs devops

fallen patrol
#

i have been out of it today lol

vale ibex
#

๐Ÿ˜„

fallen patrol
#

oh lol i have sir-lancebot#950 also open--needs one review

dusky shoreBOT
fallen patrol
#

then i'll go sleep

#

because i apparently need it

vale ibex
#

deleting code, nice

fallen patrol
#

yep

#

nice

#

as there is no trashcan, its clear that lance was killed while I was paginating ๐Ÿ˜‚

fallen patrol
vale ibex
#

yup it is ๐Ÿ˜›

thorny obsidian
#

If anyone's in my test server, could you test the .aoc link command?

short snow
#

Zig modpings ๐Ÿ‘€

thorny obsidian
#

hm... I actually found a decent use case for the walrus operator in this feature and it's readable

trail pilot
#

usually I've just used the walrus operator for truthiness checks like:
if role := discord.utils.get(guild.roles, name="Role Name")

thorny obsidian
trail pilot
stable mountainBOT
magic arch
#

Hey can someone peek at sir-lancebot#962? It should be an incredibly quick fix and it'd be awesome to have it live before AoC day 2 opens.

dusky shoreBOT
short snow
#

You can put them into "" though

magic arch
#

True, but that seems unnecessary complicated for folks who don't know that when it's the only argument

short snow
#

Hmm yeah, you could probably just PR IMO

thorny obsidian
fallen patrol
#

yeah, chris is asleep (or at least not online)

magic arch
fallen patrol
thorny obsidian
#

I already have lance up and running for a few feature reviews, so it's not the contrib review I'm concerned about

magic arch
#

Plus a core dev would need to review and merge either way

short snow
#

ping joe/scal/xith lol

#

all are online

fallen patrol
#

oh, didn't actually realise that a core dev had to review everything

#

thought it was 2 (authorized) people or a core dev

magic arch
#

Yeah it's 2 staff and a core dev ๐Ÿคทโ€โ™‚๏ธ (core dev also counts for staff)

thorny obsidian
#

If it's not a tag speedrun, then you need a core dev + 1

vocal prairie
#

two staff/contrib reviews, one has to be a core dev

short snow
#

one staff + one coredev

fallen patrol
#

okay i think i got it

#

๐Ÿ˜‚

thorny obsidian
#

Some changes require specific admin approval too depending on which repo and which features they're changing

thorny obsidian
patent pivot
#

imagine sleep

magic arch
#

loll

thorny obsidian
#

ugh, I have no good way of splitting this feature into more than one commit

magic arch
fallen patrol
#

sadly joe is above

#

joe go to sleep

short snow
#

so should you

fallen patrol
#

no

short snow
#

i won't review ๐Ÿ™ƒ

magic arch
#

well it is done, everyone wish the pr good luck! sir-lancebot#963

dusky shoreBOT
thorny obsidian
magic arch
#

true, maybe we can strip quotes? not sure if it's valid for aoc usernames to have quotes

thorny obsidian
#

I think the solution there would be to see if starts and ends with " and if so, it strips just that from the ends

magic arch
#

gotcha, will do really quick

short snow
#

what if someone's name has" at end and start lol

thorny obsidian
#

can you show an example?

short snow
#

lemme try

magic arch
#

can't see a single " in our 700+ people on the leaderboard, so my guess is no but idk

thorny obsidian
#

Because I don't know of anyone's AoC leaderboard starting and ending with " since the name comes from one of the Auth methods or you select Anonymous #121312

magic arch
#

although there is ๏ฟฝ so there's that

short snow
#

how do make it choose your github name, not username

#

it = adventofcode

#

i had seen eivl paste a screenshot containing his github name

thorny obsidian
#

These are the only options I have

#

It comes from GitHub when you Auth I'm pretty sure

short snow
#

ok yeah had to reauth

thorny obsidian
#

Right, so people can. Who does though?

#

And they need their Github name to be that and they need to Auth with their github name being that

short snow
#

๐Ÿคทโ€โ™‚๏ธ

vocal prairie
#

I think having a QoL feature that works for 99% of people is more important than the odd person sticking quotes in their name

short snow
#

yeah

magic arch
#

technically if that happens they can just go like ""Shivansh"" and this'll work for that 0.01%

short snow
#

but then that odd person won't be able to use it

magic arch
#

no i'm saying they can with two double quotes on each end instead

#

it'll only strip one pair of quotes

short snow
#

hmm maybe

magic arch
#
        if self_placement_name and self_placement_name.startswith('"') and self_placement_name.endswith('"'):
            self_placement_name = self_placement_name[1:-1]

like this, if self_placement_name is passed as ""Shivansh"" it'll turn into "Shivansh"

short snow
#

yeah

#

and use all()

magic arch
#

yeah just super rough code to test it first lol

#

actually looks like it might have to be ands, otherwise it doesn't check self_placement_name first

#

that arg can be none, None.startswith raises an error, etc

short snow
#

yeah i was just writing that lol

#

and instead of .starswith/etc you could self_placement_name[0] == self_placement_name[-1] == '"'

magic arch
#

ah true

#

just getting set up to add our staff lb in there so I have a two word name to actually test

short snow
#

and shorten the var name ig lol

magic arch
#

maybe, should we change that arg to just username maybe @thorny obsidian?

thorny obsidian
short snow
#

yeah aoc_name is okay also you could make it a single line if you are changing the name

fallen patrol
#

left new review

magic arch
#

also might go back to startswith/endswith for readability if its shorter now

fallen patrol
#

!d str.removeprefix

stable mountainBOT
#

str.removeprefix(prefix, /)```
If the string starts with the *prefix* string, return `string[len(prefix):]`. Otherwise, return a copy of the original string:

```py
>>> 'TestHook'.removeprefix('Test')
'Hook'
>>> 'BaseTestCase'.removeprefix('Test')
'BaseTestCase'
```   New in version 3.9.
magic arch
#

i think we just want to strip if they're at the start and end

fallen patrol
#

๐Ÿ‘

fallen patrol
stable mountainBOT
#
Sure thing!

Your reminder will arrive on <t:1638449648:F>!

green oriole
#

It was mostly a joke amegablobsweats but it is true I didn't run it locally because

  1. I/we already tested it on chris' bot
  2. Two people already approved, it just needed a final sign off to confirm that's the two staff reviews are good enough
    The main thing is that I didn't know how d.py 2.0a0 views work so reviewing that is a bit tricky
short snow
#

If I understand bot-core currently, we would probably move the extensions cog to bot-core right? Since it is something which is needed on both the bots

patent pivot
#

yeah I suspect we'll move things like that across

short snow
patent pivot
#

probably, yes

short snow
#

ok ๐Ÿ‘ Also if some coredev has got sometime, it needs another approval :D

vale ibex
#

@vocal wolf @molten perch @brisk brook Pinging since you have approved/have open feedback on it.

I've pulled sir-lancebot#778 up to speed with main and added a commit on top to fix an issue I found during testing

dusky shoreBOT
vocal wolf
#

you fixed stuff just now?

vale ibex
#

yea

vocal wolf
#

ah I see the force push

vale ibex
#

the last commit

vocal wolf
#

thought you meant a different pr lol

vale ibex
#

Yea, force pushed to get it up to main

#

and resolve conflicts

vocal wolf
#

roight

vale ibex
#

the final commit I just added

vocal wolf
#

wait I thought this PR was merged already

#

dang

vale ibex
#

it should probably be tested again before merging

vocal wolf
#

thanks for bringing it up to head

#

ye

vale ibex
#

I've done some local testing but the merge conflicts were extensive

vocal wolf
#

I will test after I wake

#

if it's not merged by then

vale ibex
#

๐Ÿ‘Œ

vocal wolf
#

oh right

vale ibex
#

I'm gonna dismiss your review just incase another core dev clicks the shiny green button

vocal wolf
stable mountainBOT
#
I got you.

Your reminder will arrive on <t:1638481109:F>!

brisk brook
molten perch
#

Oh yeah, sorry. When I approved this we were not gonna remove the issue command, and such. (And I was not even a staffer back then) Iโ€™ll check it out as soon as I can.

short snow
#

Dorsan congrats on coredev btw

vale ibex
clever wraith
#

Hello, first time im in this channel, just checked the !contributing and it brought me here. So anyone can add anything in the sir lancebot open-source project? Are there any requirements? I mean, if I'm allowed can I try to implement a user vs bot blackjack game.... ?

vale ibex
#

The usual process is to create an issue on the github repo with as much information on what you want to make

#

Then we discuss it within the issue, until it gets appoved/denied

#

Once the issue is approved, we would then accept a PR that implements it

#

We advise you to wait until the PR is approved before starting work, since we don't want you to waste time building something that may be denied at some point

#

Of course, you can always look at the already open issues for things to work on too ๐Ÿ˜„

vale ibex
short snow
#

github pull request, basically they are merge requests which you open to repositories to merge your "code" in theirs

vale ibex
#

essentially you write the code, and then request maintainers of the main code to pull those changes into the source

short snow
#

chris can you review a PR on lance ducky_wizard

vale ibex
#

I've been slowly making my way through Github notifications, so feel free to request my review from github

#

unless it's a tiny PR that I can review quickly ๐Ÿ˜…

clever wraith
#

and when I mean import functions, its some custom stuff

vale ibex
#

If you get an idea of what you want to implement, and it gets approved

#

then we can help you out with implementation details ๐Ÿ˜„

#

You can always ask here with any specific questions you have

clever wraith
#

Okay, is there a link to where I can post an issue in the github? Also do you have like a template I can follow when describing what my idea is?

#

sorry if im being annoying

vale ibex
#

.src

dusky shoreBOT
vale ibex
#

!src

stable mountainBOT
short snow
vale ibex
#

on those repositories, go to the issue tab

#

I wouldn't call that tiny haha, quite intricate changes

clever wraith
#

Thank you! ๐Ÿ™‚

short snow
vale ibex
#

I've added it to the list though

short snow
#

it was already in the list lol

clever wraith
#
Add user vs sir-lancebot games where people can enjoy some games :)

Idk if this counts as cheating, but am I allowed to ask if this would be a valid title for the issue? or do I need to be more specific?

vale ibex
#

Yea, you need to be specific to what you want to add.

clever wraith
#

What if I want to implement 2 games? Do I make 2 issues or the 2 games in 1 issue?

short snow
#

2 different issues

#

since one could be approved whereas the second doesn't

#

and its easier understanding the discussion

clever wraith
#

Alright thanks, what does proposal mean? Isn't it marriage?

#

It's in the template "description proposal"

short snow
#

describe your proposal, describe what you are wanting to add to sir-lancebot

clever wraith
#

Ohhhh sorry, okay thanks!

#

@short snow(sry for ping)

## Proposed Implementation
<!-- Detail any implementation you had in mind, including any screenshots if possible -->

I don't understand this one

short snow
#

how would you want your suggesiton to be implemented, like if you are making a issue for a tic-tac-toe game then we could probably include how the board will be looking, will it be using buttons/reactions. How owuld the tic tac toe leaderboard work

clever wraith
#

Oh okay, thanks

short snow
#

if you are fine with anything/haven't planned anything yet you can jsut skip that seciton

#

its optional

clever wraith
#

Oh alright

short snow
#

just helps the contributor who would be assigned to that issue (if it gets approved) better understand the issue to get some insight of what the issue author is asking

stable mountainBOT
vale ibex
#

!e @short snow ```py
my_optional_string = None
if my_optional_string and my_optional_string.startswith("a"):
print("something")

if all((my_optional_string, my_optional_string.startswith("a"))):
print("something else")

stable mountainBOT
#

@vale ibex :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 5, in <module>
003 | AttributeError: 'NoneType' object has no attribute 'startswith'
short snow
#

ah, thanks ๐Ÿ‘ didn't know about that

vale ibex
#

Yea I just ran into it a few weeks ago myself

short snow
#

after looking it its understandable though

fallen patrol
#

.... I just realised something

#

and and or always return something

#

thanks for coming to arl's realisations

vale ibex
#

Almost everything returns something if you include None ๐Ÿ˜„

austere hornet
vale ibex
#

hah

#

I do quite like that feature of the eval command

#

where it only evaluates code inside blocks if there are any

vale ibex
#

!e py a = 5 like this ```py
print(a)

stable mountainBOT
#

@vale ibex :white_check_mark: Your eval job has completed with return code 0.

5
thorny obsidian
#

I love that you can eval across codeblocks

austere hornet
#

Aha

thorny obsidian
#

By far my favorite thing for illustrating points in help channels

vale ibex
#

yupyup

austere hornet
#

Mhm

fallen patrol
#

which i haven't written because I'm still trying to figure out the best way

vale ibex
#

you could always fork snekbox and add additional language support ๐Ÿ˜›

#

while it may not be accepted as a PR upstream, it's a nice base to start from

fallen patrol
vale ibex
#

lol I was thinking about doing it myself a few weeks back

#

Just didn't have time for another project ๐Ÿ˜„

fallen patrol
#

I was trying to do it, but haven't recently

#

problem is the language I'm trying to add only works on windows, so I have to use wine

#

so far I just haven't sat down long enough to try and get it to work

short snow
#

which language?

#

anyone else needs some reviews :D

clever wraith
#

Hey @patent pivot, are the two worker PRs good to go?

#

they all got an approval

patent pivot
#

has it actually been tested

#

how are you reading files in workers (for robots.txt)

thorny obsidian
#

@short snow have you tested the .aoc link feature?

dusky shoreBOT
clever wraith
#

Hmm, didn't someone wanted to build upon it to serve standard files

#

I guess it can be done in a second PR

patent pivot
#

might have been me with .well-known

short snow
patent pivot
#

why don't we add the robots to django though out of interest

#

lol

thorny obsidian
clever wraith
short snow
#

probably just the one you commented on, anyways i am going to bed now, will look into that tomorrow

clever wraith
patent pivot
clever wraith
#

It isn't, but the PR is two months old heh

#

Or do you mean how important it is to serve robots.txt on other domains?

patent pivot
#

on other domains

clever wraith
#

Wasn't that discussed in #dev-ops?

#

Gah, review auto-dismissal is frustrating sometimes

patent pivot
dusky shoreBOT
patent pivot
#

hold on all API work for now

#

we're talking about the future of the project, will discuss publicly in due course

magic arch
#

Will make the suggested changes to my lance PR tonight when Iโ€™m home, thanks for reviews

stable mountainBOT
#

bot/constants.py line 694

THREE_DAY = 4230```
timid sentinel
#

where is it used?

stable mountainBOT
#

bot/constants.py lines 691 to 695

class ThreadArchiveTimes(Enum):
    HOUR = 60
    DAY = 1440
    THREE_DAY = 4230
    WEEK = 10080```
fallen patrol
#

!e print(1440 * 3)

stable mountainBOT
#

@fallen patrol :white_check_mark: Your eval job has completed with return code 0.

4320
fallen patrol
#

@clever wraith i think the reason its not day * 7 in the constant is because weird stuff happens with enums when that's done

timid sentinel
#

not even sure ThreadArchiveTimes is used anywhere

fallen patrol
#

Its probably worth keeping since thread support still hasn't been implemented or adopted by the server (in a public setting)

fiery sage
#

I'd assume it's really not worth keeping with the Discord.py constant that apparently exists

clever wraith
#

It is used

#

Look at the blame

#

I think it is used by the nomination thread system

#

I guess you want to rename to THREE_DAYS?

fallen patrol
#

no, the math is wrong

clever wraith
#

Three days is 4230 minutes though

fallen patrol
#

someone entered 4230 when it should be 4320

clever wraith
#

Oh right

fallen patrol
#

!e print(60 * 24)

stable mountainBOT
#

@fallen patrol :white_check_mark: Your eval job has completed with return code 0.

1440
clever wraith
#

I didn't see the typo

#

That's probably worth a fix then, yes

#

You have ak's approval to PR directly, apparently

#

So have fun

fiery sage
#

Unless I'm crazy, I don't see where this constant is used

#

other than the section right underneath where it's defined

fallen patrol
#

bot#1986

stable mountainBOT
#

bot/exts/recruitment/talentpool/_review.py line 99

auto_archive_duration=DEFAULT_THREAD_ARCHIVE_TIME```
fallen patrol
#

actually that line is not necessary anymore

#

one sec

#

ah

stable mountainBOT
#

bot/exts/recruitment/talentpool/_review.py line 18

from bot.constants import Channels, Colours, DEFAULT_THREAD_ARCHIVE_TIME, Emojis, Guild, Roles```
fallen patrol
#

i mean

#

dpy naturally will use the default for the channel

stable mountainBOT
#

discord/channel.py lines 726 to 733

if message is None:
    data = await self._state.http.start_thread_without_message(
        self.id,
        name=name,
        auto_archive_duration=auto_archive_duration or self.default_auto_archive_duration,
        type=type.value,
        reason=reason,
    )```
stable mountainBOT
#

discord/channel.py line 196

self.default_auto_archive_duration: ThreadArchiveDuration = data.get('default_auto_archive_duration', 1440)```
fallen patrol
#

and instead, set it on the channel's themselves

fiery sage
#

Are you able to change the default?

#

Currently it's at a week with the constant

fallen patrol
fiery sage
#

oh, I see

fallen patrol
#

this is the default for the channel

fallen patrol
#

if the server ever goes to level 2 boosting that feature will stop working

#

it shouldn't happen, but best to not plan on always having it

vale ibex
#

It's there so that we can use the shorter times in dev

#

since dev guilds won't have nitro boosts

#

also, just an easily accessible enum of options

fiery sage
#

I don't think that'd be a problem if the default is per-guild

#

I think essentially this solves a problem that doesn't really exist

vale ibex
#

Is there a guild default?

#

I thought it was channel default?

fallen patrol
#

the constant isn't necessary IMO, just change channel defaults to 1w

fallen patrol
vale ibex
#

Yea, I see your point about it breaking if we ever lose level 3 boosts

#

however unlikely that is to ever happen lol

#

Feel free to open another PR removing it, just make sure to update the reviewer cog that references them too ๐Ÿ˜„

fallen patrol
#

but granted, it also means that it could break if discord changes: "You now need boost level four for threads"

vale ibex
#

Yea

#

I feel like having the enum there isn't causing harm and could be useful for future

fallen patrol
#

same

vale ibex
#

since I imagine it would have been added to d.py regardless at some point

fallen patrol
#

i'm about to open an issue on the fork i favour to add it

vale ibex
#

Make sure not to include my typo

#

๐Ÿ˜„

fallen patrol
#

lol

#

fwiw, @vale ibex, they aren't accurate anyways

#

if you set, eg 1h archive time on a thread, it could be 1 hour, 10 minutes

#

so the typo isn't that bad, but the api would complain

vale ibex
#

hah good to know

fallen patrol
#

erg, i've never set up bot

#

lol idk why i find this a bit funny

#

setting up the advanced thing is required for the intermediate thing

last patio
#

well, setup difficulty isn't contribution difficulty

fallen patrol
#

true

#

actually

#

i shouldn't have to start the bot to remove this constant

vale ibex
fallen patrol
#

I haven't gotten around to fixing my gpg problems so I can't right now

#

...wow I'm that lazy

#

@vale ibex making the pr, have you already changed the default of the channel to a week, or should i mention that needs to be done?

fallen patrol
vale ibex
#

yea I can do that now

#

done ๐Ÿ˜„

fallen patrol
#

sweet

#

bot#1987

dusky shoreBOT
fallen patrol
#

@patent pivot can you turn off the king arthur checks

patent pivot
#

lol

#

should be a bit quieter now

fallen patrol
#

thank you lol

vale ibex
#

totally didn't discover that by trying to do arthur deployments redeploy snexbox

patent pivot
#

wait what happens

#

arthur deploy redeploy ohno

radiant merlinBOT
#

:x: Redeployment aborted

radiant merlinBOT
radiant merlinBOT
vale ibex
#

it's fine

patent pivot
#

amazing

vale ibex
#

it just will never work, so no point allowing it to spam and click buttons again

patent pivot
#

no it's a non-existing deployment

cold island
#

@vale ibex so remind me, the first message in the cache is the earliest?

vale ibex
#

yea

#

it's a fifo queue

cold island
#

umm

#

yeah

#

ok

fallen patrol
#

well i just learned about this

#

uh

#

why are there so many help channel prs?

#

nvm there's not that many

#

no, theres 3

#

sir-lancebot#953
this feels a bit overdone?
Like, I feel like help, ping, text commands, avatar, should continue to work in dms

dusky shoreBOT
clever wraith
#

The reasoning about forbidding DMs is that it can't be easily observated and moderated

fallen patrol
#

I mean, does a help command have to be moderated??

#

and avatar commands?

#

serious question, btw

clever wraith
#

Avatar commands, I think so

#

Help channels it is mostly for observability

#

But I'm not a core dev

cold island
#

How do I show trace logs on the bot?

#

(in dev)

fallen patrol
#

TRACE_LOGGERS

#

iirc

cold island
#

BOT_TRACE_LOGGERS according to the bot guide which I wrote myself lol

stable mountainBOT
#

bot/constants.py lines 197 to 203

class Bot(metaclass=YAMLGetter):
    section = "bot"

    prefix: str
    sentry_dsn: Optional[str]
    token: str
    trace_loggers: Optional[str]```
fallen patrol
#
bot:
  trace_loggers:
#

that too i think

#

just make a config system that doesn't care if its env or yaml ๐Ÿคก

cold island
vale ibex
#

Yea, it's BOT_TRACE_LOGGERS

#

It's a comma separated list of cog names

#

or, BOT_TRACE_LOGGERS=*

#

which I have in my env

fallen patrol
fervent sage
#

Is there an open issue currently for adding a few discord.py forks to the docs command, I'd look but mobile

fallen patrol
#

not that i know of uh i'll check for you

fervent sage
#

Tyty

fallen patrol
#

power moderator/shitposter of said forks smh

fervent sage
#

Shhhh Kek

#

Its mainly because more people are asking about them now in discord-bots so being able to get up symbols is useful

fallen patrol
fallen patrol
fervent sage
#

Yeah that's my concern

#

The only one I'm positive won't break anything is disnake

#

Since the shim is optional

fallen patrol
#

and dislash

fervent sage
#

Dislash is an extension for dpy rather than a dork

#

Fork

fallen patrol
fervent sage
#

Lol dork

#

Yeah the shim ain't really great

fallen patrol
#

is there really a good way to make a shim?

fervent sage
#

I can probably make nextcord releases that don't have the shim too

fallen patrol
#

can I dm you?

fervent sage
fallen patrol
#

I have some fork info that I don't want to share here

fervent sage
#

Sure

fallen patrol
#

bot#1988

dusky shoreBOT
cold island
#

Might move it to meta

fervent sage
stable mountainBOT
fallen patrol
vale ibex
#

there were a few others who reviewed too

#

(The first sentence of the message you linked)

brisk brook
#

@gritty wind why is it better that the __init__ silently fails rather than error (such as when you're developing).

gritty wind
#

No that's the thing, the way I did it it won't silently fail

#

I'm saying if we did it some other way, it would

brisk brook
#

Ah, I see.

fallen patrol
#

ah I'll review it

#

hmmm

fallen patrol
fallen patrol
#

clearly this pr should be merged, but after that, maybe it belongs on python

#

oof, sorry, I will have a lot of suggested changes

gritty wind
fallen patrol
#

which pr?

brisk brook
gritty wind
#

No rush then

fallen patrol
#

ah, botcore ๐Ÿ˜”

gritty wind
#

I just woke up a few hours ago, so I'll probably be around to merge it all day lol

#

Yup

fallen patrol
#

ugh i'd love to help with that

#

saw you're using sphinx with the furo theme, nice

brisk brook
#

So this was a "do tomorrow" kind of thing

magic arch
#

@short snow hey, addressed your review in sir-lancebot#963 (and thanks @/arl)

gritty wind
#

That's alright lol

dusky shoreBOT
fallen patrol
magic arch
brisk brook
# gritty wind That's alright lol

Were you hoping to merge it soon?

I could take one last look (especially on the Sphinx configuration file and GitHub actions) and see if I can spot anything. (and have you merge it afterward).

gritty wind
#

Yes, but this isn't exactly a critical PR we can merge it later

#

Go sleep :bonk:

brisk brook
#

Thanks lol

magic arch
# dusky shore

^ heya scaleios if you want a quick pr to review btw ๐Ÿ˜‚

#

niceee ty

gritty wind
#

Wanna squash it or just merge

magic arch
#

eh up to you, i have no opinion there tbh

gritty wind
#

Cool cool cool

magic arch
#

awesomeee ty

gritty wind
#

.aoc_leaderboard Hassan Abouelela

magic arch
#

mm not reconnected yet

gritty wind
#

Channel

#

It should've still worked off the old bot

fallen patrol
#

.aoc_leaderboard

magic arch
#

oh it's no _

fallen patrol
#

not sure its a command

#

.aoc lb

magic arch
#

wait now it's up

fallen patrol
#

the few seconds while lance was down lmfao

gritty wind
#

#bot-commands

dusky shoreBOT
#

:x: Please use #aoc-bot-commands for aoc commands instead.

fallen patrol
magic arch
#

awesome all working

gritty wind
#

Good reminder to go do by aoc too

vale ibex
#

cough cough sir-lancebot#960

dusky shoreBOT
fallen patrol
vale ibex
#

actually, thinking of it, this isn't going to affect the leaderboard command anyway

fallen patrol
#

lol i'm only on line 100 of the first file of lance#778 with 7 comments already

#

sorry for the work

thorny obsidian
vale ibex
#

Yea, I realised lb isn't actually a command that is allowed outside and would be redirected ๐Ÿ˜„

thorny obsidian
#

I can review that as soon as I finish this sticker

vale ibex
#

oooo sticker ๐Ÿ‘€

#

I hope it's as artistic as this one

austere hornet
thorny obsidian
# vale ibex

that was so fucking funny, even out of context

vale ibex
#

lol yea

austere hornet
#

This is probably not the right channel for this, but @thorny obsidian I noticed that you have the "Partner: r/Python" role but not "Partners". Is it supposed to be like that?

fallen patrol
#

.....github that is dumb

austere hornet
#

Lmfao

fallen patrol
#

what just happened

thorny obsidian
patent pivot
#

oh lol

#

im moron

austere hornet
#

Lmfao

fallen patrol
thorny obsidian
fallen patrol
#

that is a help command or error handler bug

thorny obsidian
#

I saw that I had access to the correct channels and didn't even bother to verify

austere hornet
fallen patrol
#

yeah

austere hornet
#

.github is though

fallen patrol
#

@patent pivot are you at the pub again lmao

fallen patrol
fallen patrol
#

Note: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response.

trail pilot
austere hornet
trail pilot
#

i think

austere hornet
#

ah ok

static canyon
#

Anyone can use it here, people with nitro can use it in any discord server

static canyon
#

Same applies for all our custom emotes (that's how they work on discord)

fallen patrol
#

ooh sweet i found a place which can cut down a request on github autolinking

#

this will half the requests made to github by @dusky shore when running pull autolinking

#

...oh wait, it doesn't provide draft info. darn.

#

ooh yes it does!

#

@vale ibex i left a review on sir-lancebot#778, found a place where two requests are used, except all of the data is supplied in the first request

dusky shoreBOT
fallen patrol
#

so instead of lance making two requests per pr, only one request is needed

#

I also left an implementation example

#

uh

gritty wind
#

Yeah I saw

#

No idea

fallen patrol
#

lol

fallen patrol
#

@brisk brook did you actually run sir-lancebot#745

dusky shoreBOT
short snow
#

When we are waiting for the guild to be available there isn;t a need to fetch channels right? Since the cache would already be updated and would contain the channel

thorny obsidian
#

re-pull the image and re-build

short snow
#

i rebuilt the venv, but why did that happen?

#

Kat, removing it works (commented on github-)

fallen patrol
#

yummy reviews

#

@thorny obsidian and @hoary haven I feel like you would know
I'm reviewing the patron pr rn and am wondering, should it be prepared for members to have multiple patreon roles?

thorny obsidian
hoary haven
#

yeah basically what kat said

fallen patrol
#

well, it would be on the first of each month when it would be a problem

#

since the first of each month is when the info embed is sent to #community-meta

hoary haven
#

i tried to reproduce it but couldn't get it to work (bc it was during a month where i already had the highest role i think)

fallen patrol
#

bot#1917 btw

dusky shoreBOT
thorny obsidian
#

first of each month should be fine because patreon should resolve it and remove one of the roles

hoary haven
#

i think when the 1st of the month came, my lower tier role went away

thorny obsidian
#

The only hellish race condition I could think of is if a person like... somehow upgraded during the patreon integration update? maybe?

thorny obsidian
magic arch
fallen patrol
#

jeez, i should take a break

#

i've reviewed half of lance's and bot's open prs today

#

er, more than half

#

well time to look at site

fallen patrol
#

inb4 kronifer asks for reviews

clever wraith
#

@vale ibex and @molten perch, as you both have reviewed bot#1889 i should probably let both of you know that it has been updated to use tldextract

dusky shoreBOT
clever wraith
fallen patrol
#

lol

clever wraith
fallen patrol
#

ah, i see now

fallen patrol
#

@clever wraith why be sorry lol

clever wraith
#

idk i just feel like its gonna be an annoying thing to review

#

i havent contributed in a month ok im out of the loop

fallen patrol
#

lol

#

I uh

#

I have reviewed 20+ prs today so

clever wraith
#

wow

short snow
#

and they were at the hospital yesterday

fallen patrol
#

(the one i left instructions on how to fix)

#

because i have seen it so much, even to go as far to do it myself

#

i- I'll put it this way

#

that's happened so much, I have a taskipy task.

gritty wind
#

There is really no problem with bumping all deps in that PR tbh

#

We modify them so rarely, and we don't have any alerts to keep us up to date

fallen patrol
#

redis got bumped to 4.0.0

gritty wind
#

If they work, might as well

#

So....?

#

Is it broken

fallen patrol
#

not sure, I was investigating the changelogs

gritty wind
#

I see only one breaking change, and it doesn't impact us

clever wraith
#

oh is my pr gonna mess things up?

fallen patrol
#

its what i said about the poetry lock updates

#

but it might not be a problem, from what scale is saying

fallen patrol
#

tldr rapidfuzz wasn't computing a fuzz properly and now it does

fallen patrol
#

nvm, I had missed an obvious line of code

#

I wrote up a whole thing on how there was discrepancies between coros and non-coros

#

then noticed its taken care of with an if action is load await else..

fallen patrol
#

would someone drop a sanitised summary of why commands can't be ran in dms?

green oriole
#

so yeah, the two reasons is we want to have information if the command fails, and be able to moderate the result

fallen patrol
#

Well, for some commands I get that

#

for others, not so much

green oriole
#

that's why I think !user would be fine to allow

#

although I would like to make it clear that if we allow it it is because it will have another purpose in DMs

gritty wind
#

My reasoning is partly because of the debugging stuff, but also because running stuff in DMs means we have much less control over what's happening with the bot. We can't as easily figure out what's happening, and why. If something starts breaking because someone found a loophole, we have no way of dealing with it

#

But I really don't think being able to run this command in DMs is that much of a benefit

fallen patrol
gritty wind
#

We can still just add it as an option on discord

green oriole
#

we do have stuff like battleship running in DMs

fallen patrol
#

hrmmmm, compromise?

gritty wind
#

Yes, but only for the game itself, and even then, not a fan

green oriole
gritty wind
#

!u infractions for instance could DM you

fallen patrol
#

remove the infraction info from !user for non-staff

#

and then do what scale just said before me

gritty wind
#

That way we get the DMs aspect, without having to accept commands from DMs

fallen patrol
#

in other news scale and I tend to think on the same page, apparently

green oriole
fallen patrol
#

๐Ÿ˜‚

gritty wind
#

I mean, I've been saying it here and #community-meta for like 10 messages >.>

green oriole
#

yup

fallen patrol
#

i didn't see you say making a subcommand

gritty wind
#

I guess we could make it an option but eh
hyperlemon

fallen patrol
#

that wasn't clear to me ๐Ÿ˜“

#

I thought you were talking about making dm vs not dm an option

#

huh if it becomes a subcommand, it can become a bit more detailed with infraction information, if y'all want that

gritty wind
#

Do you mean like seeing the specific infractions?

#

We did discuss specifically allowing that in the mod team before

fallen patrol
#

or summaries

gritty wind
#

Let me see where that weant

fallen patrol
#

Its not like I have 8 infractions or anything plus a few notes

gritty wind
#

Actually, now I remember

fallen patrol
#

its also not like I know exactly what they all are already including at least one of my notes

gritty wind
#

There are specific limitations that mean we can't send any past infraction text

#

Maybe infraction type, but that's as far as we can go

fallen patrol
#

limitation as?

gritty wind
#

We usually edit the infractions afterwards with information intended for the mod-team

fallen patrol
#

ahhhh

#

although the resend dm feature is in a pr right now

gritty wind
#

Since we don't store edits, we have no way of automatically going back to the original

green oriole
#

I wouldn't mind changing the detail infraction per infraction

gritty wind
#

!note @green oriole test

stable mountainBOT
#

:ok_hand: applied note to @green oriole.

gritty wind
#

I was hoping for an infrac number

fallen patrol
#

just warn him then

green oriole
#

I mean it is gonna be 100

gritty wind
#

56171

#

we can't filter them by hand

green oriole
#

oh, ID

fallen patrol
#

oh shit i gotta go sleep

gritty wind
#

If we wanted to send the reasons in DMs in the future, we can start now recording the original message

#

But we can't make it retroactive

green oriole
#

Showing like

Your total infractions:
Mutes: 24 (1 active)
Superstars: 1
Voice_bans: 6
Warnings: 49
doesn't sound so bad

#

that's what is on the mod embed, without shadow infracs

gritty wind
#

Yes, that's fine if we want to do it

fallen patrol
#

yeah I figured

green oriole
#

that's my infraction count if you are wondering

fallen patrol
#

Superstars: 1
wait how many of these do I have?

#

I think only one, but eivl might have done a second one too

fallen patrol
green oriole
#

do I look fake to you? lemon_sentimental

fallen patrol
#

no

gritty wind
#

That's the only true way to identify who's on the other side

green oriole
#

wat

#

is that a python range notation

gritty wind
#

This is a python server after all

fallen patrol
#

that's python slice notation

green oriole
fallen patrol
#

sorry, had to be pydantic ๐Ÿ‘€

green oriole
#

have I passed your captcha?

gritty wind
#

Faaaake, a true frenchman would break out the calculator and a notebook for this

#

Though I suppose you're more italian

#

Conclusion: uncertain, need more tests

green oriole
clever wraith
#

how long would it take until my issue is answered, looking in #dev-log others get answered very quick

#

ah okay, also one more question, i saw in the topic above us, what is a superstar?

short snow
#

IIRC its when someone has a inappropriate name and moderators force a discord nickname to them which they can't change for a certain while (taking away their nickname change permission)

clever wraith
#

ahh alr

#

Ah also, if my issue is accepted, and i make a code for the bot do i get the contribute role?

#

what does substantial mean

brisk brook
static canyon
#

If that one contribution was really big, then you could get it for just that

#

But generally speaking, yes

brisk brook
#

Think of it similar to the helper role, you don't get it for helping one person once ๐Ÿ˜…

static canyon
brisk brook
dusky shoreBOT
clever wraith
gritty wind
#

No, it's dead

#

So ig you really don't want reviews on that

gritty wind
brisk brook
short snow
clever wraith
gritty wind
#

We are not going to be continuing it, though an official announcement has not been made

clever wraith
#

im bad at explainign whats in my mind but i wanna try to do this

gritty wind
#

Hmm, well we can take it one step at a time, the store system, and the games aren't necessarily dependent on each other

#

The whole store thing sounds like a hard sell though

clever wraith
#

whats a hard sell?

#

sry

gritty wind
#

Like the whole chips, and being able to upgrade and what not

#

It's not a small thing, and I don't know if we want something like that or not

#

You can open an issue for it, though I'm not sure how I feel about it

clever wraith
#

oh okay maybe the games can be accepted though? i did already do a issue yesterday, still waiting

gritty wind
#

(you can also open individual issues for each game, though battleships and connect 4 already exist)

clever wraith
#

oh it does? i made an issue for blackjack

gritty wind
#

I don't think we have one open for blackjack, though we may have shot it down in the past for gambling

clever wraith
#

ohโ€ฆ damn.. but my idea has no gamble but i get the idea, blackjack is usually used for that

gritty wind
#

Though I'm not too opposed to blackjack

#

probably best I spell that out

clever wraith
#

ill just wait and see if its denied or accepted blobshrug

gritty wind
#

Just gonna have to wait for the announcement for further details

short snow
#

well lemon_pensive ok

short snow
#

yeah dorsan's work on API testing

green oriole
#

Dorsan was part of the meeting that led to the API sunset

green oriole
#

I do not

brisk brook
#

Soonโ„ข

green oriole
#

not like it really matters though

austere hornet
#

Wait so the API repo is getting deleted? I missed the convo a bit

green oriole
#

perhaps just archived, but yes

short snow
#

there was no convo here, just a coredev meeting IIRC

green oriole
short snow
#

Idk

austere hornet
#

Oh I was asleep probably then

#

So I didn't see

austere hornet
short snow
#

just joe saying hold on your development on API and wcodes asking for updates ig

austere hornet
#

Ahhh gotcha

fervent sage
green oriole
#

announcement to come soon

fallen patrol
#

@thorny obsidian you said "we won't we doing this" in aoc but I don't see any replies on either of my issues about aoc commands, could please provide a reason why the ideas bsoyka and I came up with won't work?

thorny obsidian
fallen patrol
#

if you didn't read the full text of the issue, the title that you saw does not match the rest of the pr, I think I updated it after sending that embed

thorny obsidian
#

Like I said, I will take a look and respond once I have some time.

dark ginkgo
#

How to convert django project into exe file?

vale ibex
fallen patrol
#

which pr num is Christmasify

vale ibex
#

yea, sir-lancebot#956

dusky shoreBOT
vale ibex
#

currently draft

fallen patrol
#

I left a comment on bot#1991, even thought it already got merged

dusky shoreBOT
fallen patrol
gritty wind
#

What's the point of leaving that comment four hours after the PR was merged

#

Anyways, it's probably a wont-fix because most repos don't change master every week

fallen patrol
#

Hmmm

#

From what I can tell, a value that's been saved to a dictionary and then the reference is updated will keep the old reference

#

!e ```py

create the objects

sen1 = object()
sen2 = object()
assert sen1 is not sen2

d = {'a': sen1}

print("is sen1", d['a'] is sen1)
print("is sen2", d['a'] is sen2)

sen1 = sen2
print('reassigned sen1')

print("is sen1", d['a'] is sen1)
print("is sen2", d['a'] is sen2)

stable mountainBOT
#

@fallen patrol :white_check_mark: Your eval job has completed with return code 0.

001 | is sen1 True
002 | is sen2 False
003 | reassigned sen1
004 | is sen1 False
005 | is sen2 False
fallen patrol
#

(I promise this is relevant)

#

@vale ibex I'm reviewing bot#1990 right now, and have found a future hidden bug, which may or may not be worth just letting it occur, with a comment

stable mountainBOT
#

discord/ext/commands/converter.py lines 984 to 990

CONVERTER_MAPPING: Dict[Type[Any], Any] = {
    discord.Object: ObjectConverter,
    discord.Member: MemberConverter,
    discord.User: UserConverter,
    discord.Message: MessageConverter,
    discord.PartialMessage: PartialMessageConverter,
    discord.TextChannel: TextChannelConverter,```
fallen patrol
stable mountainBOT
#

bot/__init__.py line 21

commands.converter.PartialMessageConverter = monkey_patches.FixedPartialMessageConverter```
fallen patrol
#

however, the bot doesn't use PartialMessage as a typehint for any command, so it should be good, but this would crop up in the future if one was implemented

vale ibex
#

Yea, that's a good point, I'm not sure if we'll ever run into it, since there's rarely a reason to use PartialMessage over normal Message

#

but probably worth a comment at least, so that people don't need to do that investigation themselves

brisk brook
vale ibex
#

I checked, and this bug is also in disnake, probably any other forks

fallen patrol
#

Probably because they don't know yet, probably worth making an issue on one of them ๐Ÿ˜›

vale ibex
#

hah yea, there's so many I'd feel bad raising an issue on one and missing others

brisk brook
#

Things don't have names

fallen patrol
brisk brook
#

When you insert something into the dictionary you aren't binding the variable name, you are putting in the value of that variable

fallen patrol
#

yeah

fallen patrol
#

lol at this point where's my co-author /s

#

jk

#

unless...

vale ibex
#

Hah

brisk brook
#

Why not just update the dictionary too instead?

fallen patrol
#

Its not part of the public api

brisk brook
#

The repo is archived ๐Ÿ˜†

fallen patrol
#

I'm more concerned about forks doing weird stuff

#

although when delving into the converter world a few weeks ago I did find that you can make a class method named convert on objects, and dpy will use that, so you don't need to make a converter for every rich class you have

vale ibex
#

Yea, we don't want to go too much in depth with monkeypatches, since that makes migrating harder

#

So preferably we keep them to just what we actually need

brisk brook
#

The thing is that I would hate to be the person debugging this later on ๐Ÿ˜…

fallen patrol
#

sigh I guess I'll figure out how to run bot ๐Ÿ˜”

vale ibex
#

I highly doubt we would ever use the PartialMessage convertor

#

but if we do, the comment is there to save them debug time

#

Since this patch won't break it, it just won't have the fix

fallen patrol
#

..where's the guide to setting up site?

#

without docker

brisk brook
vale ibex
#

on the same page

#

right below the docker instructions

fallen patrol
#

and right below that: docker-compose up web to start the site container. This is required.

#

lol

vale ibex
#

You'd be debugging, "oh the fix we made the the message convertor isn't working" let me see how we did that

brisk brook
#

Hmmm, you have some good arguments..

fallen patrol
#

wait, i need a database too

fallen patrol
#

might be worth figuring out how to run docker i guess

brisk brook
#

Yeah uhh, Docker is great. I still have never installed Redis on my system (well, other than inside Docker).

fallen patrol
#

oh wait i can run them on different machines

#

which is good, since i have docker on one machine, but i haven't debugged with gpg isn't working yet so i don't use it for my development

#

could use it for review i guess

gritty wind
#

You're probably struggling because those are the instructions for bot lol

#

Though yes, docker would be ideal

#

Esp if you want to avoid PG

fallen patrol
#

yeah i'm just going that route for the site so i can run bot

fallen patrol
#

well currently no docker issues

#

does site run on 0.0.0.0 by default?

#

says it is

#

but I can't access it from a different machine

brisk brook
#

No, because it is only exposed on your machine right?

fallen patrol
#

i suppose that's what happening

brisk brook
#

You need to port-forward it

fallen patrol
#

kk

gritty wind
#

tfw cf tunnels are the easiest port forwards

#

My life as a web dev hasn't been the same since someone told me about it

fallen patrol
#

its a local machine so using cf would be... worse

gritty wind
#

No network connection at all?

fallen patrol
#

uh

fallen patrol
gritty wind
#

If it has an internet connection (which I assume it does since you installed docker and pulled the repo), cf's argo tunnels are basically magic for this, but I digress.

Did you start forwarding the port?

fallen patrol
#

Did you start forwarding the port?
not well, apparently

#

how do you forward a port from an ssh session?

gritty wind
#

-R

fallen patrol
#

when connecting to the session?

gritty wind
#

Well, this will be a non-interactive session, but yeah

#

It's... a tunnel ๐Ÿ™ƒ

fallen patrol
#

uh, it was interactive

gritty wind
#

Wdym?

fallen patrol
gritty wind
#

Nightmare

fallen patrol
#

ssh -R 8000:localhost:8000 pc_name

gritty wind
#

ssh -R 8000:127.0.0.1:8000 remote

fallen patrol
#

...

#

why is that not working

gritty wind
#

In my experience, it's impossible to make work

#

Any output?

fallen patrol
#

docker is up, i think

#

yeah, it is

#

...wow i can't believe i thought of using curl from another session to request 0.0.0.0:8000 ๐Ÿ˜‚

#

@gritty wind

gritty wind
#

nice

#

what's up with the red

fallen patrol
#

vscode will just automatically forward running services so ๐Ÿคทโ€โ™€๏ธ

#

its my firefox theme

fallen patrol
austere hornet
#

Yeah it's draft

#

I'm working on it

#

Been a bit busy lately

#

But I'll get to it

#

That reminds me actually

#

sir-lancebot#901 needs reviews

dusky shoreBOT
austere hornet
#

Oh and thanks for dismissing the review @trail pilot

fallen patrol
#

poetry.

#

this just in: 3.9 is 3.8

fallen patrol
#

!paste

#

I've done this part

austere hornet
fallen patrol
#

(it did, i deleted the result with the trashcan emote)

austere hornet
#

Ahhh

gritty wind
#

What's your proto

#

It should be under it's own var

fallen patrol
#

proto?

#

no results for proto in my config.yml

gritty wind
#

It's called scheme

#

L373

#

& 371

#

gotta make sure they are both on http

fallen patrol
gritty wind
#

No clue then

#

Can you still access the site from your browser

fallen patrol
#

yep

#

even checked by refreshing without cache

#

....

gritty wind
#

yeah that sounds about right

fallen patrol
#

windows subsystem has entered the chat

gritty wind
#

if you're running in WSL, that may not have the same localhost as the rest of your system

short snow
#

that's a lot of red

fallen patrol
gritty wind
#

Though I guess you wouldn't get a connection refused

short snow
#

zig modpings pr ๐Ÿ™ƒ friendly bump

cold island
#

Hmmm I want to make utility modules on the bot, but I don't want to prefix each one with an underscore

cold island
gritty wind
#

Could you give an example of what the module looks like

#

Is it a cog, standalone functions, etc

short snow
#

hmm ok

cold island
#

I have a cog in a file, and then I have other files next to it

#

But I have a lot of files next to it

#

So prefixing each one is kinda annoying. I'd like to just define __all__ in the ext init

green oriole
green oriole
#

Windows doesn't know what to do so it just refuses to connect

cold island
gritty wind
#

Do what arl is suggesting:

\
  | cog.py
  | _utils
   \
    | file_1.py
    | file_2.py

I thiiiink it shouldn't load those

cold island
#

hmmm

fallen patrol
#

wait

cold island
#

It won't

fallen patrol
#

is this bot or lance?

cold island
#

I guess that'll work

#

bot

fallen patrol
#

(they have slightly differing implementations)

#
    for module in pkgutil.walk_packages(exts.__path__, f"{exts.__name__}.", onerror=on_error):
        if unqualify(module.name).startswith("_"):
            # Ignore module/package names starting with an underscore.
            continue
fallen patrol
#

oh wait

#

no it might

gritty wind
#

Why are you going back and forth so much lol, it wont

cold island
#

it does ๐Ÿ˜”

#

Except now it throws an import error because of the underscore I guess

gritty wind
#

We can probably switch up the searching function to make it work pretty safely

#

if any(name.startswith("_") for name in module.name.split(".")):

cold island
#

It's using pkgutil.walk_packages and I can't really tell it to not go into the subpackages

gritty wind
#

Yeah, that does seem to work, and doesn't break anything

cold island
#

hmm

gritty wind
#

We can tell it to stop searching if it finds an underscore at any point in the tree

cold island
#

Hmm well it won't stop searching, we can tell it to just ignore each file

gritty wind
#

wdym?

cold island
#

Like