#ot1-perplexing-regexing
1 messages Β· Page 534 of 1
π
For this specifically, you can do it on line if it fits
Also feel free to ask this in #dev-contrib
change your entire bot code to have the bot instance named bot and not client
also, all the print statements are a bit redundant π
it would look a bit neater if you made a dict of what defeats what, and compare using that instead of making separate ifs for all
alright

yeah no we still have slavery, even in the us
unless "private, for-profit institutions in which people can be forced to work under penalty of law for little to no pay" suddenly isn't slavery anymore

i didnt understand cuz im new to this
d = {
"rock": "scissor",
"paper": "rock",
"scissor": "paper"
}
then you can use things like:
if comp_choice == d[user_choice]:
# comp has won
that still involves using if statements isnt it
but it involves less if statements
3 instead of 9
actually you can do it in 3 if's even without the dict
dont listen to haha hes from esoteric he will poison your mind
jk
u didnt get what i wanted to say
alr then
its rly muscular

yea, thats what esoteric does exatcly
RPS_WINS = {
"rock" : "scissors",
"paper" : "rock",
"scissors" : "paper"
}
RPS_CHOICES = tuple(RPS_WINS)
@bot.command()
async def rps(ctx, user_choice):
comp_choice = random.choice(RPS_CHOICES)
message = await ctx.send(f"{ctx.author.mention} chose {user_choice} and I chose {comp_choice}")
# compare if we won or lost
if user_choice == comp_choice:
#tie
elif RPS_CHOICES[user_choice] == comp_choice:
#user won
elif RPS_CHOICES[comp_choice] == user_choice:
# bot won
else:
# something went wrong with the logic
damn we hit 160k
hmmm
Hi guys am a newbie in python programming only started 2 weeks ago and am done reading python crash course by Eric Matthes, i want to begin my personal project i.e to build a movie streaming app and i dont really know where to start my research from, ill neeed your help guys.
pain
RPS_CHOICES = tuple(RPS_WINS)
π
pydis the best dis
lol
dissing is the best diss
>>> from dis import dis as dis
>>> dis("dis = 'dissing da best diss'")
1 0 LOAD_CONST 0 ('dissing da best diss')
2 STORE_NAME 0 (dis)
4 LOAD_CONST 1 (None)
6 RETURN_VALUE
Wait
for what
for dis
smh stay in this server @quick ledge
Lol
smh
proceed to kick
lmao
lmao
lmao
(||note: the above screenshot is lying to you and @quick ledge and I are still on somewhat of a speaking terms||)
whats up with vivek?
tl;dr I confused him for vivax and now I'm just rolling with it
lmao

who u
o i c
LOL (||just check my username first before asking who I am smh||)
Who the fuck is @edgy crest
idk
ima just change the pfp back
noice
why are you asking me though
I will keep that plague doctor pfp on 31 october
the same way you asked me who I was #ot1-perplexing-regexing message
I didn't I asked the channel as a whole. If you don't wanna talk in third person you don't have to answer.
Lol
ok fine
π
i just asked him as a joke for a pfp change dont take this that far
ankith101.rar is me. I am me
joke crushers
me is me

I need a new pfp :D
I was joking too although much more seriously
My new pfp is just going to be a giant :D
ez search google <some shape> patterns
do you want a kewl screenshot that you can crop and keep as a pfp?
and you get wonderful pfp's like mine
haha
Lol

the colors me pfp has
"me pfp has"
do you have an emoji that is similar to "π€" but the face is distorted and red etc

lol

it was like your "π€£" but the eyes popping out
aha yes
nice
lemme screenshot and crop
mk
Huh
β.topic
.topic
Lol
Being lazy.
.topic
Works for me :D
.topic
Suggest more topics here!
Lol
aha it came
did the embed colors change
good time to use this emoji (thx vinam)
o yea it became a lil bit darker right
Hmmm
lol
black forest?
fresh one
dunnno
yee
hm
mr.robot
oh i remember
py tutorials
tom scott vids
.topic
omg yes today is dr stone episode 9 airing cyao guys
computerphile playlists
weeb mode
gg
.topic
Dark :D
sunny. (smh stop asking the same question)
dark and white
!ban 528937022996611082 stop giving the same topics when a user enters .topic. you realise that you are legit trolling right?
white is also good, with strawberry and cookies filling
Suggest more topics here!
π¨ π applied ban to @median dome permanently
Lmao
idk somewhere
π¨ π applied ban to @median dome permanently
to my bed
.topic
π¨ π applied ban to <@&807437823262982144> permanently
wat
Error. user already has a ban infraction #ot1-perplexing-regexing message
Lmao
lol
.topic
uhh whattt
sarma
dosa and sambar smh
Suggest more topics here!
uh
1 duck
yes duck
.topic
.topic
.topic
Lol
the same topic -_-
.bm 819960510090182726
Your input was invalid: target_message is a required argument that is missing.
Usage:
.bookmark <target_message> [title=Bookmark]
@bleak lintel take a look at this masterpiece
Lmao
Inb4 @bleak lintel actually ran that command to send it.
he went offline
Mustn't. ping. @joe. unnecessarily.
Lol
lol
i just ignore pings in OT
most other categories I read, but I just mark as read through the mentions tab if it isn't relevant
Oh
I enjoy how you got two pings and one fake ping and you replied to the fake ping
Lol
Β―_(γ)_/Β―
hahah
shrug pug
Someone used !echo
nvm, it was the rickrolling joe
i was up in the chat history
wdym chat history
Did you mean:
fetch
defcon
Defcon
search
Hmmm
it wont show up in the help obvi
You disabled it
your secret command
!src
wait lemme find that screenshot
I will get it
Nah, we removed it
@solid pollen
Thatβs a fake screenshot
I can ask my spy
oh wait nvm
should i?
hm
what about the red power ranger?
wookie
Could be
yeah the red power ranger is always sus
how do y'all pronounce tuple
tew-ple
rhyming with couple right
no
whattt
toople
@wheat lynx
see what they think about you, am the only one who thinks you are nice?
teople
Wow
yeah I pronounce like so 
tewple is the weirdest thing i've ever heard
wookie is red. you know what that means
hhaah
It's a too pull
wookie how do you pronounce it
#ot1-perplexing-regexing message haha yes
it's tuple, rhymes with couple
@wheat lynx β€οΈ hello guy
Hello
na na na its cringe is hear tu-pp-le
oh god
what about tew-pul
am i the only one
Lmao
That would be tupple smh
but dont exaggerate ew
Teewpuul
tEEEEWWWWple
yeah this is how u pronounce it right
hahastinkypoop, hahaha
that would be if it's coupple smh mh
thats how I pronounce
or is it too-pul
it's tuple, rhymes with couple
two-pull
toopul
no
π₯΄
Lol
tewpul toopul twopul
Twewpul
You mean a coople
tupwe
yessssssssssss
NONONONO
NO
bruh
Lol
MY LIFE IS A LIE
Don't trust google
pronounce it anyway you like smh
sure
Mhm, in my heart, i'll always be too pul
ima keep on calling it "tewple"
Lol
oh both
yeah
Toople was first though
from stackexchangle lol
Hm
idc tho
because tewple is better
no
Lol, just .uwu the discord.py source code
Tewple and toople are the same thing though
i know
Huh
tuh-pl for the win
yeah as I said dont exaggerate ew
Chewple
yeah they are
Fine, what about tupul?
bruh
ah yes, tuple
Or do you mean tuple?
Ah Frick, that was the first joke
I guess we come full circle
lol
Lol
lol
Lol
wow
hahahhaa
wait what lmao
lmao
Lmao
Lmao
dis is (not) a mod sending dis
hm
Hm
Hm
HM
Hm
Hmmm...
hMh
hmmmmmmmmmmmmmmmmmmmmmmmmm
Lol
I believe the bot
.uwu hmmm
hmmm
hmm
hmm
.status cat 500
cat
.statuc cat 418
Hm
.status cat 418
Huh
aww
Guys i think @solid pollen will mute us if we continue to quote each other
Lmao
Lmao
lol
Lmao
Nooooo
Lmao
haha
Nooo?
Lol
Guys i think @solid pollen will mute us if we continue to quote each other
-@vapid nymph
lol
Lol
Guys i think @Akarys#2780 will mute us if we continue to quote each other
-@have you πd yet today?
-@hahastinkypoop#8591
Guys i think @solid pollen will mute us if we continue to quote each other
-@bold trellis you ποΈd yet today?
-@acoustic moss
@vapid nymph
oh no srry
I didnt mean to ping
Guys i think @solid pollen will mute us if we continue to quote each other
- @acoustic moss
- @low chasm
welp i pinged myself
ANd now my names broken
lel
Lol
lel
omg
.topic
topic :D
in 4 days it will be 1 year
Wouldn't be surprised if @solid pollen muted the channel for 15 minutes
Its been a year :D
yup
2 but inconsistently
Yup
uh, roughly a year, altho inconsistently before that
You really want it, don't you
Lol
na na na
Want what~~
no nononono
π
muting
brh moment

Lol
I mean, as long as it's not a real infraction
Nonexistent infractions?
hmmmm
imaginary infractions
Hm
artificial infractions
9
synthetic infractions
feigned infractions
arnav gurkan be like : lemme just send a random number into this chat
forged infractions
contrived infrations
Lol
.topic
Suggest more topics here!
fabricated infractions
Huh
hmm
elongated muskrat
Lol
lel
ewongated muskwat
lol
Lol
.topic

CLRS?
the Bible of data structures/algos
oh
although my reading skills suck so I couldn't read it
ah huh, seems like a cool book
just too academically dense for me
mm
but Grokking(ds/algos book) doesn't even go into detail
like linked lists have no implementation
heaps, queues, stacks nothing
binary trees nothing
I guess there is a sacrifice for detail when you want to go big picture
same
i mean
considering grrm's age
who knows
lol, ig he is fed up with this
if he kills jon snow, people revolt
if he saves him, people revolt
so
yeye
wonder how much he's planning to deviate from the tv series
he has already written winds of winter for sure
glad that someone actually reads the books instead of bragging about the fact that they have seen the series
Β―_(γ)_/Β―
Can I speak german here?
english only
:(
i read the books like long before i saw the series
and i saw the series only for
uhm
reasons
i never saw the series π
( Ν‘Β° ΝΚ Ν‘Β°)
Learn how to lose weight while sitting at your desk: https://www.thebodydeveloper.com/
Lizard Wizard Course: https://school.studioweb.com/store/course/lizard_wizard
WEB HOST PAYS FOR YOUR WEB DESIGN TRAINING IN 2021:
https://www.killersites.com/blog/2020/web-hosting-company-pays-for-your-web-design-training/
MENTORED BY ME - MY PREMIUM TRAIN...
I want to learn data structures whilst applying them but I can't find anything to work on

can't find anything to work on? or can't find somewhere to learn them
tracking covid stats and analyzing patterns?

Why are we tracking 
How does it relate to data structure tho 
data structures usually contain data, and statistics of things are a great source of data, aight?
so just take statistics of things and put them in a data structure

Do i keep them as objects?
Or store in vars
hmm
kinda depends on the data i think
but i think usually vars
wait... idrk im not too experienced lul

When editing in a @ -mention - does the person get pinged?
No
a random message, just added this part in an edit -> @rough sapphire
I wonder, does it even show the red 1 on the channel?
let's find out @solid pollen
@solid pollen
Nah
hmmmm
No <@&267629731250176001>
As you can tell
I'm so confident
I took a huge risk
But that's because I've tested this multiple times
Interesting
Because I don't have access to allowed_mentions since I'm not a bot, I can't suppress the ping.
Iβm confused
Except, being that it's a message edit, there is no ping, but there is still orange highlight
However, using allowed mentions, one can suppress the orange with allowed_mentions
Malware?
Rather a joke
Oh
Oh god
I just thought of a nightmare
I'll put it this way I hate the rm command on linux
why?
go on
since there was a lot of problems with people accidentally wiping themselves or trolling like "if you do rm -rf / you'll [do something amazing]" it was changed to not work in some distros and requires explicit --no-preserve-root flag
note to people reading, do not run the above command. Reason: it will wipe your filesystem, including all system files
lol i dont even use linux
it will require sudo anyways shrugs
btw, I once dd'd the current drive
on purpose
I wanted to wipe the drive clean (I got a new work computer and wanted to clean the old one before sending it back) but usb boot didn't want to work for some reason, so I wiped it from inside itself π
Oof
it was funny to watch - I opened a second terminal and did ls on things... and then ls stopped working
and then at some point terminal windows closed
and then at some point other windows
and then at terminal session which was shown after X died I saw some errors π
Hm
Oh for fucks sake
So this guy I know
Well
I was trying to write a discord bot
But they wrote a discord bot.
Including a library
why does him writing a bot stop you from writing a bot? There's hundreds of discord bots out there
I'd suggest.. don't copy commands from people online :)
Oh ffs I didn't finish my statement
We're doing it in different languages
And they heavily created a library for their language of choice
No....
They wrote an autohotkey wrapper and then a bot.
They wrote a bot in that language
oh AHK
i've made a few macros w/ that
Ye same
I'm trying to force snekbox to run autohotkey code
heh
I've done similar before but I'm gonna do it to snekbox or die trying
Related: if I'm not around in like 2 months I probably died to snek
lol
but why? 
i didnt know ahk had a discord, so thats nice
Ye, it's also where you can use the api used above.
cool, cool
Guys, i'm thinking of making a programming language, I'm thinking of something like this for the syntax ```
// print
print("HI")
// function
func myfuncname(data: Int):
match data{
5:
print("THE DATA IS 5 :DDD"),
return
6:
print("THE DATA IS 6 :DDD")
return
}
return
// Class
class Test:
--initialize
func initialize(self):
self.data = "TEST"
func foo(self):
print("FOO")
// condition
if 5 == 5:
print("5 IS 5 LETS GO")
else:
print("NO!!!")
// collections
x = [1, 2, 3]
y = (1, 2, 3)
z = {"Hi": "HI"}
// using class
test = TestClass()
testclass.foo()
Is it good, too verbose, not enough verbose?
I want to make it in rust
E_MESSAGE_CREATE(ctx) {
static bot_what := ["what", "angry", Unicode.get("question"), Unicode.get("grey_question"), "blobpeek", "happythonk", "confuseddog", Unicode.get("eyes")]
static pingPrefix := "My prefix is ``{1}`\``n***{1}help*** for help menu!`n***{1}help*** **<command>** for command description!"
if ctx.author.bot
return
ctx.guild.data := this.getGuild(ctx.guild.id)
What language do you guys think this is
Hm
(Not js)
not a chance
Autohotkey
Oh
Ye
python?
ctx.authro.bot
(no)
Lol
i don't entirely like the combination of : syntax and {} syntax if i'm being honest
like how you have match in {}
autohotkey
π₯Ί but with cat ears
ouch
uwu

you have to amp up your emoji selections haha
I like your emojis avery
when u have nitro sky is the limit
uwu
{} is superior
. @topaz aurora
lol
i will gladly make a programming language only made of {}
{{{ }} {}{ {{} {{}}} {}} {

Nice
{}{{{{}}}}}{}{{}{}{}{}{}}}}}}}{}{}{}}}} }} } {} { }
Looks like brainfuck with only two characters, so I fuck with it
how to coc-clangd?
u know what i hate
when im passing a closure into a function in rust
the analyzer shows me this dialog every time
lke bruh i get it
Hm, fair enough
Ohh sorry for the ping, I forgot to turn it off
i like ping
please ping
i require to be aware of when people are responding to me
otherwise i would have no idea
What about something like ```
match data:
-- 5:
return
-- 6:
return
Alright lol
Oof I'm on mobile formatting it is hard
match data:
case:
stuff
case:
stuff
case:
stuff
default:
stuff
Hm, that could work
And for functions, which one is better? ```
func funcname():
Or ```
-- funcname():
that's more typical
the former
Alright
i don't think -- all over the place is a good idea
here is how C# does switch statements as an example
using System;
namespace Example
{
class Program
{
static void Main(string[] args)
{
var name = "Avery";
switch (name)
{
case "John":
Console.WriteLine("Hello, John!");
break;
case "Sebastian":
Console.WriteLine("Hello Sebastian~");
break;
case "Avery":
Console.WriteLine("hewwo avewy uwu");
break;
default:
Console.WriteLine($"Hello, {name}, stranger.");
break;
}
}
}
}
Output:
hewwo avewy uwu
Cool
make it contrast by adding useful syntax and features. adding things just for the sake of being different never ends well
that looks like cpp and java at the same time...
which one is it
Alright, thanks :D I want the syntax to be easy to learn
ah yes switch very useful
C#
C#
ah..
lol yea that does look like cpp and java
think of
like java but if it wasn't fucked up
Lol
lol
why is java fucked up 
Shall I get out the list?
mfw java.lang.NullPointerException
wtf
Lol
illegal
I'll refine the syntax, and have a final version of how I want it to be sometime later this week
mfw Scanner input = new Scanner(System.in);
I want to make the language in rust, so I have to finish learning it first before I make start the programming of the language
Hm
cpp has
fax
I like how rust match statements work
same
I want to make mine sort of like them
case JANUARY:
case JUNE:
case JULY:
return 3;
ew
not ew
whats wrong with that
yes ew
explicitly terminated cases are actually pretty poggers
match month {
january | June | July => 3
}
maybe ew
yeah ok but this isn't rust lmao
nope
keep in mind that java and
are like,, the langs that define what (modern) oop is
use intellij idea
kotlin
i only use the red hat extension for autocompletion
make C# great again!!
what is wrong with C#
ikr
make kotlin better :D it's already great
dying
not really
C# is used a hell lot...
It is downloading boi
wdym dying
ikr
for enterprise system and game development ?
mfw c# kil
fr
literally every game made in unity ever
except the like .00000001% that use unityscript (ew)
C# is one of the most preferred way to make desktop apps too
ofc unity core language is c#
Lol
lol
debatable ..
yes
it is beginning to loose its footing to things like electron
but still, yes
unity is written in cpp afaik
it just allows users to use C#
Lol
i hate it too
rust is like a programmer's friend tho u would rarely get jopbs in it
hopefully it won't :(
but i cant deny the fact that its rooted deep
agree
might change soonβ’οΈ
hmm
my friend wrote an article about this, in the context of anti-capitalism
Java is still a worthwhile language to learn
I like when my download estimation time shows 7D
more like teacher who spanks you on ur every mistake
no. learn kotlin :D
Rust is a pretty modern language, so I'm guessing it'll get bigger
Lol, the better java
that's... not bad
bruh
its too obnoxious
wha-
it ensures you write proper codes. Not tragedies
basically what happens is that as hardware gets faster and faster, software devs spend less and less time writing efficient and good code
to the point that instead of using langs like C#, we've now decided as a culture that it is perfectly acceptable to just build your app on top of a motherfucking browser and call it a day
YES
Aren't companies switching to rust cuz of safety
u r not only gonna use rust forever
:/
that is literally what electron is so yeah
discord did, but it said that it likes experimenting and using modern languages
fuck discord
lol
uses brainfuck
if u know what ur doing, then u dont write code that turns into tragedies ...
maybe modern langs will get more used when java dies lol
The discord desktop app is horrible
and im shity coder but it is what it is
lol
It uses so much memory
when will java die prolly not soon
Lol
electron moment
rust def does
that's actually the fault of the users. They would take an app with more features over an app with a bit lesser features and lesser resource usage
thats why i am learning java lul
lol
no lang actually dies tbf
y java chottu ?? can u explain me ?
Java or Kotlin for android app dev?
Java is really rooted, it's not going away any time soon
its useful here
ummm...
esoteric does
kotlin :D
a lot of companies are in java here so
oh bruh wrong reply
Lmao, google recommends kotlin
Yeah
well java is widely used .. wym?
lol
that was wrong rply
Oh alright
no, it isn't the fault of the users. respectfully, that's a bullshit argument. there are no more "features" that an app written in C# would be missing out on that an app written using electron would have. it isn't about features. it isn't about anything the user cares about. what it is about is that just slapping it on top of a browser, while a hideous solution and a total waste of resources, is faster and therefore more profitable than using a better dev stack. that's the problem with corporations, is they are only motivated by profit.
They switch from java to kotlin
it is
Java is now used less as compared to Kotlin
Mhm
i mean language sudnt matter much tbh
ye
i sorta agree, but it's not a "corporations are bad" thing, it's a cost-benefit analysis/trade-off between development time and performance. i don't like it, but i see why they do it.
best, choose your favourite lang and make a startup
its how u design the system ...
or worst
my fan goes brrrr when downloading intellij lol
prob
gn
i tried intellij but its just like pycharm and it seems unecessary to me, even though its good
Yes
the problem is that our entire culture, economy, society revolves around money, around making profit. the fact that corporations seek profit at the expense of most anything else is only a natural result of that.
I did yesterday lmao
(I need to use my github student pack somehow lol)
No, you misunderstand
Development time is important. There are 5 devs who know C# properly and 100 who know js properly. They will obviously be much more faster in developing an app which more features than the 5 devs who were working on C# at the same time
not necessarily... its arguable
ice cream sandwich :D
:))
usually that's the case
is android studio used for android dev
i already addressed this. the fault is on the company's shoulders for seeking profit above a good product. and the fault is on our society for creating corporations that seek only profit. your response to this ignores what i already said.

Only two android versions are not named after food
what
Astro Boy and Bender
i prefer quality over quantity
other than that all are food
π§
what are food
Jelly Bean Kitkat etc
oreo
you are using discord?
Marshmallow
Ramen
no
ye ?
Only sweat dishes
what
this has "but how can you be against capitalism you live under capitalism" vibes
how does that explain foss project's decisions?
Ramen is not android version :((
what is foss project
yes
free and open source, specifically ones with little to no financial motivation
lets make one 
i don't understand what it is that you're asking
no tanduri
ramduri
tortillas
lol
hurricane katrina, more like hurricane tortilla
fun
there are many things i don't like about this
you can argue it's companies' faults and that may well be true in a lot of cases, but that argument certainly doesn't explain why projects with little financial motivation would make "inferior" technical decisions unless there is an explanation beyond just profit.
example?
yo can somone thats good at django help me out?
go to a different channel
π§
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
well it might die
#ot1-perplexing-regexing message the question had these vibes ^ lol

hmm
anyway
civil war ?
Suggest more topics here!
idk... my computer, fridge and all the money 
my favorite thing is when people try to rebuke marx by saying he just didn't understand capitalism
do i agree with all of the things marx says? no. i don't.
does your online 2 week bachelor's course in macro economics count more than the expert opinion of a many who dedicated his literal entire life to studying capitalism? no. it doesn't.
you did a 2 week bachelor's course in macro economics?







