#ot2-the-original-pubsta

652 messages · Page 112 of 1

hazy laurel
#

if I had to guess

dusky cliff
#

O docker

mental idol
#

Maybe KVMs

hazy laurel
#

KVMs in a Docker container /shrug

mental idol
#

six to some, half dozen to others. End result: container running given OS.

dusky cliff
#

github actions and ci/cd in general is mostly black magic to me atm

hazy laurel
#

because I know like Digital Ocean uses KVMs for each "droplet", not entire servers per droplet

mental idol
hazy laurel
#

so if I had to guess, GitHub Actions would do the same/similar

dusky cliff
#

yeah

#

i know just about enough to run existing containers

#

idrk how to set up my own

hazy laurel
#

lmfao docker run

dusky cliff
#

writing Dockerfiles and what not

hazy laurel
#

I've been trying to mess around with Podman and Buildah lately

#

seems like a tough field to get into

dusky cliff
#

what's that

#

those*

mental idol
clever salmonBOT
#

.github/workflows/python-tests.yml lines 24 to 27

- name: Install tox
  run: python -m pip install --upgrade pip setuptools wheel tox
- name: Run tox
  run: tox -e py```
dusky cliff
#

hm

hazy laurel
# dusky cliff those*

no clue. I just know they're supposed to be like Docker and Dockerfiles but better (supposedly; don't quote me on this)

#

but also compatible with Docker stuff

#

Podman on their website says you should be able to just do alias docker=podman and be on your way

clever salmonBOT
#

.github/workflows/python-tests.yml line 17

runs-on: ${{ matrix.os }}```
mental idol
#

It can get more involved because you can import jobs/steps from other configs (like importing a module). The CI can also make some logic conditions based on your repo.
Do A if on branch main, do B if on branch stage. etc

hazy laurel
#

I must admit, CI seems incredibly interesting... but I've yet to find a sane introduction into it

mental idol
#

So my tests run on three python versions for three OS types (nested loops).

dusky cliff
#

ic

#

oh right i see

hazy laurel
#

confusing as heck

dusky cliff
#

does fail-fast mean itll stop at the first failure

dusky cliff
#

hrm

mental idol
#

It will actually halt running other containers if one fails.

hazy laurel
#

oh, interesting. I Googled it and it says it's to emphasize learning from failures

#

and to try and take the stigma away from failing

mental idol
#

I usually turn it off as I want to see which OS failed versus which passed.

hazy laurel
#

a little needlessly motivational for me but 👀 it works

mental idol
#

Learning CI has been neat. I really started digging into it this year.

#

I'm hoping to learn how to get CircleCI (used at my office) to only run certain steps based on what changed in the repo. So we make a change, push, and the CI determines what gets deployed based on the changes.

dusky cliff
#

Is circleci analogous to github actions

mental idol
#

Similar. CircleCI, Azure Actions, GitHub Action, Jenkins. They are all a different flavor of the same idea.

dusky cliff
#

hm

hazy laurel
#

I thought Jenkins was for something else

#

like for distributing builds or something

mental idol
#

CD, continuous deployment. The other half of the picture. Nothing deploys in my GitHub Actions so it's just CI. If I included a step that built and deployed to pypi, for example, then I'd have a full CI/CD pipeline.

#

Tests pass, deploys automatically.

dusky cliff
#

I feel like the main thing holding me back from devopsy things is i have nothing to devops on
Like currently the only thing i could automate is linting, i dont write tests or deploy to servers or anything like that

tranquil widget
#

I like gitlab cicd

mental idol
tranquil widget
#

I work with Jenkins now

hazy laurel
#

I've been meaning to make a container that just sets up a simple FastAPI page, just to dip my toes

#

but it's very confusing

tranquil widget
#

It does the job but it’s clunky

mental idol
dusky cliff
#

Tests are boooooringggg

mental idol
#

I need to learn docker 👀

hazy laurel
#

so that's what TDD stands for

mental idol
#

Test driven development. EggDab

tranquil widget
#

Aren’t GitHub actions basically stripped down gitlab cicd?

hazy laurel
mental idol
#

Red, green, clean.

tranquil widget
#

Learn docker = learn pod man

mental idol
tranquil widget
#

Yeah I haven’t used actions, but it looks similar

hazy laurel
mental idol
tranquil widget
#

Yeah there are differences but if you’re just learning it’s the same

#

Unit test all the things

dusky cliff
#

i dont wanna grumpchib

hazy laurel
#

tbh, TDD sounds fun enough but it also sounds like quite a hassle to get into the habit of

tranquil widget
#

Unit tests for fun and profit

mental idol
clever salmonBOT
#

tests/model/elements/textblock_test.py lines 25 to 27

def test_asdict(textblock: TextBlock) -> None:
    expected = {"type": "TextBlock", "text": "", "fallback": "drop"}
    assert textblock.asdict == expected```
mental idol
#

Look at how fast you can just test everything hyperlemon

@pytest.mark.parametrize(
    ("attr", "value", "expected"),
    (
        ("color", "default", "default"),
        ("color", None, None),
        ("color", "invalid", None),
        ("fontType", "default", "default"),
        ("fontType", None, None),
        ("fontType", "invalid", None),
        ("horizontalAlignment", "left", "left"),
        ("horizontalAlignment", None, None),
        ("horizontalAlignment", "invalid", None),
        ("isSubtle", False, False),
        ("isSubtle", None, None),
        ("isSubtle", "invalid", True),
        ("maxLines", 1, 1),
        ("maxLines", None, None),
        ("maxLines", "invalid", None),
        ("maxLines", -10, None),
        ("size", "default", "default"),
        ("size", None, None),
        ("size", "invalid", None),
        ("weight", "default", "default"),
        ("weight", None, None),
        ("weight", "invalid", None),
        ("wrap", False, False),
        ("wrap", None, None),
        ("wrap", "invalid", True),
        ("style", "default", "default"),
        ("style", None, None),
        ("style", "invalid", None),
        ("height", "auto", "auto"),
        ("height", None, None),
        ("height", "invalid", None),
        ("separator", False, False),
        ("separator", None, None),
        ("separator", "invalid", True),
        ("spacing", "none", "none"),
        ("spacing", None, None),
        ("spacing", "invalid", None),
        ("id", "none", "none"),
        ("id", None, None),
        ("isVisible", False, False),
        ("isVisible", None, None),
        ("isVisible", "invalid", True),
    ),
)
def test_optional_setters(
    textblock: TextBlock,
    attr: str,
    value: str | bool | None,
    expected: str | None,
) -> None:
    assert getattr(textblock, attr) is None
    getattr(textblock, f"set_{attr}")(value)
    assert getattr(textblock, attr) == expected
clever salmonBOT
#

tests/model/elements/textblock_test.py line 17

def test_repl(textblock: TextBlock) -> None:```
hazy laurel
#

that is a lot of tupleage

mental idol
#

LOL, good eye.

dusky cliff
#

That do be a lot of tuples

mental idol
#

Pytest's parametrize is amazing when used in the right places.

hazy laurel
#

I like how you use getattr to get set_attr and call it

#

\🥴

mental idol
#

It's rebuilding the test fixture each time. Ensures no test pollution.

hazy laurel
#

wait what actually is up with that there lol

hazy laurel
#

is there a specific reason behind that 👀

#

and wouldn't you just... use __setattr__ \😩

dusky cliff
#

Its testing the functions named set_foo

mental idol
#

I'm testing the methods here. Just setting the attribute isn't the test.

hazy laurel
#

oh I see

#

that's where you'd use a property, no?

mental idol
#

I use getattr so that I can parameterize the test. Less writing for me.

hazy laurel
#

something something getters/setters un-Pythonic

mental idol
#

I thought about using @property and @setter but... blah. It doesn't feel right.

dusky cliff
#

Hmmmmmmm i wonder if setattr with property works nicely

hazy laurel
#

I would think so 👀

mental idol
#

That and I'd have to _ mask the attributes and then translate them when dumping to a dict. Blah.

#

Feels too defensive. I'm more a "Here's an object. Here's the three ways I thought you might define it. Have fun".

#

omg... I have work in four hours.

#

lul

hazy laurel
#

oh yeah, why are you not sleeping >:(

dusky cliff
hazy laurel
#

oh my, iPython feels very funky now

dusky cliff
hazy laurel
#

it's barely 11 PM and I've not got school tomorrow

dusky cliff
#

if you say so

dusky cliff
hazy laurel
#

it's... interesting, that class I have up there, it actually formatted the newlines

#

just because tbh newlines in iPython scare me

#

one wrong enter press and I've entered a syntax error somewhere

dusky cliff
#

my opinion would be on by default, but disable-able(?) in a config file

hazy laurel
#

disableable lol

jade bolt
#
LINK : warning LNK4044: unrecognized option '/Z-reserved-lib-stdc++'; ignored
LINK : fatal error LNK1104: cannot open file 'tree-sitter.lib'
clang: error: linker command failed with exit code 1104 (use -v to see invocation)
Error: execution of an external program failed: 'clang.exe   -o c:\Users\kylec\OneDrive\Documents\personal\coding\nimhao\test.exe 

😭

#

😭

#

idk what happened

#

i dont have tree-sitter.lib btw, i only hav the header file

#

and this is nim btw

nova ember
#

That was a programming joke. GitHub nowadays uses main as the default branch name, instead of master, so when you said master, you obviously should’ve used main

#

Lol

median blade
fluid plank
#

thats old news.

#

but yeah i have been using main since last 2020

jade bolt
#

i liek to jumpscare people by making and deleting a branch named master

sinful sun
#

You guys let github create your branches?

lofty loom
#

How do I make git init use main by default

sinful sun
#

git config --global init.defaultBranch main

#

but why

lofty loom
#

Because I haven't changed it from master

sinful sun
#

if you create your repos from github and add a file from the webapp then your default branch would be main

#

ie make a new repo and add a license or a .gitignore

#

no need to mess with git settings

tribal tinsel
mental idol
sinful sun
#

patrician workflow, only push when you have a working prototype

median blade
mental idol
#

I'm a cli junkie.

sinful sun
#

how do you publish to gh without making a repo

#

inb4 gh cli

median blade
sinful sun
#

how

mental idol
#

I could actually make my repo from the cli, but I haven't switched from git yet. Don't think I will, really.

sinful sun
#

you either open an existing local repo or clone a remote

median blade
sinful sun
#

where

median blade
#

idk, i get it in new projects

sinful sun
#

wot

#

is this for VS or vscode

median blade
#

vsc

sinful sun
#

where is this new projects thing

mental idol
#

do you have gitlens?

sinful sun
#

no just using builtin source control menu

median blade
#

idt its gitlens, not sure

#

gitlens is probably the one below

sinful sun
#

wtf

#

oh i gotta open a folder thats not a repo

#

ok

#

well i still like to go through github cause of that repo naming widget

median blade
#

it asks you the repo name and its visibility

sinful sun
#

The website has that widget that gives you random repo names

median blade
#

oh you use that?

sinful sun
#

Yea

#

Its cute

median blade
#

lol

sinful sun
#

Gotta get that turbo-couscous vibe going

small shore
#

@knotty anvil do you mind if I ask you a little bit about internals

#

The initial start up of a discord bot

knotty anvil
#

What parts?

small shore
#

The process of a shard logging in.

#

From what I can understand it has like 3 or so parts

#

Identify - Connect to Gateway - Login

knotty anvil
#

You first of all, connect to the gateway, you then send your IDENTIFY payload

#

If you want shards you pass in shards to your IDENTIFY payload

#

This being, [shard id, total shards]

#

Then afterwards you should connect just fine, with that

small shore
#

Doesn’t each shard connect to the gateway separately

knotty anvil
#

Do keep in mind you need to follow the max concurrency ratelimits

small shore
#

So there like an initial connection

knotty anvil
small shore
#

Do you know about the gateway event READY

#

Does each shard have their own version of that or something like that?

#

on_connect is fired when that event is received.

knotty anvil
#

Each shard should have it's own READY event

small shore
#

so on_connect will fire multiple times across each shard connecting.

#

I was under the assumption that on_connect fires when every shard is connected and the bot is officially considered logged in.

knotty anvil
#

But, of course discord.py has it's own library abstraction, they fire a different event for shard connection

#

!d discord.on_shard_connect

clever salmonBOT
#

discord.on_shard_connect(shard_id)```
Similar to [`on_connect()`](https://discordpy.readthedocs.io/en/master/api.html#discord.on_connect "discord.on_connect") except used by [`AutoShardedClient`](https://discordpy.readthedocs.io/en/master/api.html#discord.AutoShardedClient "discord.AutoShardedClient") to denote when a particular shard ID has connected to Discord.

New in version 1.4.
knotty anvil
#

But this is also just hooking onto READY basically

small shore
#

you can use on_connect for autoshardedclients as well

knotty anvil
clever salmonBOT
#

discord/state.py lines 1522 to 1523

self.dispatch('connect')
self.dispatch('shard_connect', data['__shard_id__'])```
small shore
#

Oooooo

knotty anvil
#

Not sure how discord.py does it, but I'm almost 100% sure your shards have their own READY events, etc

small shore
#

So with that said

#

is on_shard_connect denoting a connection to the gateway or the shards login

#

Or are those two of the same things that happen at the same time.

knotty anvil
#

on_shard_connect is dispatched when READY is received from the gateway

#

Same with on_connect

small shore
#

So when does the login actually happen then

knotty anvil
#

When you send your IDENTIFY payload

#

discord.py's on_ready is really a library abstraction sorta

#

It's dispatched after cache populating is done

#

on_connect => API's READY

small shore
#

I was under the assumption the login was after the gateway connection happened.

knotty anvil
small shore
#

Wait what what

knotty anvil
#

How are you supposed to send the IDENTIFY payload before you connect to the gateway?

small shore
#

An initial connection

#

According to the logging

#

Seen here.

knotty anvil
#

Yea, if you don't have a connection before you send the IDENTIFY payload, you can think of it like. Trying to log into a website before actually going onto the website right?

small shore
#

So like.
Bot - Opens WS connection to gateway -> sends an identify payload with shard info-> then each shard sends their own identify payload -> gets connected-> it’s officially considered logged in at this point.

#

@knotty anvil would that be a right way to think about it.

#

Idk but I think my initial thinking before was

#

That each shard opened up their own ws connection to connect to the gateway

#

Instead of sharing the initially opened one at the start?

knotty anvil
#
Bot <token> -> gateway/bot (gateway URL) -> Use data from `gateway/bot` to get max concurrency and shard count -> make connection for each shard via IDENTIFY payload -> recieve GUILD_CREATE (if intent given) & READY (offically connected if recieved READY)
small shore
#

Oh they do

#

Isn’t guild info carried in the READY event discord dispatches

knotty anvil
#

For guilds that are unavailable

#

guild info is given on GUILD_CREATE

#

You receive X amount of GUILD_CREATE for the x guilds your bot is in

#

Unless that is of course, like I mentioned earlier if you don't have guild intents (1 << 0)

small shore
#

So each shard gets their own number of that coinciding with how many guilds they're assigned

#

Does discord decide how many guilds a shard gets

#

Or is that determined by the library

knotty anvil
#
shard_id = (guild_id >> 22) % num_shards
#

From the docs ^

#

The API also recommends how many shards to use from gateway/bot

small shore
#

Good to know

#

Thanks for the help.

remote widget
#

oh discord bots here too

jovial island
remote widget
#

Cz of what happened with you before this month?

jovial island
remote widget
#

huh?

#

currently?

jovial island
remote widget
#

Oh well

#

that sucks

#

So u gonna repeat this year?

jovial island
jovial island
remote widget
#

I will pretend ik what is that Ah cool. At least the year won't go to waste

jovial island
remote widget
#

At least no exam stress for a whole year 👀

jovial island
remote widget
#

I bet they ain't more stressing than entrance tests here

remote widget
#

?

jovial island
#

"of all england"

remote widget
#

Ah, so sort of boards for India

#

Hmm, boards ain't that tough. about 95% students pass easily

jovial island
grim beacon
#

🗿

remote widget
jovial island
jovial island
remote widget
#

Happens twice in school, once in class 10, and then in class 12

#

So yea, I got them next year ;-;

jovial island
remote widget
#

11th grade/class

jovial island
remote widget
#

And class 12 is the last class for a school life

#

Well I didn't give boards in class 10 anyways

ionic elk
#

when the heck would you use a bitwise & operator

jovial island
jovial island
ionic elk
#

6 & 11 = 2, very helpful

remote widget
remote widget
merry cobalt
#

fuzz

#

me

#

dont

#

fuzz

#

me

remote widget
#

How much did u drink again? @merry cobalt

jovial island
merry cobalt
#

@remote widgetmy love, your not supposed to know but ok i did it again

remote widget
merry cobalt
#

i only have onlyfans

#

😊

knotty anvil
#

Holy crap, I just got a deja vu

remote widget
#

Cool

knotty anvil
#

I feel like this happened before already

merry cobalt
#

but wont share here maybe ur not even aged enough for adult content

remote widget
jovial island
#

damnn

remote widget
merry cobalt
#

33==1/3rd

merry cobalt
remote widget
# jovial island damnn

There are numerous students who cannot afford education and study just to get a degree for names sake

remote widget
merry cobalt
#

@jovial islandcongrats on ur birthday youngster

remote widget
#

Smh why everyone turns on discord when they are drunk

ionic elk
# remote widget There are numerous students who cannot afford education and study just to get a ...

Peter Gregory Really Hated College, Like Crazy + 😁 ↓↓↓

Starring: Peter Gregory (Christopher Evan Welch), Nelson 'Big Head' Bighetti (Josh Brener), Richard Hendricks (Thomas Middleditch) + ...

TED Talks Speech, Palo Alto. He was played and Rich got to Pitch Pied Piper.

Copyright: © HBO, All the Creators!
http://hbo.com/silicon-valley

...

▶ Play video
remote widget
#

I am in India bruv

merry cobalt
remote widget
#

U never really tried calling me

merry cobalt
#

maybe i try ring another one

#

whatever

#

@jovial islandso ur not 16 but has it in bio

#

prob a guy too

#

internet those days

remote widget
jovial island
merry cobalt
#

s/he is 12

remote widget
#

smh this is what happened with a friend of mine when he drank

remote widget
jovial island
remote widget
merry cobalt
#

@remote widgethe sounds like 18 <

jovial island
#

then I'll tell mine

merry cobalt
#

he should't be drinking at all

remote widget
remote widget
jovial island
merry cobalt
#

oh lol

jovial island
#

hunter knows his stuff

remote widget
remote widget
jovial island
merry cobalt
#

i type better than him even when am stoned and drank all i have

remote widget
#

Hmmmmmmm

merry cobalt
#

but issue is 99% wont understand what i try say

#

but i spell better

remote widget
#

Yea yea

jovial island
remote widget
#

🤣

merry cobalt
#

right

#

vodka and water taste the same

#

😉

remote widget
#

Eh, my dad doesn't really mind me drinking some whiskey when he drinks anyways

jovial island
merry cobalt
#

dont u know if its weed or tobaco either?

merry cobalt
#

oh that makes sense

remote widget
#

We should, uhhhh, stop this talk

jovial island
#

lmao

merry cobalt
#

also girls can handle less

slate leaf
#

Agreed - for the topic, not the "girls can handle less"

remote widget
#

Before we all get muted warned

#

🤣

#

brad

merry cobalt
#

lol brad

remote widget
#

;-; why no agree with me

median blade
merry cobalt
#

theres skinny guys like me who gets drunk fast too

#

for nothing

slate leaf
#

neat

merry cobalt
#

i just call it economicly

remote widget
merry cobalt
#

he does

#

he prob has more experiance in shit we dont wanna hear about too

#

just sayin

remote widget
jovial island
#

Hunter, we were talking about school like mature peoples 5 mins ago and where we are

merry cobalt
#

do i sound drunk?

remote widget
#

Y. E. S.

merry cobalt
#

then i am i guess

remote widget
merry cobalt
#

is that a crime?

#

cause then i am not

remote widget
#

Drinking and chatting on discord is a crime

merry cobalt
#

damn

#

am fucked then

remote widget
#

by whom Sure u r

merry cobalt
#

was nice meeting yall

remote widget
#

Cya

#

Smh steam laggy asf

merry cobalt
#

ama go have a water

jovial island
jovial island
remote widget
#

People drink at night Good night!

jovial island
remote widget
#

Nope, wishing usr/bin

jovial island
remote widget
#

Hmm, oki has already seen a few pics of mine 👀

#

u can ask him about my ugly looks

jovial island
remote widget
#

Lmao I got uglier with a haircut anyways

#

So yea, no pic sharing with anyone for a few days

#

Also, for some reason my phone likes to come in place of my face in the photo

jovial island
#

welp

remote widget
#

No

jovial island
#

ok

#

cool

remote widget
#

Mhmmm. So I only got those type of pics which u saw earlier 🤷

jovial island
remote widget
#

never said that

jovial island
remote widget
#

I never did anything to you till now

jovial island
remote widget
#

till now

#

I mean, I am just stating the facts. I only got those pics, nothing more nothing less

remote widget
#

Only screenshots, most of them useless

#

¯_(ツ)_/¯

jovial island
remote widget
#

Mhmmmmmm

merry cobalt
#

are u e-dating?

remote widget
#

No?

merry cobalt
#

cus i felt left alone

remote widget
#

🫂 I am also alone

merry cobalt
#

yey

#

foreveralone gang

remote widget
#

#ForeverAlone

merry cobalt
#

ever coded ur own GF?

remote widget
#

Uhhh, nope

#

Thanks

#

I will pass

merry cobalt
#

😄

#

maybe someone has

#

a discordbot as their gf

remote widget
#

Hmmm

merry cobalt
#

🤔

#

or bf

remote widget
#

Uhhh, no

#

It is more of a friends' talk

merry cobalt
#

@high pike

remote widget
#

Wrong one

#

@jovial island

#

is the correct one

merry cobalt
#

@jovial island

remote widget
#

Smh

merry cobalt
#

ok theres so many

remote widget
#

U r drunk

merry cobalt
#

why is that name so popular?

#

is it a anime name?

remote widget
#

Indian Name

merry cobalt
#

oh

remote widget
#

like mine is- nvm

#

Forgot this is the internet

#

anything can happen here

merry cobalt
#

ur name is hunter irl?

remote widget
#

Ofc not

merry cobalt
#

lol

remote widget
#

I mean that name already sucks

#

But I am too lazy to change it

merry cobalt
#

do u work ofr microsoft support?

#

cause iv seen alot of indis work there

remote widget
#

im only 16 dude

merry cobalt
#

oh

#

but dosnt childlabor exist there?

remote widget
#

not in MNCs

merry cobalt
#

its fake microsofts

#

scammers

#

or u mean MNCs as what?

#

Minecrafts?

#

Ignore me man i just try be foolish n have fun

jovial island
merry cobalt
#

i leave u yooungsters alone

#

have a good eve

jovial island
merry cobalt
#

i dunno what that is but sounds good

jovial island
merry cobalt
#

all i know

#

is hadoooken

#

streetfighter

#

game

#

i dont know 1 indi word tho

#

teach me one

#

a nice word not a bad word

#

@remote widget

#

how u greet an indian?

#

salam?

#

sholom?

#

wassup?

wheat rock
#

🙏

jovial island
merry cobalt
#

may ghandi be with u?

#

namaste namaste

jovial island
merry cobalt
#

excuse me namaste

jovial island
remote widget
merry cobalt
#

Namaste Hun....ter

#

i cant say what they say in germany but

remote widget
#

Its been ages since I have used that word

merry cobalt
#

i can say what they say in swedish

#

Var hälsad

#

Be welcome

remote widget
jovial island
merry cobalt
#

so u was 12 when u heard it first time

remote widget
#

Eh, I great everyone with a "hi" or a "hello" anyways

jovial island
remote widget
#

Hmmmmm

jovial island
#

Hunter be humming a lot

remote widget
#

Half my brain cells dead, thanks to this cold

junior hull
#

its not that cold

#

where are u

jovial island
junior hull
#

north or something?

remote widget
#

I meant... I have a cold smh

jovial island
jovial island
remote widget
#

And yea, I do live in North India

junior hull
junior hull
remote widget
#

Wbu

jovial island
remote widget
#

Ash surprised

merry cobalt
#

i wanna now go to a indian barbershop

#

namaste namaste

remote widget
#

Smh no

#

Don't

merry cobalt
#

n yes i expect them to hit my head alot

jovial island
#

bin's drunk af

merry cobalt
#

twist my neck 3 times

remote widget
#

He cut my hair a bit too short that I feel weird now

junior hull
merry cobalt
#

iv seen on youtube

#

in india barbers

#

they smack ur head alot

#

n shit

remote widget
#

hmmmm sure they do

merry cobalt
#

openhand slaps

#

n runs ur hair

#

rubs*

#

more slaps more rubs

remote widget
#

ik ik ik

jovial island
merry cobalt
#

Ok u done

#

50$

merry cobalt
remote widget
#

month*

#

smh

junior hull
merry cobalt
#

hunter only 16 his dad should trim his hair

junior hull
merry cobalt
#

#savemoney

remote widget
#

U know...

#

He did it once

#

And well

jovial island
remote widget
#

I went bald ;-;

merry cobalt
#

u a model?

#

hairmodel?

junior hull
#

my dad cut my hair once

#

and it was shorter than our garden's grass

remote widget
jovial island
remote widget
#

lmaoooooooo

jovial island
merry cobalt
#

i am so confused if u are not

jovial island
#

smh

remote widget
#

u r drunk

merry cobalt
#

oh so u do it once year

#

i thought girls went every other month

jovial island
merry cobalt
#

and u trimm

#

dont be mad but are u feminist/lesbian?

remote widget
jovial island
remote widget
#

👀 she had a boyfriend before

merry cobalt
#

maybe it was a decoy

merry cobalt
#

u know girls uns their own games

jovial island
remote widget
remote widget
jovial island
merry cobalt
#

@jovial islandso if u trim whats the shortest u had?

jovial island
jovial island
merry cobalt
#

somtimes have a partner is the worst

remote widget
jovial island
merry cobalt
#

@jovial islandif u fully shave/trim

#

what mmillimeter u had as shortest

remote widget
#

Lmao

jovial island
merry cobalt
#

oh

#

thats what i thought

#

u said

#

by tim

#

ok no feminist

#

😄

#

remote widget
#

usr...

merry cobalt
#

user?

jovial island
#

....

remote widget
#

Log off discord and sleep

#

or drink whatever, just log off discord

merry cobalt
#

hunter relax

remote widget
#

else

merry cobalt
#

oh now i wanna hear the else

#

FBI OPEN UP

remote widget
merry cobalt
#

i smell weed in here

remote widget
#

s t o p

#

No thanks, I will pass

merry cobalt
#

namaste namaste ist ich ein misstake

jovial island
#

...

remote widget
#

Let's talk to a mod to mute u

merry cobalt
#

@remote widgetits ok to troll n have fun?

remote widget
#

no

merry cobalt
#

why not we offtopic?

#

i aint harressing you

#

i aint bully u

remote widget
#

s m h

merry cobalt
#

i aint racist

#

i just talk shit

remote widget
#

Okay do whatever u want just stop eating my brains like a fucking zombie

merry cobalt
#

ok zombie

#

dont eat nonezombie humans tho

slate leaf
#

Yeah this is yikes territory

merry cobalt
#

yea

remote widget
#

Bradddddddd

#

Save me 🥺

merry cobalt
#

lets go brad lets hit the bar

slate leaf
#

I'm good

merry cobalt
#

fuck i go hit the bar

#

yall stay here

remote widget
#

I will go with u

#

Just gimme a flight ticket

merry cobalt
#

ur not allowed inside

slate leaf
#

Really just trying to understand this message

remote widget
#

Where do u lvie

#

USA?

slate leaf
merry cobalt
#

sweden

remote widget
merry cobalt
#

ABBA country nation

remote widget
#

Dw, I made things easier for u. I already got the visa for USA

merry cobalt
#

I cant have a indieboy

#

that looks bad

#

call me when u 20+

remote widget
#

Gimme your number, calling u

merry cobalt
#

just ask for me

#

all knows me

#

at the bars

jovial island
#

WHAT
IS
HAPPENING
HERE
SMH

remote widget
#

I am a 39 y/o unemployed person who drinks at bar for the whole day

merry cobalt
#

Perfect

remote widget
merry cobalt
#

U would fit right in our pokernights

remote widget
#

No thanks I will instead sleep

merry cobalt
#

gamble away kids futurue

remote widget
#

no

merry cobalt
#

yes

remote widget
#

I will gamble u away

merry cobalt
#

what we do at the pokernights

jovial island
merry cobalt
#

u cant gamble me away

#

remember who is the indi

hollow heart
#

guys

merry cobalt
#

@hollow heartyes ms

hollow heart
#

if you're all comfortable talking to each other in this manner

remote widget
hollow heart
#

please do it in a group DM or something

slate leaf
#

Thats a good idea

merry cobalt
#

ok

hollow heart
#

because it's borderline uncomfortable for the rest of us

merry cobalt
#

ok

#

mina wanna dm with me?

remote widget
#

Smh

hollow heart
#

no thanks

merry cobalt
#

ok had to ask

remote widget
#

@merry cobalt u should seriously get some time off discord

slate leaf
#

Didn't really have to though...

merry cobalt
hollow heart
#

i mean i appreciate being asked first lol

#

so let's end this here

merry cobalt
hollow heart
#

i don't know all your interpersonal relationships

merry cobalt
#

yes i leave have a good night @remote widget @jovial island namaste namaste

hollow heart
#

and it's out of scope for our moderation team to understand them and judge accordingly

remote widget
#

Understandable

hollow heart
#

so rather than pushing the boundaries

#

just keep it off server

remote widget
#

Anyways I will just go sleep rn, gn everyone!

hollow heart
#

gn

merry cobalt
#

@hollow hearttoo bad u wasnt in mood for dms tho

#

if u regrets one day or night u can dm me

hollow heart
merry cobalt
#

that was my endline..

jovial island
remote widget
#

Smh then change the doctor

jovial island
jovial island
remote widget
#

Rip

hollow heart
#

not here. please. did you read my messages above?

jovial island
#

What so uncomfortable in uwuing hunter uhhh

hollow heart
#

we've gotten several reports that this whole interaction here made users uncomfortable

#

so i'd rather it just not continue

#

it started with the feminist comments

jovial island
median blade
#

lol

peak snow
#

I know this isn't about python but how can I run 2 different tasks with different versions of discord.py? I have a bot for discord.py 2.0 and one for discord.py 1.7
I want to run both on one server. Can any1 help?

round moss
#

use virtual environments

#

install 2.0 in one and 1.7 in other

jovial island
#

yeah

#

thats the solution

spiral ember
daring jay
#

sunders were the real blunder

simple pecan
mental idol
#

that looks yummy

hazy laurel
#

it just looks like raspberries in an edible dish

mental idol
#
myobject.new_section()
myobject.add_column(size="auto")
myobject.add_image(size="small")
myobject.add_column(size="strech")
myobject.add_text("Some descriptive text")
myobject.send()

or

with myobject.new_section() as section:
  with section.column(size="auto") as column:
    column.image(size="small")
  with section.column(size="stretch") as column:
    column.text("Some descriptive text")
myobject.send()

pithink These are small examples, you could build these objects to any level of complexity. What other builder-like patterns to consider?

#
image = ImageElement(size="small", url="...")
img_lbl = TextElement("This is a cat image")
icon_section = Container(width="auto")
lbl_section = Container(width="strech")
card.add_element(image >> icon_section, img_lbl >> lbl_section)

🥴

brazen jacinth
digital bane
hazy laurel
#

true as heck

hazy laurel
mental idol
#

Vision indication of what object you are building. A Container in this case.

hazy laurel
#

yeah... I think I hate that lol

#

I wonder if you could use like a dataclass here

mental idol
#

These are all dataclasses.

hazy laurel
#
class SomeSection(Section):
    column_name = Column(size=Size.AUTO)
    image_name = Image(size=Size.SMALL)
    another_column_name = Column(size=Size.STRETCH)
    text_field_name = Text("Some descriptive text")  # ??

send(SomeSection)
#

I do think an Enum would be appropriate for size btw

#

I don't like using strings for things like that

mental idol
#

It's modeling an established schema so string will stay.
The thing is I have these pieces. TextBlock, Mention, Image, FactSet, and they all can go into Container. Additionally, within a Container, they can be optionally be nested in a Column.

#

So the pondering I'm at is how to build something in code that makes it work.

hazy laurel
#

hmm, I feel like the 2nd example doesn't really help with organization

mental idol
#

I agree.

#

I'm over complicating things at this point, but it's a neat exercise in structure now.

spark grotto
#

@proven tendon ask in here

#

Okimii timed me out

proven tendon
#

hm

spark grotto
#

@jovial island when are you going to untime me out

jovial island
#

🗿

spark grotto
proven tendon
#

@knotty anvil @jovial island @fresh yarrow should okimii rename akeno to tweeter
react ⬆️ to agree and ⬇️ to disagree

jovial island
#

no

#

@spark grotto youre a real one down voting

#

bro

jovial island
#

i dont know you anymore

#

dont talk to me

spark grotto
#

tweeter is so much better

proven tendon
#

yeah

jovial island
#

nope

proven tendon
#

.pypi tweeter

#

it isn't a package

jovial island
#

see

proven tendon
#

lets claim it

jovial island
#

no

proven tendon
#

why not

#

it's a good name-

jovial island
#

cuz akeno🗿

spark grotto
#

Why if we make akeno a mirror for tweeter 🗿

spark grotto
#

Bor

#

It's 3 to 1

proven tendon
#

yeah

jovial island
proven tendon
#

yes

patent elbow
#

He can name it whatever the fuck he wants!! Look at this bozo's dapi wrapper name @knotty anvil

#

@jovial island i take online payment too

jovial island
heady schooner
#

Me too

dusky cliff
#

nice to look at

fresh yarrow
scarlet summit
remote widget
#

@small shore for me:
() Brackets
[] Square Brackets
{} Curly Brackets

small shore
#

AMshrug idk then

#

I thought what I knew was universal ig

remote widget
#

And yea, I'm Indian

small shore
#

Idk why but having the same name with different adjectives/descriptions really bothers me

remote widget
#

Indeed

jovial island
#

and does my pfp look creepy enough?

remote widget
#

Uhhh yes

remote widget
jovial island
remote widget
#

Smh

jade bolt
#

sme

#

(shaking my eyes

remote widget
#

Lmao

#

Facts

jovial island
#

lol

remote widget
#

Phew

#

Thanks for changing it back

jovial island
#

Multi vitamin supplement with serotonin reuptake

#

Want some?

#

It so tasty

carmine herald
#

ill stick to veggies

remote widget
#

Same

simple pecan
mental idol
simple pecan
#

ARE YOU GETTING THE JOKE

mental idol
#

Of course not, I'm eating pie now.

slate leaf
#

My Raspberry Pi wasn't that tasty

real forum
floral flicker
carmine herald
#

🅱️izza

shrewd cobalt
#

dunder blunder - i like this name

digital bane
shrewd cobalt
#

Crocodile Dundees - well he's different , Dunder Blunder

#

younger brother

ionic flax
#

is there any api to let me listen to eas (Or specifically WAS (Wireless Alert System))

fluid plank
civic plank
#

What if you were born on Feb 22nd on 22:22 and you turned 22 years old today? 🙀

#

lucky 🙄

carmine herald
#

with that name i doubt thats lucky sheeesh

civic plank
civic plank
#

took cat with me for breakfast today

#

also wtf is that seating position lol

fluid plank
civic plank
#

im having so much trouble figuring out what breed my cat is... The iOS automated system says he is a French Chartreux, but my vet says domestic short hair 🙄

#

some people on reddit says he is Russian blue.... so i am even more confused

hollow heart
#

idk much about cats but yours definitely shares some characteristics with my friend's russian blue

#

the pointy ears and nose color stand out to me

#

my friend's cat

civic plank
#

so that is why my vet has him down as "domestic short hair", he is probably just mixed breed

civic plank
hollow heart
#

yes

#

so he was drinking some milk from a finished cereal bowl

#

butler took away the bowl

daring jay
civic plank
#

lmao.. also he does look very similar to my cat except the fur color

hollow heart
#

was less than enthused

#

he takes his cat out on short walks on a leash

civic plank
#

mine loves play fighting, he bunny kicks the shit out of my hands if he gets a hold. doesnt hurt that much because he is still a kitten lol

#

but i try to replace my hand with the several toys he has, so i can teach him my hand isnt a toy

hollow heart
civic plank
civic plank
hollow heart
#

he looks older for some reason

daring jay
languid osprey
#

Aw cats

civic plank
hollow heart
#

the cat's butler is also a member of this server EYES

#

idk if i should ping him

civic plank
languid osprey
#

Catler

civic plank
#

i like guessing

languid osprey
civic plank
#

I knew it

hollow heart
civic plank
#

cutee. i need to do that with my cat, but i feel like he will hate the leash

#

right now i just carry him outside whenever he cries near the frontdoor

hollow heart
#

hehe found the picture

civic plank
#

very rare to see cats being walked on leashes, they enjoy it right?

hollow heart
#

i say "walks" but it's more like he explores and sniffs some grass for 2 minutes before going back inside

civic plank
#

oh also my cat loves staring at birds flying by, almost like he is ready to pounce on them lmao

#

natural hunting response i assume

hollow heart
#

i heard they love people and animal watching lol

digital bane
civic plank
#

now introduce a new cats smell and almost all cats will go batshit crazy

hollow heart
#

lol

#

also like, wtf is catnip

fluid plank
hollow heart
#

and why does it do what it does

fluid plank
#

cat on leash

hollow heart
#

ikr

fluid plank
civic plank
fluid plank
#

some go drunk like

#

weed

hollow heart
#

and it only does that to cats?

civic plank
#

also it's not like "jumping around" playful, more like "lay on my back and let me lick your hand" playful

fluid plank
#

i think so. or maybe those that have that receptor on their noses

civic plank
#

it is called catnip xd

fluid plank
#

lemme check since im no animal biologist. im just a microbiology student :((

hollow heart
#

i've seen a youtuber that has cats and a dog give catnip to a dog lol

#

i don't recall if it had an effect

civic plank
#

dogs get excited for everything tho, unlike cats hehe

#

i had to go through a lot of trial and error when trying to pick a good toy

fluid plank
#

hmmm googling only a few species are affected by catnip; but most that are affected are felines

civic plank
fluid plank
#

dogs do react but only rare. cats eh well u already saw how batshit crazy it does

civic plank
fluid plank
#

amazing how high those faces are

hollow heart
# dusky cliff mood

lmao btw what is your pfp. a dog? giant cat? i just imagined it sauntering out for a walk and then deciding it wasn't worth it

#

!u 787351231332483102

#

oop

clever salmonBOT
#
hsp (hahastinkypoop#8591)
User information

Created: <t:1607789561:R>
Profile: @dusky cliff
ID: 787351231332483102

Member information

Joined: <t:1608094607:R>
Roles: <@&267629731250176001>, <@&267630620367257601>, <@&721823215340748810>, <@&764802720779337729>, <@&463658397560995840>, <@&518565788744024082>

Activity

Messages: 73,190
Activity blocks: 16,282

Infractions

Total: 18
Active: 0

hollow heart
#

that's a dog right

dusky cliff
#

its a turtle obviously

hollow heart
#

oh right

dusky cliff
#

(its a dog)

hollow heart
#

whose dog?

#

and why this pic

dusky cliff
#

idk random dog i saw on a street lol

hollow heart
#

oh it's your own photo?

dusky cliff
#

its complicated

hollow heart
#

hahahahaa

mental idol
#

stolen dog 👀

hollow heart
#

whose dog is correct right ?

#

not who's dog

mental idol
#

whom'st dog.

hollow heart
#

whom's dog

hidden kernel
hollow heart
#

he him's his

#

who whom's whose

#

totally checks out

wheat rock
#

english server off we go

hollow heart
hidden kernel
#

well ideally the mosquitoes aren't in the house, but yeah they just dont like it or something

hollow heart
#

lol you speak as if you never encountered mosquitoes inside your house ?_?

hidden kernel
#

well if they are, the catnip can't keep them away because of the walls

hollow heart
#

what if you just

#

rub yourself with catnip

carmine herald
#

you fly on the rain

hidden kernel
#

probably works if you dont have cats

dusky cliff
hollow heart
#

lmao i just googled catnip and got "Meowijuana"

dusky cliff
#

LMAO

wheat rock
#

lmao same

dusky cliff
#

!otn a meowijuana

clever salmonBOT
#

:ok_hand: Added meowijuana to the names list.

mental idol
#

owo gimme that good leaf :3c

hollow heart
#

i have no weed emoji?

dusky cliff
#

hmmm very interesting

hollow heart
remote widget
#

👀

mental idol
#

Bed time here. Javascript day tomorrow. Dance_Choco

remote widget
#

Morning for me

#

Just woke up 😴

#

Smh wish there was a waking up emoji

wheat rock
#

🥴

remote widget
#

Haha

#

🥱

#

Found it

wheat rock
#

dont say you woke up at 10 am

jade bolt
#

I just woke up

#

at12:40

hollow heart
dusky cliff
#

make .reverse work on gif emojis when

hollow heart
#

get on it LaserKeypora

wheat rock
#

ez

#

step 1) get an api that does that for you

#

done

dusky cliff
wheat rock
#

what

dusky cliff
#

oh wow thats a terrible gif

wheat rock
#

okay this can be done with pillow

remote widget
dusky cliff
#

yeah lol image = Image.open(...); image[-1].save(..., append_frames=image[-2::-1])

remote widget
wheat rock
#

yeah somewhat

dusky cliff
#

that one's with an online converter

remote widget
dusky cliff
#

lol

wheat rock
#
from PIL import Image
im = Image.open('original.gif')
frames = im.get_frames()
frames.reverse()
frames[0].save('reversed.gif', save_all=True, append_images=frames[1:])
remote widget
#

I never used pillow anyways

wheat rock
#

hm to lazy to test , tomorrow exam W:ea

dusky cliff
#

W:ea

wheat rock
#

nvm

remote widget
#

hsp, wanna do the honors? 👀

remote widget
jade bolt