#dev-contrib

1 messages · Page 97 of 1

sleek steppe
#

Need an emoji for sir-lancebot#661 lemon_grimace

sleek steppe
#

Sure but it might not be the best quality

vocal prairie
#

Emojis are small, so it should be fine.

brazen charm
#

desaturating the current emoji will have the best result

vale ibex
#

got this, just getting it put onto the emoji server now

vale ibex
brazen charm
#

Does that color fit the embed background?

vale ibex
#

!embed PRDraft

stable mountainBOT
vale ibex
#

It's contrasting enough imo

placid ermine
#

how's this looking

thorny obsidian
#

oooh, spiffy. What does something like $e^3 - x_2$ look like?

placid ermine
gritty wind
#

nice

#

what did you end up using

placid ermine
#

matplotlib

#

heh

gritty wind
#

neat

thorny obsidian
#

Niiiiice

tawdry vapor
#

That sounds like a heavy dependency for just latex rendering

placid ermine
#

well it was matplotlib or an api

#

or well sympy which is even heavier

#

or a local latex installation which is even even heavier

#

heh

tawdry vapor
#

Is a local install really that heavy if it's just pure latex without any extra packages

placid ermine
#

heavier than matplotlib, surely?

#

we would also have to worry about untrusted input, etc

tawdry vapor
#

Matplotlib requires a latex installation anyway

#

Oh I see it has its own parser but also support for latex, the latter requires it installed

placid ermine
fallen patrol
#

oh hey

#

I just made issue/pr 666 on lancebot hehe

sleek steppe
#

lol

fallen patrol
#

The real reason I took lunch here

sleek steppe
#

ah you threw me under the bus

fallen patrol
#

no one said you had to make sir-lancebot#665

fallen patrol
#

wait

#

.issue

#

wat that's a command

#

uhm

#

that should be whitelisted in this channel, no?

sleek steppe
#

sir-lancebot#630

sleek steppe
#

wait no

#

sir-lancebot#642

placid ermine
#

where are the error handlers

#

oh nvm

#

should i make a custom exception for latex compilation errors?

sleek steppe
#

normally a try and except should be fine

placid ermine
#

🤢

#

ok

fallen patrol
#

at very least

#

the regex needs to be improved

vocal prairie
#

Why? It's just a link to an issue?

fallen patrol
#

sir-lancsdrbot#1 for example

dusky shoreBOT
fallen patrol
#

that regex is bad

vocal prairie
#

Yeah, that could be better. But why is linking bad?

fallen patrol
#

linking in itself is not bad.

brazen charm
#

I don't think there are many cases where you'd accidentally invoke it, maybe could be whitespace terminate

fallen patrol
#

but making it work in every channel with this regex is a bad idea imo

vocal prairie
#

Oh, got it.

brazen charm
#

does the in message handling include other orgs?

fallen patrol
#

seems like most of the current issues have been patched

fallen patrol
#

lol sad

vale ibex
#

We could easily put a \b either side of the regex so it only looks for full words

#

I think @green oriole is currently fixing/refactoring that cog, what are your thoughts Ak?

fallen patrol
green oriole
#

Yes I am

#

I can do that

#

!remind 13h Add word boundaries around the regex if you haven't already

stable mountainBOT
#
Sure.

Your reminder will arrive in 13 hours!

vale ibex
#

👍

green oriole
#

I don't mind PRs to my branch either if you want to take credit for it

fallen patrol
#

wut

vale ibex
#

I'll push something now

green oriole
#

lmao

vale ibex
#

probably just mobile things 😛

green oriole
#

Nah, just my brain being smooth, there is a missing word

vale ibex
#

lol

fallen patrol
#

ah

#

I'll open an issue on your branch and chris can add the pr

brazen charm
#

What are the gh api limits?

fallen patrol
#

wait just a moment

#

why

#

why is there a special constant for esoteric

vale ibex
fallen patrol
#

oki 👍

thorny obsidian
#

Probably for the esoteric coding challenges we had for a bit

brazen charm
#

and eval

green oriole
#

Eval is allowed in eso, yeah

brazen charm
#

The channel's category was special and it doesn't look like the config was updated so it's "special"

vale ibex
green oriole
vale ibex
fallen patrol
#

.src issue

green oriole
#

For .issue?

fallen patrol
#

.source should really be allowed in this channel.….

brazen charm
green oriole
#

It doesn't

fallen patrol
#

that would be nice pls add

green oriole
#

That was part of the original requirements

#

The staff decided to not include them

#

Dunno why, I wasn't there haha

brazen charm
#

Curious about the reason if someone has it, not really a format that's prone to being used accidentally

vale ibex
#

Oh, branch protection extends to non-main branches 😦

#

That's weird, since it doesn't on bot afaik

fallen patrol
green oriole
green oriole
thorny obsidian
vale ibex
green oriole
#

Well there is not the full reasoning

placid ermine
#

PRed latex, will respond to any comments tomorrow morning, need sleep 😅

green oriole
#

I always read minutes :P

patent pivot
#

what was the reasoning

#

ratelimits maybe?

fallen patrol
#

im guessing possible malicious intent

#

but i'd like the real reasoning

patent pivot
#

which meeting was it

green oriole
#

Long ago

thorny obsidian
#

Jan 17 I think, hard to look on my phone

sleek steppe
#

Would the regex work for just repo#num ?

green oriole
#

That's what it is doing

#

Although it is using a finite list of repos

patent pivot
#

17th january yeah

thorny obsidian
#

People just felt odd about it being automatic for all repos, which I still feel like it's weird. It makes sense in our dev categories for our projects

green oriole
#

I am guessing it is to avoid silly backtracking if you post chunks of #

#

Although that can be easily solved

#

I am not sure why the regex is generated tbh

patent pivot
#

kutiekat i swear to god the american spelling of organization in your minutes will be the death of me

thorny obsidian
#

:3c

green oriole
#

Hahaha

vale ibex
#

fixed

thorny obsidian
#

I change it everytime I make the meeting minutes which is always

green oriole
#

Which one is one again

#

Who is saying armour

patent pivot
#

no you change it AFTER the fact as well

thorny obsidian
#

LMAO I do if I go back to review discussion

patent pivot
#

I hate you

#

let me see if I can find the text chat for this meeting

brazen charm
thorny obsidian
#

People were hung up on the automatic part when opened to all repos

patent pivot
#

yeah

green oriole
#

Wait

#

I was in that meeting

patent pivot
#

seems that the primary thing was abuse combined with ratelimits

vale ibex
#

Maybe we just bring it up again on Sunday?

patent pivot
#

Yeah, sounds like a plan

vale ibex
#

I'm not heavily against the idea, but we should lookup rate limits

green oriole
#

Didn't we already did

#

Oh, about that

#

Okay

thorny obsidian
#

Oh that was the meeting for the help channel names

green oriole
#

Sounds good

patent pivot
#

5k/hr

green oriole
#

Don't mind me

patent pivot
#

but we use them elsewhere for other projects as well

green oriole
#

Maybe limit it to staff? (outside of the pydis org, that is)

#

It sucks a bit though

patent pivot
#

don't think the feature is worth it for staff only

#

I think providing we lock it to a tight regex it should be fairly difficult to accidentally invoke

brazen charm
#

I really doubt that amount of requests would be reached even if the whole server was aware of the functionality (w/o malicious uses of it)

green oriole
#

Something like [a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+#\d+ should be fine-ish

vocal prairie
#

I think a simple regex that looks for sirl---bot#--for example works for accidental lancebots.

green oriole
#

Probably a shorthand for this, but heh

vocal prairie
#

-- being anything

brazen charm
#

the boundaries and lancebot being matched first should take care of it

patent pivot
#

lol

tawdry vapor
#

Yes, [\w-] would be shorthand

green oriole
#

Oh nice

tawdry vapor
#

Also a bonus that it works with Unicode rather than ASCII only

#

Actually it doesn't seem like GitHub would allow Unicode in the URLs anyway

fallen patrol
green oriole
#

Nope

tawdry vapor
#

In that case \w could be set to ASCII with a regex flag

green oriole
#

The token doesn't have any scope AFAIK

patent pivot
#

so

#

lancebot can read private repos

#

but the code used to fetch all pydis repos is unprivileged

#

so it doesn't actually see repos like organisation, admin-tasks, etc.

#

and therefore they don't go in the regex

fallen patrol
#

ah

#

well

#

ohhhh

#

wait

#

huh

#

interesting

green oriole
#

Oh really

fallen patrol
#

yep you've gained some insight into my mind now

#

someone with perms do .src github

green oriole
#

Why don't we just dump a token with no token in it

#

Oh wait

fallen patrol
#

makes sense

green oriole
#

My new code make it be authenticated

#

@patent pivot can we drop the perms for the token?

fallen patrol
#

or

#

make two tokens

#

if that's even allowed

patent pivot
#

I don't think we can, no

#

hmmmmmm

#

which token do we use on lancebot

#

hold on let me delve into k8s

vocal prairie
#

Is k8s short for kubernetes?

fallen patrol
#

oh wait no int e yet

patent pivot
#

ah

#

looks like that token can't read private repos

#

x-oauth-scopes: gist, public_repo, read:discussion, read:enterprise, read:org, read:packages

green oriole
#

Cool

patent pivot
#

we should get someone on that eval implementation

fallen patrol
#

fwiw

#

@green oriole if you're into it, i'd add implementation to check if its public or not

patent pivot
#

do we need that

thorny obsidian
green oriole
fallen patrol
#

that way its proofed against security

patent pivot
#

the current implementation works since we just fetch it unprivileged

#

we can check when we add the org/repo syntax that fetched private repos can only be used in staff channels

#

but there are use cases for this feature for using it to fetch organisation issues

fallen patrol
#

why did that bot never become public sad

patent pivot
#

security

fallen patrol
#

security by obscurity

thorny obsidian
#

Cool I'll see if I can rip it over since I wanted to dive into eval internald anyway

patent pivot
#

if we make our anti-abuse features public, people anti the anti-abuse

thorny obsidian
#

That's... Not security by obscurity

patent pivot
#

I said before, this isn't security through obscurity lol

#

yeah

fallen patrol
#

but aren't all of those features on @stable mountain with anti abuse anyhow

vocal prairie
#

It's security by security not obscurity.

patent pivot
#

hahahaha

#

yeah

fallen patrol
#

unless there's some cogs in @stable mountain that are .gitignored

patent pivot
#

nope

#

we had larger plans for BK, but in the end they were not necessary

fallen patrol
patent pivot
#

certain components that we had in mind for BK such as improved defcon were ported over to defcon on @stable mountain

#

can't remember off the top of my head, but not sure we need to detail too much on that

thorny obsidian
#

Discord has gotten better with raid stuff so we didn't feel the need for a whole separate bot. We're making sure the anti pattern knowledge stays with us so if we need to protect against the raid we have it

vocal prairie
#

And worst case scenario, have an admin turn off send messages for the everyone role. Simple.

patent pivot
#

didn't we port that to defcon

#

I think we have that feature

fallen patrol
thorny obsidian
#

I think the server silence feature got ported over? That or it's on zig's to do

fallen patrol
#

i also wouldn't be surprised if defcon was actually enabled today

patent pivot
thorny obsidian
#

Nice, the defcon upgrades are so nice

fallen patrol
#

….but that description is technically wrong :/

patent pivot
#

huh?

fallen patrol
#

technically speaking

#

Its None, right?

vocal prairie
#

What's steakbot? Is it a new project?

patent pivot
#

no, technically speaking it's right

#

!source defcon shutdown

stable mountainBOT
#
Command: defcon shutdown

Shut down the server by setting send permissions of everyone to False.

Source Code
thorny obsidian
#

Steakbot is joe's glorious slashbot child

patent pivot
vocal prairie
#

Testing slash commands? Nice

patent pivot
#

when the support is there we can migrate core projects to use them

#

but until then it'll remain playful things like steakbot lol

vocal prairie
#

Maybe that'll be the one part of d.py I understand.

fallen patrol
#

hm.…

#

its missing something

#

voice verification, no?

patent pivot
#

huh?

fallen patrol
#

if the server was being raided wouldn't you want to shutdown voice as well?

patent pivot
#

in previous raids

#

the approach there has just been uhh

#

delete the voice channels

#

lol

fallen patrol
#

really.

#

seems like that code could be implemented

patent pivot
#

why wouldn't we lol

#

we could, yeah

fallen patrol
#
lock_vc()
for u in vc:
  u.disconnect()
vocal prairie
#

Literally just turn off view channels.

fallen patrol
#

no, voice channels are special

vocal prairie
#

And set Rules to override.

patent pivot
#

feel free to PR

fallen patrol
#

wait joe

#

can you remove my voice verified role for a moment

patent pivot
#

done

fallen patrol
#

yeah

#

voice channels suck

patent pivot
#

why

fallen patrol
#

i can still talk

patent pivot
#

yeah, we handle that in voice ban

fallen patrol
#

until i get removed from the channel and rejoin

#

okay can i have the role back

vocal prairie
#

But how do they get in in the first place?

patent pivot
vocal prairie
#

That's not an issue.

patent pivot
#

which we account for in voice ban by removing from voice session

fallen patrol
patent pivot
#

oh

#

lol

thorny obsidian
#

Raid accounts generally won't be voice verified, so /shrug

patent pivot
#

i'd opt in to zoot then in that case

fallen patrol
vocal prairie
fallen patrol
#

you're not going to give it back?

#

😔

vocal prairie
#

I'm so confused, since Dave only has a couple files, yet it generates so much data. It's cool.

patent pivot
#

I guess I did remove it, so I'll grant it back lol

fallen patrol
#

if not, expect a dm in about 30 minutes

vocal prairie
fallen patrol
#

to re-clear me from the db

#

lol

patent pivot
#

I should add some notes to the privacy policy saying there are downsides of opting out

fallen patrol
#

i mean

patent pivot
#

we've considered message gating functionality before

fallen patrol
#

if you do opt out

#

after getting voice verifed

#

then you got the role

#

and should be fine

patent pivot
#

yeah, but if a) you then request clearing or b) we change thresholds then you may be ineligible

#

but yeah, opting out doesn't reset the countner

cold island
patent pivot
#

so if you have 50 messages and opt out then you are still eligible

#

since we still have that data

fallen patrol
#

then c) opt back in and requalify and then opt out again and dm joe to clear it

#

fwiw

#

joe is the one who will be more inconvenienced than me

vocal prairie
#

Because you'll spam his dms? /j

patent pivot
#

i have 30 days to handle a deletion request lol

fallen patrol
#

but 30 days to do so

patent pivot
#

opting out is less legal compliance and more a generosity move

#

we don't store any information that requires opt out functionality to be present

fallen patrol
#

ah

#

so I would have to request a deletion request every 30 days then lmao

patent pivot
#

user data is still in metricity

fallen patrol
#

if you didn't have the opt-out*

fallen patrol
cold island
#

yeah

#

I meant a thing to do

fallen patrol
#

a portion of the solution would just be to remove connect perms from everyone as well

#

like

#

one line code

#

I can make a pr

cold island
#

yep

#

sounds good

patent pivot
vocal prairie
#

How does metricity get so much data? I cannot find a place in the repo where it gets so many different types?

fallen patrol
cold island
#

isn't that just an on_message event?

vocal prairie
patent pivot
#

the data there comes from bot

#

hmm

#

is it worth leaking something that provides info on this

vocal prairie
#

Ohhhh. So then what kind of data does metricity get?

patent pivot
vocal prairie
#

I see.

patent pivot
fallen patrol
#

medium smh

patent pivot
#

it's not medium lol

vocal prairie
#

You guys have a blog? Woah.

#

That's cool.

thorny obsidian
#

Wait can you see my post through that?

patent pivot
#

lol i unpublished your thing kutie don't worry

thorny obsidian
#

Oh thank god

patent pivot
#

hahahahahah

fallen patrol
#

@cold island can you clarify which role has the connect permissions

#

i assume its the default_role

#

aka the (dangerous) everyone role

patent pivot
#

everyone has connect, voice verified has speak

fallen patrol
#

interesting

#

entirely irrelevant to any pr, why does the Muted role then block from connecting to all vcs?

#

seems like it should just block from speaking?

patent pivot
#

you can still be a nuisance if you have connect privileges

whole forge
#

this with it blocking connect, people cant spam connect and leave

fallen patrol
#

ah

patent pivot
#

voice banned users generally don't fuck around after being voice banned

#

and if they do, it's nice to completely bar entry

fallen patrol
#

wait

#

is there a voice ban role as well?

#

seperate from muted role

patent pivot
#

No, voice ban just prevents you from verifying

whole forge
patent pivot
#

lol

fallen patrol
#

its 0.001% relevant to a pr

patent pivot
#

it's semi related to implementing this extension to defcon so we're good

fallen patrol
#

…is there not a thingy for making a thingy

#

i mean a template for a pr

patent pivot
#

uhhh

#

for python?

fallen patrol
#

/bot yeah

patent pivot
#

yeah, don't think so

fallen patrol
#

what about /sirbot

patent pivot
#

there is on lancebot

fallen patrol
#

how can i view that lemon_eyes

patent pivot
#

uhh

fallen patrol
#

it.… redirects.

#

so i saw the raw version and only the raw version

#

wait

#

huh

#

why

#

how

#

it somehow redirected but normally doesn't

#

ok

#

pr created

#

removes the connect permission when the server goes sour

vale ibex
#

?

fallen patrol
#

nvm

hardy gorge
#

@green oriole What do you need?

sleek steppe
#

For bot#1511 , I think we should set speak=False

dusky shoreBOT
fallen patrol
fallen patrol
#

It's granted with the voice verify role

#

And changing the permission while in a vc affects nothing because of when discord checks permissions

sleek steppe
fallen patrol
#

Read the next part

#

Changing permissions while in a vc affects nothing because of when discord checks permissions

#

Permissions are reflected when joining the vc and never again.

#

Until you leave and rejoin the vc

#

So if one was to turn that off, it wouldn't affect anything whatsoever

#

Only if for some reason there is a channel which has the everyone role with connect overrides to True

fallen patrol
#

@sleek steppe ^ that make sense?

vocal prairie
#

Why not hide channels?

fallen patrol
#

that would not be a simple single role change

#

that would affect text channels as well

vocal prairie
fallen patrol
#

because it would need to be an edit on every single vc channel

vocal prairie
#

True.

fallen patrol
#

or it would affect text channel as well if turning on view channels

#

this fix disables voice for everyone as well if you aren't already in a channel

fallen patrol
#

hm

#

@patent pivot did the k8s update?

patent pivot
#

huh?

#

why

#

we aren't on the version released today if that is what you are asking

fallen patrol
#

nah

#

@stable mountain has three reconnects in #dev-log

patent pivot
#

that was me, yeah

fallen patrol
#

and from what i remember

#

when it updates it moves around

patent pivot
#

I restarted it to reset some mitigations

fallen patrol
#

what mitigations

patent pivot
#

anti-abuse things

fallen patrol
#

like this thingy?

patent pivot
#

nope, that was just a token in our mod alerts

fallen patrol
#

ah

#

so is the antiabuse code on @stable mountain ?

patent pivot
#

it was, yes

#

we can add things in production through eval

fallen patrol
#

so anti-abuse is closed source?

patent pivot
#

it's not closed source, it's just that we program certain snippets as and when

#

like there is no source code

fallen patrol
#

o

fallen patrol
patent pivot
#

we have a policy for not adding commands in production, so not really

fallen patrol
#

ah

fervent sage
#

smh you and your intelligent policies that stop stuff breaking

patent pivot
#

lul

fervent sage
#

its more fun when you get called at 4am because everything broke /s

fallen patrol
#

just for the lulz yesterday

patent pivot
#

one such mitigation from today did have adverse side effects lol

fervent sage
#

lol

fallen patrol
#

oh just 2004 events match this spam regex

#

nothing important

#

we just banned spaces its fine

#

not_much_happened_dont_worry_everyone

fervent sage
#

my craving for ci/cd hasnt gone away im scared lol

patent pivot
#

lol

clever wraith
#

CI/CD makes me go 🥴

fallen patrol
#

@patent pivot I got conflicting info on this

#

^ no token used

#

should i make an issue before working on a pr for that?

patent pivot
#

hmm

fallen patrol
#

fwiw im not so inclined to make the pr for this one

patent pivot
#

yeah if you don't want to make the PR then issue 100%

fallen patrol
#

but the ratelimits go boom

patent pivot
#

and it's a few lines of changes, including logic addition

#

so I'd open an issue

fallen patrol
#

i mean

#

just copy the code from the other cog lol

#

or

#

perhaps make it request from github in a util function

#

¯_(ツ)_/¯

#

okay definte issue either way since there's multiple ways to approach this

#

and i might try and make the fix myself but that would require me setting up the bot on my servers

#

fallen patrol
patent pivot
#

uhhhhh

#

enhancement

fallen patrol
#

i have to choose one of these two

#

right?

vocal prairie
#

Feature then.

#

Since it's enhancing a feature.

fallen patrol
#

also uh

vocal prairie
#

I mean, it doesn't matter that much. The template.

fallen patrol
#

that's why i was a bit curious on the checking if its a public repo thing because if we use the token on this cog and then sometime give it public support this is a major security hole for being able to see code of closed source repos in the python-discord organisation on github @patent pivot

patent pivot
#

for the .github command we can definitely sanity check the repos are public

fallen patrol
#

I will type organisation so sue me kutiekat

patent pivot
#

when we rework the org/repo#123 syntax then we'll handle public and private safely

fallen patrol
#

im thinking like

#

the request function for both of these could possibly be moved into a util file

#

and do all the checks in one place

fervent sage
fallen patrol
#

yeah

#

do .help gh

fervent sage
#

oh i meant like

#

npm/npm#1

fallen patrol
#

yes

vocal prairie
#

I doubt it

#

Wait, really?

#

Wouldn't that be chaotic, and far too prone to erros?

fallen patrol
#

sir-lancebot#642 sir-lancebot#630 there's an issue and pr on that exact thing

fallen patrol
#

but like

vocal prairie
#

No it isn't

fallen patrol
#

there's three seperate things here

vocal prairie
#

That's completely different, isn't it?

patent pivot
fervent sage
#

ah nice

patent pivot
#

well, we'll probably discuss it on sunday

fallen patrol
fervent sage
#

i'll try be awake kek

vocal prairie
short snow
#

it uses tasks, to get the list of repos in every 30 minutes

patent pivot
#

right now it is

short snow
#

and then makes a regex out of that list

patent pivot
#

but there is proposed behaviour to expand on that

#

and allow any org/repo#issue

vocal prairie
#

That would need a very tight regEx, or it'd get ratelimited, right?

fervent sage
#

i think you overestimate how often people actually type that and underestimate the size of github's ratelimits lol

clever wraith
#

@patent pivot it'd be kinda cool if everyone could view the meeting minutes but that's just me

thorny obsidian
#

There are things we discuss and put up there that we don't want shared with the community early.

clever wraith
#

Ahh

vocal prairie
thorny obsidian
#

A lot of our internal updates happen there including the events we plan

fervent sage
#

even if people type a # it still wouldnt be in the right format most of the time

vocal prairie
#

Makes sense.

fervent sage
#

(\w+/)?\w+#\d+ with a bit of refinement should be fine

fallen patrol
clever wraith
thorny obsidian
#

Lolol that's not even a debate. That's me waging a one woman war against the brits

fervent sage
#

im not happy that my precious quackstack has been invaded by 'color'

thorny obsidian
#

Organisation on notion yells at me, so I change it to organization :3c

fallen patrol
#

@patent pivot put a constraint on the meeting notes that doesn't allow organization

patent pivot
#

lol

fallen patrol
#

just like the db doesn't allow you to be infracted

patent pivot
#

brb getting job

vocal prairie
vocal prairie
#

That wasn't supposed to happen.

patent pivot
#

lol

#

the answer is we use word boundaries

vocal prairie
#

We should only count it if it has a space before.

patent pivot
#

we should go bot#1

dusky shoreBOT
fervent sage
#

fine if we're gonne be pedantic about including the whole thing, \b(\w+/)?\w+#\d+\b

patent pivot
#

notlikebot#1hahahaha

dusky shoreBOT
fallen patrol
#

that's a bug that is gonna be fixed

#

or like sir-lancelsdjfbot#666

dusky shoreBOT
clever wraith
#

Hahabot#22

dusky shoreBOT
fallen patrol
#

sadbot#0

#

issue/pr 0 doesn't exist

#

very sad.

clever wraith
#

sir-lanceldjejsjejribot#69

dusky shoreBOT
fallen patrol
#

sir-lancebot#670 can someone change it to enhancement and not feature

dusky shoreBOT
fallen patrol
#

it gives me literally no option when creating so please don't tell me i could.

fervent sage
#

done

fallen patrol
#

danke

vocal prairie
#

Why'd you check both?

fallen patrol
#

so if anyone wants to do it before then they can go for it and i won't mind

#

lol i just realized i created my first prs in the pydis org today

vocal prairie
#

He has premade configs

fallen patrol
#

server isn't really the issue

#

its the bot lol

vocal prairie
#

What's the problem with that?

fallen patrol
#

i don't feel like cloning the repo rn

#

not until im a little more competent with git

vocal prairie
#

I see.

#

There's a guide PyDis made.

#

But okay.

fallen patrol
#

¯_(ツ)_/¯

short snow
#

This is my config.yml's urls section, which worked when you did:

$ docker-compose up -d
$ docker-compose up bot
#

But it gives couldn't connect to api when you do:

$ docker-compose up -d
$ pipenv run start
#

And, all the images are up

#

I can also go to 127.0.0.1:8000 and open the site

fallen patrol
short snow
#

yes

fallen patrol
#

you're running everything lolz

vocal wolf
tawdry vapor
#

Not necessarily

#

But there are some endpoints that do that

#

The API is inconsistent like that

vocal wolf
#

ah

tawdry vapor
#

I don't remember what it was for

vocal wolf
#

gosh darn it discord

#

ty for the reply tho

fallen patrol
#

YO WTF

#

@patent pivot why are we getting member status of this server wtf

patent pivot
#

because it pulls from the invite, not the actual server

fallen patrol
#

I'll be leaving now sorry for the ping

patent pivot
#

we don't want presences intent enabled, but we want presences

fallen patrol
#

I thought it was some kind of error of sorts

patent pivot
#

so

#

invite api

fallen patrol
#

Ideally the server invite wouldn't be hard coded lol

#

But ok

patent pivot
#

i mean

#

we don't want to generate a new invite for every !server command

thorny obsidian
#

Hard coded in what sense? Our Python bot is intended to only really work with our server

patent pivot
patent pivot
#

it's a config option

fallen patrol
vocal prairie
#

@fallen patrol Partnered servers are warned 4 weeks in advance if they're on the way to losing partnership.

#

That definitely long enough to change things.

patent pivot
#

!remind 10h metricity#3

dusky shoreBOT
stable mountainBOT
#
Alright.

Your reminder will arrive in 10 hours!

fallen patrol
#

why

#

why are you doing this to the 10 of us who opted out

patent pivot
#

because i put my privacy hat on

#

and then i put my data hat on

#

and came to the conclusion that the opt out functionality is more harmful than it is good

fallen patrol
#

😔

patent pivot
#

It's not any personal data

#

it's data that one can already accumulate through discord search or our existing message logs

fallen patrol
#

what about deleted messages

#

are those counts removed from metricity

patent pivot
#

no

#

that's stated in the privacy policy

#

metricity messages have an is_deleted property

vocal prairie
#

And they're the only ones who see metricity metrics.

#

So it's not really that much of a change.

fallen patrol
#

so metricity logs more than python in a sense

vocal prairie
#

Not really.

patent pivot
#

not really, metricity never has contents, ever

fallen patrol
#

api_messagedeletioncontext & api_deletedmessage

There were 285 message deletion contexts in the database, within these there were 1,300 stored deleted messages.

These have been deleted since they are stored only for review and are deleted after no longer than 30 days.

patent pivot
#

that's Python, yeah

magic arch
#

just dont rename anything, joe ;) lolll

patent pivot
#

those are the anti-spam held messages including context

fallen patrol
#

so metricity has more info on when i sent a message than python does.

magic arch
fallen patrol
#

which means you could figure out every time i've deleted or edited a message, no?

patent pivot
#

deleted, yes, edited, no

magic arch
#

they log deleted and edited stuff with @stable mountain i think

fallen patrol
#

you don't store edits?

patent pivot
#

not with metricity

#

python handles edits

#

and yeah, to an extent python can see deletions and edits

vocal prairie
thorny obsidian
#

The logging of the typical deletion and edits is kept within discord though

vocal prairie
patent pivot
#

yeah, that's true, messages get an edit timestamp at the discord api side

magic arch
patent pivot
#

but yeah, the use of metricity data is pretty vast, and this opt out isn't worth the loss of clarity

thorny obsidian
#

It's okay, I flood that log with my terrible spelling when I use my phons

vocal prairie
#

I feel that.

#

Phone typing is haaard

fallen patrol
patent pivot
#

I detailed some of them on the issue

fallen patrol
#

metricity#3

dusky shoreBOT
patent pivot
#

nominations use metricity data now, voice verification, channel usage metrics

#

a few uses inside moderation as well

fallen patrol
patent pivot
#

not in Python

#

in other query systems

fallen patrol
#

like?

patent pivot
#

metabase, grafana, the postgres shell

vocal prairie
#

Just postgres data?

#

That you use to make decisions?

patent pivot
#

yeah, exactly that

fallen patrol
patent pivot
#

I'm not talking like systems here, this is just ways that we query the data, we have uses inside moderation

patent pivot
thorny obsidian
#

The grafana stuff is obnoxiously useful for talentpool stuff and general quick data trends

magic arch
#

I'm curious, how many folks have actually opted out?

vocal prairie
#

Can we see a limited version of the grafana?

#

Or is that exactly what the stats page is?

patent pivot
patent pivot
#

oneeee second

#

let's see

fallen patrol
patent pivot
#

lol trying to find a dash without internal info

magic arch
#

You could possibly reach out to those few if it's not that many to give a heads up

patent pivot
#

oh actually this is pretty good

patent pivot
#

that data comes from the metricity table

#

metabase is where we tend to crunch message data more often

vocal prairie
#

What are those categories at the top? I can't read it on my phone

patent pivot
vocal prairie
#

Yeah

patent pivot
#

red = not passed native gate, green = passed

vocal prairie
#

The title

vocal prairie
patent pivot
#

Users pending native gate

vocal prairie
#

That's pretty cool

magic arch
#

Probably not a super big concern since its not that many though

fallen patrol
vocal prairie
fallen patrol
patent pivot
vocal prairie
#

True

patent pivot
vocal prairie
#

Is data removed after a user leaves?

#

After a couple months?

patent pivot
fallen patrol
#

i think they'd have to give a date to remove it by and changelog it before its actually removed. I think.

thorny obsidian
#

I still want to make a gif of the peak active times changing from Oct -> Feb

vocal prairie
#

Ooh, those are some nice insights.

thorny obsidian
#

The AoC activity shift is pretty amusing

patent pivot
#

it's not a compliance thing, this isn't personal data

vocal prairie
#

AoC?

thorny obsidian
#

Advent of Code

vocal prairie
#

Got it

patent pivot
#

I'll just amend all relevant documentation at once when I merge the PR

#

I agree, and that's why we don't word it like that 😛

fallen patrol
thorny obsidian
#

AOC != AoC

fallen patrol
#

really hope i spelled that correctly

fallen patrol
patent pivot
#

I think the body of the PR explains it fairly well, it's a fairly misleading opt out policy since it only actually opts you out from the part that is fully anonymous

fallen patrol
#

….

vocal prairie
#

Which makes it pretty pointless

#

Since even i could get those stats?

fallen patrol
#

so you mean to tell me i've opted out of being anonymous this entire time

#

brb dming the data controller

patent pivot
#

no, that's not what I'm saying

magic arch
#

Would it hurt to share that like a day or two early though? Still seems like a weird thing to do without public notice imo.

patent pivot
#

I'm saying that the component that you opted out of, the message counters, is the part that is anonymous

fallen patrol
patent pivot
fallen patrol
magic arch
#

But then again I have no say in this so... carry on 😂

vocal prairie
#

I wouldn't be surprised if you at least have some. They consider a lot of community ideas. 🤷‍♂️

patent pivot
#

i haveeeeeee

#

a

#

diagram

fallen patrol
#

I'm very happy for you and your diagram, joe

#

anyways imma go sleep its 1am lmao

vocal prairie
#

I'm so dumb. I was overcomplicating my pr to site so much.

#

Django urls go brrrr

patent pivot
#

this is the current structure of the held data

#

so the former two are handled as part of the data review and removals, amendments, etc. are carried out there

#

and metricity message data is handled in the opt out functionality of metricity

vocal prairie
#

Nice diagram

vocal prairie
#

So you're not opting out of anything specific to you?

patent pivot
#

but the misleading factor there is that opting out of messages is in no way an opt out of other data collection, and I think that the best way to make that clear is not to have misleading stuff there and instead to integrate that into the data review process

#

and as I mentioned, the message metrics harvested by metricity are proving very useful in many areas of the organisation, so it makes sense for them to be treated as such

vocal prairie
#

True. When I first read the opt out thing, I assumed you opted out of everything. It's much clearer when you remove that whole idea

#

Metricity#3

patent pivot
#

but I do agree that forewarning on things like this is important, so making the privacy policy amendments beforehand and changelogging it is a good move to make, so I'll give it a good week between publishing that and these changes going live

vocal prairie
#

metricity#3

dusky shoreBOT
vocal prairie
#

Nice talking with you all, but now I must sleep. Good night!

vocal wolf
#

ty @cold moon

cold moon
#

I have idea for @dusky shore : command that fetches information about compound from PubChem API.

short snow
#

🧑‍🔬

#

pubchem link?

cold moon
brazen charm
#

Would that be useful here? I feel like lancebot has a few too many api wrappers which don't really improve the project for beginners, and I believe WolframAlpha can get the information too

short snow
#

yeah it does

#

.wa cut <compound name>

stable mountainBOT
#

@green oriole

It has arrived!

Here's your reminder: Add word boundaries around the regex if you haven't already.
[Jump back to when you created the reminder](#dev-contrib message)

green oriole
#

Chris got it

placid ermine
#

would love a review on lancebot#668

placid ermine
#

huh

#

sir-lancebot#668

dusky shoreBOT
placid ermine
#

yeah

#

that's the one

short snow
#

!remind 5H review sir lancebot-668

stable mountainBOT
#
ROGER THAT

Your reminder will arrive in 5 hours!

vale ibex
#

EG if I gave it some long, complex, input, could it take a few seconds?

short snow
#

it is fast

#

2-3 seconds at max for me

vale ibex
#

I'd say if its >1 second, with any input, then we should run it in an executor

#

@placid ermine Do you have experience with running code in executors?

short snow
#

btw, I am talking about the max case, otherwise it is instant rendering.

placid ermine
#

just run it in a ProcessPool right

vale ibex
#

Yea, from concurrent.futures import ThreadPoolExecutor

timid sentinel
#

yeah would probably be worth it, timing the _render it seems mostly fine but takes a bit longer on very complex inputs lol

short snow
#

👀 that input

green oriole
#

That's a very precise timing

#

is that the PR format?

timid sentinel
#

oh no no i just added the timing to test it

green oriole
#

Fair

#

also

#

how come you aren't in jail for this formula

timid sentinel
#

lol I just did r"\frac{0}{0}".replace('0', r'\frac{0+0}{0}').replace('0', r'\frac{0+0}{0+0}').replace('0', r'\frac{0+0}{0+0}').replace('0', r'\frac{0+0}{0+0}').replace('0', '1'), that's as much as discord's text limit allows 😔

short snow
#

I have a question regarding the test server, since everyone is a super user or a admin on the test server, anyone can run fork bombs on the user's bot, so do you guys prevent that in some way, or just trust everyone 🕊️

patent pivot
#

trust, that's why it's staff only

short snow
#

ah, are contributors also in it?

fallen patrol
#

i mean

#

you could make an issue to possibly make it a little more friendly for building

patent pivot
#

yeah it's helpers+

vocal prairie
#

Yeah.

#

Oh I know.

patent pivot
#

that is a project of ours

vocal prairie
#

You should make a bot that has all the emojis

patent pivot
#

cc @green oriole

vocal prairie
#

And it can put them all in a server

patent pivot
#

shouldn't smartconfig resolve some pain here Ak?

short snow
#

smart config

fallen patrol
green oriole
#

Henlo

vocal prairie
#

Hi

short snow
#

i could possibly make a script for server setup

fallen patrol
#

that would relieve the trust factor

patent pivot
#

That isn't functionality we need

green oriole
#

Yeah, Smartconfig will come with an helper command to generate the whole server and config with one command

patent pivot
#

We need multi-user access during our testing

fallen patrol
#

no but

#

you could do it in like

#

4 lines of code for the benefit of most contributors

green oriole
#

Well, not really

patent pivot
#

I don't think it is for the benefit of most contributors

#

It's for the benefit of server staff maybe

#

in the test server

#

but even then like this isn't a protection we need

#

because a) people don't run dev bots 24/7 and b) if we have trust issues with staff then that's a wider problem, this shouldn't be a problem that needs a solution

#

as for contributors, just run it on a bot account that is in a server with only yourself

vocal prairie
#

To make sure I'm understanding correctly, smartconfig will allow you to set up test servers with one command?

green oriole
#

Yep

vocal prairie
#

That's cool

#

And sounds useful

green oriole
#

The end goal is that you create a server, invite the bot, run a command grab a coffee because of ratelimits, restart the bot and you are good to go

#

It should also be able to sync with the configuration when changes are made

vocal prairie
#

Ratelimits smh

fallen patrol
patent pivot
#

No, it's a package

green oriole
#

Nah, it is your development bot

fallen patrol
#

then how tf can it sync to this server if its not in it??

vocal prairie
#

No need to copy and paste

green oriole
#

It will be inside the source code of @stable mountain, only loaded when debug mode is enabled

patent pivot
#

the server configuration is defined in the repo yeah

green oriole
#

The sync command will also be inside the repo

patent pivot
#

because we don't want to exact mirror of this server

#

it's bloated for development server setups

#

users don't need to synchronise modmail threads, archived channels and other internal things with their dev servers

short snow
#

till then, i willl just come up with a setup script for this server

patent pivot
#

(Hence why the template we provided doesn't have all the channels)

green oriole
#

(We will have to think on a way to merge some channels in one inside the configuration but it should be fairly simple)

vocal prairie
#

@crude gyro In regards to the second part of site#453, I was wondering if I should place anything where the timeline used to be on the home page?

dusky shoreBOT
vocal prairie
#

Also, is there a specific place in the "more" section of the navbar you want the link? I have it under Contributing at the moment.

crude gyro
#

to me it doesn't really make sense to remove it until we find something to replace it with.

#

@green oriole any idea when this component disappeared?

#

oh it didn't, it's still there?

green oriole
#

it is just not on the top row anymore

crude gyro
#

it was never in the top row.

#

the 100k devs was.

short snow
#

it was earlier nah my bad, the 100k banner was there

green oriole
#

I don't think we should remove the interactive timeline undernearth

green oriole
#

Apparently not

vocal prairie
#

Oh, I though the issue mentioned it.

#

Oh, I misread, my bad.

#

But I'll still open the pr to move the timeline to the navbar.

#

Any thoughts about placement for that?

green oriole
#

Yep, it would be nice to have it up there

short snow
#

isn't timeline already on the navbar, in the more section?

#

above FAQs

vocal prairie
short snow
#

ah ok

green oriole
#

Above FAQ is probably good

vocal prairie
#

I'll go ahead an open a pr.

#

PR has been made. Also, is there a plan to add anything where the 100k banner was? I

gritty wind
#

Speaking of

#

It’s still on mobile

#

Not the card, but a banner

vocal prairie
#

Oh, I forgot about that.

#

You just have to remove this section:

crude gyro
vocal prairie
#

Oh, I mean "add". My bad.

crude gyro
#

okay, cool.

#

sounds great!

vocal prairie
#

Do we want to remove the mobile banner?

crude gyro
#

?

vocal prairie
#

On mobile, the 100k banner still appears.

vocal prairie
gritty wind
#

It’s not wrong, but it definitely conveys the message that we just hit 100k

#

When we’re almost at 200

vocal prairie
#

In my opinion, we shouldn't remove it, but rephrase it for the timeline.

stable mountainBOT
#

@patent pivot

It has arrived!

Here's your reminder: metricity#3.
[Jump back to when you created the reminder](#dev-contrib message)

stable mountainBOT
#

@short snow

It has arrived!

Here's your reminder: review sir lancebot-668.
[Jump back to when you created the reminder](#dev-contrib message)

clever wraith
#

sirlancebot#668

vale ibex
#

you need the - in there

#

at least until Akarys's fixed are merged

#

sir-lancebot#668

dusky shoreBOT
clever wraith
#

o

green oriole
#

Just need @exotic ember's review on sir-lancebot#642 to merge it 🥺

green oriole
#

I guess if kosa isn't available someone can review for them and dismiss

short snow
vale ibex
#

and to be clear, this change won't make it output properly, it just won't output anything 😄

green oriole
#

How does the latex output look like right now?

#

Just plain image, right?

short snow
#

Yeah

green oriole
#

I'd have a couple of nitpicking to do but I'll refrain myself haha

thorny obsidian
#

For lance, why are some hardcoded and some not?

short snow
#

Lol, I would like to add timing to it

green oriole
short snow
#

Some are not hard coded, as they are not needed for normal testing ig

green oriole
#

This will be obliterated by smartconfig which should come further down the road

#

If you need any for testing feel free to introduce an env var

gritty wind
#

How long have we been talking about smartconfig coming soon™️

green oriole
#

But I don't think it is worth switching everywhere

gritty wind
#

You really don't need most of the roles in development

green oriole
gritty wind
#

the only real use is for bypassing checks

short snow
#

Lol, I was gonna just ask that scal, but AK’s pr needs review

gritty wind
#

and admins=mods in sir-lance for the most part

green oriole
#

Hopefully we should merge the main PR soon-ish

gritty wind
#

and admin=owner in both

clever wraith
#

hows the progress on quackstack?

short snow
#

We don’t really need postgres on quackstack

green oriole
#

Quackstack is coming along fine

#

It isn't time sensitive though

fervent sage
green oriole
#

I wouldn't care if it isn't completed this year, compared to other projects

short snow
#

Autocorrect, iPad isn’t that smart

fervent sage
#

ah lol

#

autocorrect is evil

short snow
#

True, a pr needs review on quackstack btw,

#

The switch to colorsys