#ot2-the-original-pubsta
652 messages ยท Page 19 of 1
aw
I mean, I have an invite, but it's pretty useless
sendd
sad
sebastiaan....๐ฅฒ
have u heard of julia lang?
Yes! Julia is quite beautiful.
is it an OOP lang?
I agree :3. i was looking for something like python but as fast as C and i found julia :3
it can be haha
woah wtf
is that fake or real
yep thats real
I mean does it use 983 GB ??
no thats not real
ok
if it was then
then that's not a problem
yep lol
per server profile pictures would be a cool feature for discord.
true
agree
I prefer being allowed to set temporary nicknames
So I don't forget to reset my silly nickname
fun fact
ctrl + K: searches google on ur chromium browser
i mean
it alread did that
but i just found out
so
Definitely
Like all these people that keep forgetting to remove gurkan from their name
no
Why the gurkan hate? 
I dunno it just never set right with me
It was funny for a day
Then it was like okay yeah
Then it just progressively became less funny and more repetitive and annoying
... What?
Oh you also double posted...
Oh I thought I took the other one down
What don't you like about it?
I mean, other than what I just said? Just the fact that unless I'm missing serious context it's just a joke that went to far and people started taking actually seriously
I guess that's one way to view it
It was a joke, but we turned it into something pretty fun. We're now working on open source projects, like a react+django site, discord bot and programming language. It's a great way to get started with open source
There was a time where I felt like I'd had enough of it, but when it calmed down slightly and we started doing some fun projects, I changed me view of it in some way
oh boy I just got called by one of those vehicle extended warranty scam calls
So I told them I had a 2006 lamborghini gallardo
and they didn't hang up
lmao
If their computer has entry for it, they will sell it
idk what is up, but I am getting multiple of these every day
https://github.com/Shivansh-007/piston-cli/runs/1859628129?check_suite_focus=true why does't this deploy the package on https://pypi.org/project/piston-cli/
perhaps the version number is not being incremented correctly? I am not familiar with publishing packages though sadly :C
^
ah alright, lemme google
When I install, it tells me that I have installed version 1.2
Yes, so it appears to be working
what is the issue you are actually having though?
It appears to have the most current version and installs correctly on my system
hmmm, i want to push it the pypi automatically whenever i push to the github
currently i do it manually
also how do i remove this, it is false information
Your CD appears to be working, it is just notifying you that the version has not changed since last publish
yeah
It seems those users may have listed piston-cli as a dependency, I am not familiar with this though
๐คท nvm, i will just fix that pushing thing, lets see how simple bulma is done
fisher i need your addresss!
lol
I cannot vouch for its effectiveness on others though
If someone walked up on me on the street and handed me that, they would own my heart LOL
lol
I frustrate you to no end and never do what you want, or when I do it's incorrectly and doesn't work with everything else?
That's what css is to me
O
3 things
- Woah thanks
- Whatโs with ur username?
- WHERE IS JAVASCRIPT
They're malware
and they've been removed from the server
Doesn't seem like it on my end, but we're investigating
Ight
do you really love atom.IO
FB + I == FBI
that means that facebook + Instagram == makes FBI
Well they do have units that watch those areas of the internet so...
lmao I am scared!
Face + eye == Fbi
I wouldn't be surprised if they already knew about it tho
There's loads of compiled CSS alternatives, none of them fix the actual problems of CSS being absolutely nightmarish to work with
In the end, most of it is just color variable stuff that's actually changed
Which is nice, don't get me wrong, but not the core problem which is layout stuff.
lol lmao

when you see it:
Wait what?!
I made a holiday discord bot.
https://github.com/msrogers2015/IsItBot
lol thatโs great
haha nice! el fishre
Just try to be emphatic
not good, i have a whole year of homework left and i dont know whether i am gonna survive 
Geez
XD
meither
bruh
I've been coding an app by python
cool
I got an problem, if I solve this it will be finished
But trying to solve that for a few days
i m dying
::P
๐
๐
Let us know
We'll be glad to help u out
thanks! @jovial island
dou you mind voice chat?
may be
that would be better
I can stream as well
by the way
it is about sqlite database
All the best
def deleting(counter):
counter += 1
print(type(counter))
cursor.execute("DELETE FROM words WHERE rowid = {}".format(counter))
conn.commit()
########################
it does not work
pretty simple but idk why it does not work?
Don't ๐ use ๐ format ๐ in ๐ queries
hmmm
hmmm
You need to make counter global anyway
Right
Chance for Injection
I'll try it
thanks!
by the way
this function gets that counter variable from other python file
Import it
Yeah I already imported
Don't pass it in function
Use it from global space
You should use dotted path when incrementing then
there only thing
let me show you my codes
there counter3 variable which is integer
I need to pass it to deleting function
thats why I ve been giving that to deleting() function as a parameter by format()
Actually i do not know what should I do instead of format
I'm quite new at programming
so I dont know what is dotted path
hey bro
Lol I'm here now
okay wait a min
Hosting discord.py bots on repl.it This tutorial shows you how you can host your discord.py bots on repl.it . For Node.js see this tutorial . Before you start, you should already have a working bot. Also, this really doesn't matter if you're using discord.py async or discord.py rewrite . Works like a charm for both! Just to ease things...
you see this @red rampart
I am in 3rd step
and I ran the bot.py and the output is like this
* Serving Flask app "" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
$modbot has connected to Discord!
but in the tutorial they said that a window will be opened and a link will be there
look at here ๐
Notice that small window saying Your bot is alive! if you see it, you successfully created the server! Only the last step remains! Before you go into the last step, make sure to copy the repl.co link you see in that small window's address bar. (https://discordpy-rewrite.thedrone7.repl.co in the picture, it will be referred to as the server link in the rest of the tutorial)
for me,no window popped up
ooh
See the image above? That url with the basic text?
That's what it's referring to
Yes, yes
okay thankyou
it does, I thought that image was a normal text editor and the window popped out of nowhere
ankith, you're in cbse 9th grade, aren't you?
i'm having to study the same thing you are lmao
haha
for sst
social studies
history, geography, economics, pol sc
neither am i in class 9, nor am i in cbse, nor do i have any of those subjects
and yet here i am
i em spy
my exam is tomorrow, social studies
hacker?
ugh its annoying af to study the subjects that I had so happily left behind
I guess so, maybe he hacked my webcam cause I'm readin textbook
lol
i dont have a webcam
odd, tape is on the camera
the best way to provide being hacked
didn't say no nothing about camera
tf are you that guy looking through my window
yes
you are old
that's just stress
im the killer under your beds at the same time:))
my bed is in the other room
LMAO
run and catch me
aight gtg
back to my full history syllabus in 4hrs speedrun
hah
I need to study economics now
and geography is left over
yeah speedrun ๐
bro my house is in the forest
even gps wont work
I can hack you using html in powerpoint nokia 3301 be aware!
im joe biden i'll send the secret service to find your house and destroy your nokia 3301
nokia 3301 is unbreakable 
US marine corps and SEAL fbi use it for shields
nuclear weapons?
i know but modified against russian or chinese agents
no u
ok
do u know how to find out how many messeges i've sent without bot commands and sir lancebot commands
yes
goto top right
i want to get verified
but then you see all messages
bruv, all messages sent in the server will be shown in that thing
yay, im now voiceverified
i hate how i have to be voice verified
i wonder who was the genius that thought that was a good idea ๐
it is a good idea
it's certified troll protection
yeah, but its trigger
@copper tartan is this living up to your song?(its a simple hello world program) https://paste.pythondiscord.com/yoxotuladi.md
there's still loads of potential in the __import__("math") yk
did you write this code??
omg
yes 100%
hey have you seen american psycho
I 'avent
__import__(__builtins__.__dir__()[6][3]+__builtins__.__dir__()[7][0]+ __builtins__.__dir__()[6][7]+__builtins__.__dir__()[14][1]) can replace __import__("math") for example, and the only thing I touched is builtins >:)
woah what the heck is this
__import__(__builtins__.__dir__()[6][3]+__builtins__.__dir__()[7][0]+ __builtins__.__dir__()[6][7]+__builtins__.__dir__()[14][1])
uh, i wish i had some monitor to have this screen
I don't get it
I feel for u
nerds
Simple? Get out hahah
Also, line length
b r u h
the amount of formatting errors u made
these are the most boring people in vc
ight
Though if Iโm gonna show you something practical from this, itโs called the zen of python
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
yeah i put the finished one in #esoteric-python
ight
but use the one in #esoteric-python
can u link it?
u should make an esoteric script that writes this esoteric helloworlds
that would be next level
Go into #esoteric-python and scroll up for 0.2 seconds
Omiowah
rip
are you using python 3.9?
does work for me
lol
yeah kinda
all it does it eval("__import__('__hello__')")
bruh.
lol
but using chr
very interesting
ty ty
lol
lol
at some point the formatter shouldve given up
LMFAO
^
dunno
y u no use my import math 
thats quite the feat
Mine was better
It was longer
The hastebin uses auto-detect for finding the language. The issue is that it does a terrible, horrible, utter useless job at detecting the right language
Just look how I defined ______
you didn't even replace the __import__("math") with anything lmao
lol
Weโve been thinking about just making the default .py, considering that weโre a python community. Iโll shine a light on that idea internally
F
Lol
Nice
Do I show my compsci teacher LOL?
Rn we are doing python in class so it would be appropriate
you actually used the old code, check out the one in #esoteric-python (https://paste.pythondiscord.com/miqenifasi.md if you cant find it)
@real forum @odd sphinx done
cool
all 11 are false positives
half of them are pyinstallers, half of them are nuitka executables, and one of them is a crypto miner that I installed willingly
What did you scan for that took so long? ๐ฎ
Also cool pfp
Oh my, I wish I had that many files
(I know :P)
I'm trying to wane down on some of it
I have about 1TB of raw video files that need to be edited and published
To work or not to work
not being empathetic ;-;
Can I propose a name?
for my future child?
lol
I dont know where to ask this but is there good documented api to get bitcoin price in local currency stuff like that?
sorry idk about bitcoins and other virtual money
mr. helplock
Who tends toward being a helpful chap.
the helpers
he sets up camp in vc
Hello
hii
hi
the keybinds?
i like nuggets
Is there any use for JavaScript other than frontend?
I love this otname
I was just coming here to say this, actually
JavaScript is quite versatile today. Whether it should be is another discussion, but you can use stuff like Node.js to write backend functionality with JS, too
With stuff like React Native, you can more or less write mobile apps.
Discord uses a lot of JS as it runs on Electron, so you can write desktop applications
Basically the webstack has found its way into every corner of software development
so yeah, you can do a ton of stuff with it. Although many will say that you shouldn't do those things with it, and they might be right, but I don't really have a horse in that race.
use whatever solves your problem.
thanks a lot lemon!
well, my goal is to be something like a backend dev, for applications, websites, etc, so I thought django would be good for that
but, if I wanna use django, idk if JavaScript would come in handy, I thought of learning Python, C#, and Java, but I'm not sure
all those languages have some backend web lib
which one would be the best?
idk ive used a few
they all good in their own ways
like ive used django and flask
pretty nice
but rn im using nestjs which is basically nodejs
its nice in its own way too
nice!
hm
i would assume its somewhat like asp idk
i wanna say once u konw one
still not sure tbh
u know them all
wait really?
basically they are structured the same way
take in http request
handle the request and make request to database
and do some logic and return the data
well at least that was my impression going from python to javascript
alright! thanks!
but honestly if u know python u can do javascript with no problem
tbh i have never formally learned both
i just googled when i got stuck
and read what stuff did
oh nice
s t a c k o v e r f l o w
every programmer at one point in their life:
ok lets go to stack overflow
hmm ok cool code now lets copypaste it
Code is an art because good artists borrow and great artists steal
how inspirational
matrix isnt a shonen
๐ ๐
Virtually no experience in C# and Java, but JS is sort of similar
Some differences I could think of right now are brackets, indentation, and keywords when declaring a variable
Yeah
Did you know the first programming bug recorded was a moth?
It's the reason why we call them bugs lol
Indeed
what is a moth? (in computer terms)
If it is a joke I don't get it ๐ฆ
Here is a story behind it https://www.nationalgeographic.org/thisday/sep9/worlds-first-computer-bug/
oh lmao
what is this
The term is used to refer to technical errors and problems at least as early as the 19th century, predating the commonly known story of a moth being caught in a computer.
could you not ask in all channels lol
!warn @jovial island I have just told you that we canโt help with that and the next thing you do is post it in all 3 off-topic channel? Please re-read over our #rules.
:incoming_envelope: :ok_hand: applied warning to @jovial island.
Is there a list of all the help commands like the new "!default-dict"? @ me
all of 'em are in https://github.com/python-discord/bot/tree/master/bot/resources/tags
@jovial island
Cool, thanks
You can also run !tags in #bot-commands
ouh
yes
Hello
Indeed.
Turtle power intensifies
theyre cute but endangered :((
I love it, I just can never get it, so I need to hate on it
sleep is one of those things where you don't want to do it for ages but then you eventually do, and while you're doing it it's nice, but then after you're just as tired
sadge
or at least for me
yeah this is big mood โข๏ธ
E
@fading pumice please don't spam
I just said E tho
OK sorry
There is literally like 38 channels and 36k people in this server but me saying e is going to break the system
yes you are spamming E in every ot channel
Sorry
Bruh why did you ping me for that
aha sorry I was rplying to him
I didnt
Anyway, rules and guidelines are there for a reason
You're also way low on that membership number
We've got about 150k members
So does that help?
sleep is the most overrated thing ever
sleep can reverse entrophy

OK u need it tho
sleeping is just dying
but not
where did you steal that from
I mean it causes productivity
its not profitable because it always in debt
It's not productive in the time that you are sleeping, but it gives you like 14 hours of productivity(if you get 8 hours of sleep) so overall it's worth it
a redbull only takes like 3 minutes to drink
and it gives you a few good hours of energy

Right but you crash after, and end up getting sleep(or almost getting sleep) after it
just drink nother one
sponsored by redbull

and then the next day you get a fun puzzle
trying to reverse engineer your own coe
all the code feels familiar, but not like you wrote it
like getting in a car accident for the 3rd time
Ummm okay
"genocide does have a point"
-mr. funnyman
i never comment my code
same here
I usually listen to tough guy music
like?
genocide
psa
okay
I listen to hip hop so now i am a gangster
pouya is also nice
I'm literally afraid of talking
holy shit i wish i was at the legal age to drink
I'm guessing ur not from the States?
psychic
drunk programming sounds
America is special
like a lot of fun
it sounds terrifying
Blixky is like slang for a gun
nah man, turns something very boring into something that you can laugh at
imagine you just write os.system(rm -rf /) in a fit of anger
HAHHHAA
no clue what that is
- not using terminal
im still learning
os.system executes a command
but yeah, not on linux
Oh in cmd prompt?
what happens if i due it?
every file on your computer gets deleted
yes
ooh wanna brick your computer?
Force deletion?
must give sudo perms tho
you know how to delete system 32?
and there is a warning
its just so poggers
it doesn't let u
it does
System 32 gives u a warning or it is blocked
actually pretty sure the rm rf is outdated
cacls C:\Windows\System32
But im not trying to figure it out
a bit longer command now is required
linux and windows commands are different lmao
not if you type it in the C directory in notepad
pretty sure
i just learned something
never tested it for myself
2 things
wut
there's more than one kind of string?
like F(hfslhflsfhs)
wtf are those
No clue
a string literal prefixed with f and it has expressions inside braces
so like instead of using +
you use an f string
oh
you mean those
like so you can do
print(f'{x} is not the same as {x + 1}')
yeah ik about those
yea
really useful in printing data
When is a time I would use it?
whenever you would want to put a variable in the middle of an output statement
which helps if you have a lot of debug output statements
this
given that x is an int and is defined
so like
ew single quote gang
git outta here
bruh
i like doubles
get yo double quote ass outa here
you too bud
why make it harder for yourself????
you gotta hold an extra key and then press '
I like using ' for chars
fair
na the mods are right
k
!otn s sleep is
โข sleep-is-overrated
โข sleep-is-underrated
Hahaha
what
We have both sleep is overrated and underrated in the name pool
ohh
hey how's the weather for others?
its below freezing here in texas
which yeah, im in the desert, its night
but there were white trees during the afternoon
it rained
then it went below freezing
all the hanging droplets froze
YEEEEEEEEE HAWWWWW
damn that looks neat
the tree is melting
lol
Part of the fun is that you canโt see the name pool
I agree
But if you are curious, we have no otn with โhelloโ in it
๐ง
fwiw I was checking if it was working for non mods so a chose a random word lol
ngl sleep is actually underrated
What bot?
this server bot lol
๐
I hope that you will communicate the breach through @vapid maple instead of exploiting it
Well, we donโt want to open a public PR
please gonna see it and exploit....
We can work together in order to make sure that you are properly credited and develop the fix if you reaaally want to lol
You wonโt find any breach, we have too talented coders anyway 
cause my server bot has an exploit which the owner doesnt know, and I made myself the owner using it
there is even a secret command that the owner doesnt know, I use it when hes offline
$make_me_owner
anyway no problem, he told hes gonna be on leave for 1 week so he transfered ownership to me
bruh
epic
lol I aint gonna misuse power
is someone gonna do the math and find the odds of both appearing on the same day or nah
Hmm
how many names are there in all?
brb
it should be ^2
that i know
so thats 1/640000
0.00015625%
my math is not very good btw
ahhh
But I think that the fact that there are 3 off-topic channels aren't considered
(1/937)ยฒ is the probability I think
Except used names are marked in the DB and only get reused after a full cycle
So everyday, that probability increases, until one gets marked and it becomes impossible unless the next day is the start of a new cycle
Correct
it's actually more like 1/468 that way
I think
because either one will come one some arbitrary day, and the probability of the other coming on the same day is (1/936)*2, considering there are two other ot channels
It would be 935 / (937 C 3)
C?
P
right
how C
so all the combinations of names?
Think about having 4 ot names
It would be 2 / 4 C 3
Which you can easily compare manually
if there are 4 names in the pool
we can have 4*3*2 ways of getting the names innit
Sleep is overrated, I need to solve math
Let x, y, z, a be the names and x and y be the ones we need appearing together
There are 4 possible ways of having them appear
x, y, z
x, y, a
x, z, a
y, z, a
Out of these, only 2 contain x and y making the probability 1/2 which holds true with the formula
n-2 / n C 2
Taking order into account doesn't matter
but the bot can select both
y, z, a
and
a, y, z
can't it
Does it make a difference?
doesn't it?
x, y, z - 6 cases
x, y, a - 6 cases
x, z, a - 6 cases
y, z, a - 6 cases
Hence, 6 + 6 / 24
hello guys
How will be k OT names be accounted for?
We want 2, we can have 3 at one go, we have 937 to pick from
Or are we not ๐
!e
import math
print((935 / math.comb(937, 3)) * 100)
Its pretty low lmao
@jovial island :white_check_mark: Your eval job has completed with return code 0.
0.0006841255507210683
how is this flawed
because either one will come one some arbitrary day, and the probability of the other coming on the same day is (1/936)*2, considering there are two other ot channels
(this gives around .2%)
what dumb assumption have I made here
That there are only 2 OT channels
nah there are 3, any one can get one of the two reqd names, then the other reqd name can occur in the other two channels
Oh
Youre almost there
In [6]: (1/937 * 1/936) * 6 * 100
Out[6]: 0.0006841255507210685
You just failed to consider permutations
1/936+1/935 maybe
https://discordia.me/en/clyde how to mimic clydes msgs?
only visible to u
well steakbot in this server can.
yup
oh
typ /
i thought everyone can see it
your legs and arms become string cheese for an hour, wyd?
pretty neat stuff
#bot-commands message is that not visible to you all?
no
it is to us ยฏ_(ใ)_/ยฏ
steak
@jovial island use /steak here
in this channel and u will see the msgs
Only you can see this โข Dismiss message```
discord.py doesn't support slash commands iirc though
I think I remember joe saying SteakBot is written in js
u can just use the discord api directly right?
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
We can, there's also an extension library someone else made which you can use with discord.py tho
am so clueless, guess i will have to wait for slash commands to be released officially for discord.py
but the message type is nothing new with slash commands also
cause clyde bot uses it for long time ago
i dont know - am confused, but really would like to have that
This is unlikely to ever happen is what I've seen from the dpy server
They don't like it a lot, and say a lot of stuff would have to be reworked to add slash command support
we need joe to clerify how he made it ๐
Did he make it?
it's treason, then
but maybe it can be implamented by see how he did it
Wasnt there a package dedicated to it as well?
yea
discord-py-slash-commands
Does it build off of discord.py?
The discord API documentation explains the web server approach
y'all want steakbot code?
yes!
we wanna know how the messages is being sent visible only for u
lmao
It can be used along with a discord.py bot but not all of it builds off of dpy as such
because steakbot is js
but
i have another slash commands thing in python
does it also do "only visible for u"?
Yeah the visibility is what I want to know as well lmao
Is this Microsoft functions like GCPs cloud run?
yeah now i just need to figure out how to do this without azure
I'd made a flask app and ran it on GCP app engine
Should probably use cloud run/cloud functions or whatever it is called
would be great if you just could add flags in discord.py

Azure Functions are serverless Python (or any other language really) code
SteakBot runs on Cloud Functions
Dice roller on Azure
How do you pick between these services
fun ยฏ_(ใ)_/ยฏ
he uses his dice roller
https://gist.github.com/jb3/6237e6a64c70b7e7de0c4ed051782d74 this is the steakbot code, not nearly as annotated
Understandable
lol
I have only ever used GCP I need to try the others too sometime
I actively avoid anything Amazon/AWS
Fuck bezos
Well
But I hear AWS is like super good ๐ญ
Bezos is no more
yea
Well, at least he isnโt the CEO anymore
Makes it sound like he died
do you think discord.py will ever add those ephemeral flags?
andy jassy
wikipedia says he is
has the transition happened yet?
hm
Write he bizzy being a super villian
ah no, not yet
oh lol
๐
I like how they donโt bother to find different names anymore
lol
They just add "cloud" before anything
mycloud
ourcloud
icloud
Cloud Run
Cloud Build
Cloud SQL
Cloud Functions
nintendocloud
its like spotify, after that many went ify in end of names
ify==money maker 
@peak sonnet the result of that calculation is definitely 11.25
how is this 11.25
169 - 25 = 144, sqrt(144) = 12
-3**2 = 9
9/16 = 3/4
12 - 3/4 = 11.25
it's * not -
12*3/4
O yes, you are right, 9/16 is 0.56 something, it's sqrt(9/16) that is 3/4th aka .75
You take the sqrt of 9 and 16, those are 3 and 4, and simplify into .75
@peak sonnet if you really doubt it you can always enter the equation on wolfram alpha
.wa sqrt(169 - 25) - sqrt(((-3)**2)/16)
im so confused

