#voice-chat-text-0
1 messages Β· Page 811 of 1
Why I canβt open my microphone?
consider the number 1532
the value of this number is
2 * 1 + 3 * 10 + 5 * 100 + 1 * 1000
@whole bear
@whole bear
β @magic hearth can now stream.
Sweet new command
||they're all integers
||
Always has been
Pow: 2**3 2**2 2**1 2**0 = 15
Bin: 1 1 1 1 = 1111
Int: 8 4 2 1 = 15
Mr. Hemlock, stock and barrel.
You can't say "daddy", unless you're a young girl. And only to your actual daddy
- Mr. Hemlock, 2021

I hate you all
Even worse π
I'm sorry daddy, I've been naughty
- Mr. Hemlock, 2021
God damn it
!warn @rugged root You should know better than to tell terrible terrible terrible jokes in VC
:incoming_envelope: :ok_hand: applied warning to @rugged root.
"Forgive me father for I have sinned."
"I'm sorry daddy, I've been naughty"
Booty call / butt dial
Isnβt that your top one goal though?
just entered the VC and the first thing i heard is hemlock talking about booty call. what an interesting day.
You're welcome
You're getting too deep into this
lol
Thatβs what- π
^
Hahah, hemlock beat you to it
Damn it
I should probably stop reacting to that's what she said just to see who picks up the slack
can u guys explain camel casing
the capitals look like a camel
i gotta go watch the pep8 song now
PascalCase
camelCase
My favourite term in programming is 'Egyptian brackets'
donTusEthiScasE
expain with code??
SCREAMING_SNAKE_CASE
dontUseThisOneEither hehehe
SCREAMINGcAMELcASE
Poor camel
UPSIDEDOWNcAMELcASE
iCase
The one which changes the text after - to upper case and removes the -
bookcase
damn its so good
LOL
this.case.is.weird
attribute.case
In the language Nim, names are invariant with respect to case and underscores (except for the first letter).
instead of dot just use -> that way you don't get parsing errors lul
i just asked my teacher if we will learn programming and she said YES!!π
sooo more time to learn pythonπ
Yep
It's so that you can keep it consistent within one project.
Even if different libraries use different styles.
convert_string
convertString
MyClass
from sys import settrace
from contextlib import suppress
def tracer(frame, event, arg = None):
with suppress(KeyError, IndexError, AttributeError):
name = frame.f_code.co_names[0]
func = globals()[name]
if func._trash_name == name:
del globals()[name]
def useCamelCase(fn):
old_name = fn.__name__
new_name = "".join(word if i==0 else word.capitalize() for i, word in enumerate(old_name.split("_")))
fn.__name__ = new_name
fn.__qualname__ = new_name
globals()[new_name] = fn
fn._trash_name = old_name
return fn
settrace(tracer)
!e
try:
=bnueda
except SyntaxError:
print("caught!")
@honest pier :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | =bnueda
003 | ^
004 | SyntaxError: invalid syntax
!e raise SyntaxError
@tiny socket :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | SyntaxError: None
!e ```py
from sys import settrace
from contextlib import suppress
def tracer(frame, event, arg = None):
with suppress(KeyError, IndexError, AttributeError):
name = frame.f_code.co_names[0]
func = globals()[name]
if func._trash_name == name:
del globals()[name]
def useCamelCase(fn):
old_name = fn.name
new_name = "".join(word if i==0 else word.capitalize() for i, word in enumerate(old_name.split("_")))
fn.name = new_name
fn.qualname = new_name
globals()[new_name] = fn
fn._trash_name = old_name
return fn
@useCamelCase
def say_hello_there():
print("hello there")
settrace(tracer)
sayHelloThere()
@icy axle :white_check_mark: Your eval job has completed with return code 0.
hello there
π
@whole bear I don't typically accept friend requests unless it's someone I've gotten to know
from fastapi import FastAPI
from discord.ext.commands import Bot
from asyncio import get_running_loop
app = FastAPI(docs_url=None)
bot = Bot(command_prefix="!")
@app.on_event("startup")
async def on_start():
"""Start the bot."""
loop = get_running_loop()
loop.create_task(bot.start("my_token"))
@bot.listen()
async def on_ready():
print("Ready!")
CAMEL CASE PLS
is this a DIY bot loop?
!e py try: eval('25rhj') except SyntaxError: print('Ta-da!')
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Ta-da!
oh Δ± understand Δ± am sory bro
!e
print(eval("2+2"))
eval is used to evaluate a single Python expression, exec is used to execute dynamically generated Python code only for its side effects.
discord doesnt recognise exec as a keyword π€
strange
wait no it does
im being stupid again
Really our !eval command should be called !exec π€
yea, it should
@stuck furnace your a mod... twice??
!e
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(69), ctypes.c_int)[6] = 42
print(69)
@tiny socket :white_check_mark: Your eval job has completed with return code 0.
42
!e ```py
eval('''
a = 47
print(a)
''')
@cobalt fractal :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "<string>", line 2
004 | a = 47
005 | ^
006 | SyntaxError: invalid syntax
!e ```py
exec('''
a = 47
print(a)
''')
@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.
47
Yep! π
We're going to use it so that mods can temporarily un-subscribe from mod pings
!e
print(eval("a = 47; print(a)"))
but still appear as a mod
@strange plank :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "<string>", line 1
004 | a = 47; print(a)
005 | ^
006 | SyntaxError: invalid syntax
ahh
!e
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(69), ctypes.c_int)[6] = lambda x: x**2
print(69)
@tiny socket :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 6, in <module>
003 | TypeError: an integer is required (got type function)
sad
!e
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(1234567890), ctypes.c_int)[6] = 3
print(1234567890)
@tiny socket :white_check_mark: Your eval job has completed with return code 0.
1073741827
!e print(id(1234567890))
@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.
140147512209168
@tiny socket was that sound you pressing the 1234567890 keys? π
I heard 'brrrt' twice π
And Ernie
!e ```py
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(-2), ctypes.c_int)[6] = 1
print(-2)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
-1

!e ```py
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(-2), ctypes.c_int)[6] = 4
print(-2)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
-4
!e ```py
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(-2), ctypes.c_int)[6] = -1
print(-2)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
-4294967295
!e
import ctypes
class h:
_fields_ = [('int', ctypes.c_int)]
x = ctypes.cast(id(1), ctypes.POINTER(Object()))[0]
@tiny socket :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 6, in <module>
003 | NameError: name 'Object' is not defined
!e
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(-4), ctypes.c_int)[6] = 2
print(-4)
@strange plank :white_check_mark: Your eval job has completed with return code 0.
-2
!e
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(0), ctypes.c_int)[6] = 2
print(0)
@strange plank :white_check_mark: Your eval job has completed with return code 0.
0
!e ```py
import ctypes
def deref(addr, typ):
return ctypes.cast(addr, ctypes.POINTER(typ))
deref(id(2), ctypes.c_int)[6] = 0
print(2)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
0
def f_unction(*args, arg):
print(args)
print(arg)
f_unction("1", "2", "3", "4", "5", "6", "7")
``` must `*args` always be at end?
!e
def f_unction(*args, arg):
print(args)
print(arg)
f_unction("1", "2", "3", "4", "5", "6", "7")
@strange plank :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | ('2', '3', '4', '5', '6', '7')
You can have a finite number of arguments before or after it.
And it gets the rest.
!e ```py
def test(*args, arg):
print(arg)
test("hello")
@icy axle :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | TypeError: test() missing 1 required keyword-only argument: 'arg'
!e py def func(a, *b): print(a,b) func(1) func(1,2) func(1,2,3)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 1 ()
002 | 1 (2,)
003 | 1 (2, 3)
Oh right, yes. I thought that too Hemlock π
!e ```py
*_, a = 1, 2, 3, 4
print(a)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
4
!eval ```py
first, *rest, last = 1, 2, 3, 4
print(first)
print(rest)
print(last)
@stuck furnace :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | [2, 3]
003 | 4
that works the other way round as well? (a, *_)
yeah
Yeah, sorry I was thinking about this.
I never remember exactly what / and * do in arguments.
!e ```py
def func(o, /, a, b):
print(a, b)
func(b=3, a=2)
@icy axle :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | TypeError: func() missing 1 required positional argument: 'o'
def f(pos1, pos2, /, pos_or_kwd, *, kwd1, kwd2):
----------- ---------- ----------
| | |
| Positional or keyword |
| - Keyword only
-- Positional only
can you give a code example?
@commands.command(name="source", aliases=("src",))
async def source_command(self, ctx: commands.Context, *, source_item: SourceConverter = None) -> None:
why is python general like this
Hello Guys Its David. This is a video where Elon Musk talks about his mindset and generally about success. In this video you will find a lot of incredible advice for life, for business and personal development. Check it out.
My Second Channel:
https://www.youtube.com/channel/UC_nuJgOtxeg5AjAofuZ76tg
Connect with me on Social Media:
Connect ...
its old discord
And when I disable auto gain it stil do auto gain
so damn and canary failed today again for some reasons
That's weird
!e raise import("tabnanny").NannyNag()
@tiny socket :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: __init__() missing 3 required positional arguments: 'lineno', 'msg', and 'line'
does anyone know C#?
!e raise import("tabnanny").NannyNag(2, "hey", 3)
!e raise import("tabnanny").NannyNag(5, "hehe you did a dum", " print(b)")
@faint ermine :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | tabnanny.NannyNag: (5, 'hehe you did a dum', ' print(b)')
@icy axle :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | tabnanny.NannyNag: (2, 'hey', 3)
archlinux
Β¦ββ£|
dis!.dis()
what about trying to learn to use Boa Constructor π
random!
print(random.randrange(2))
!apt install...
6 m 30-40 cm wide snake
def bla():
...
%timeit bla(1, 3)
from time import perf_counter
from functools import wraps
def timed(name: str = None):
def inner(func):
@wraps(func)
def wrapper(*args, **kwargs):
ts = perf_counter()
result = func(*args, **kwargs)
tt = perf_counter() - ts
print(f"{name if name else func.__name__} finished in {tt}")
return result
return wrapper
return inner
@timed("name")
just %time
my cat is upgraded
α‘αα’
I like the extra curl
This adds two numbers: 3 2 +
whats it with cats in this server?
{ :hello var
hello print
} :test jar
"you" test
Guess the output```csharp
using System;
class Test {
enum Foo { Bar, Baz };
static void Main() {
Foo f = 0.0;
Console.WriteLine(f);
}
}
{ print } :test jar
Laundo, genuine question, what do you mean about the lisp community?
'community'
Ah, right.
Maybe it's all in the past, but a lot of useful software was written with Lisp.
what lang is that
GurkLang
ooh π€
damn, thats some progress, how did I not know
We haven't done much with it recently. Lak, fix and I have been quite busy studying and stuff
ah okay
But yeah, it has gotten to a semi-working state
kotlin
cries in babel setup
who won #pyweek-game-jam
Like... the fish?
Vite is TS
wut?
its TS Vue
Babel fish
Most browsers support the more modern stuff
node
xD
sup
Hitchhikers reference yay
I'm glad someone got it
lol Jordan left that project and its now run by kids. I mean the whole react thingy.
You can watch their streams of meetings sometime on https://www.twitch.tv/cassidoo
She work in the Netlify but has worked in FB on react.
Flutter is great
'fucking criest
π
Also yeah, mic is pooping itself again
holds back a "your mom" joke
@jaunty pendant hai
hai
I'll be off soon
aw
just popped in for 5 minutes before I go
e
What's going on in oof world?
biochemistry and dna folding
also cv writing
cvs are an absolute pain
which is why I stopped after 2 sentences
gotta finish it on sunday
how relatable
i think i have gone deaf
you can individually lower user volume
i had Marko on 160%
Much Vester, such Gurk
hallo oof
proof that aliens exist
or kidnappers
or that
slowly drags him out of the room
No I just imagined him being in a wheeled office chair and someone just slowly pulling him out of the room without him realizing
I think it's his auto gain
"just... gotta.. finish... this.. senten-"
nooooooooooooo!
give us back our marko!
There's better ways to phrase that
PH
Without the rape part
uh
ear intensifies
bruh
I know it's a common turn of phrase, but I'm just not keen on it
auto gain is turned off but again
Kind of normalizes the concept of it, taking away the severity and horror of it
!voice @earnest matrix If you're wondering why you can't talk, this should tell you what you need to know
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
What, from the server?
from the VC
Yeah he's been bouncing in and out
And usually people do that if they don't know why they can't talk
in, out, in, out, bouncing all about
Hokey Pokey
that's what it's all about
why does that sound sexual
oh god
lol
probably your dirty mind
nou
ExCuSe Me SiR, BuT yOu ArE tHe OnE mAkInG "YoUr MoM" JoKeS.
I said dirty mind, not dirty mouth
rvetrcytvfnbygmnhumvgbhj
or dirty fingers

It never ends
like ur mom
this conversation has been way too back-and-forth about this stuff for too long so i'll be back later lol
@gentle flint when will you be heading out?
just wondering
bye~
baye
from where are you @whole bear π
tomahawk-player
https://ampache.org/
Ampache - Music Streaming Server
https://www.linuxlinks.com/musicservers/
The purpose of a music server is to deliver tracks when requested by a client. Here's our open source recommendations.
MPD is old
and mopidy is still a simple variation with all integrations
π
YOu can add spotify account and control from terminal.
Yeah, @faint ermine, It's like buying the pokemon card for the file π
You could use NFTs to transfer the rights, but most of the time that isn't the case.
So you're not actually buying anything, except the NFT itself.
If you owned the rights to something, that's backed by the law, which is backed by the power of the state.
Surely all you have to do, as the owner of something, is declare that the owner of the NFT becomes the owner of the thing.
Or maybe not.
I have a tenuous grasp on legal matters π
ohhh
yeah theres this tiktok girl that has a krankheit idk how to say it
and niesen all the time
ohhh
i am deutscher so..
yes
yeah i knowπ
i have bad spellings
you reminded me to the girl
acctualy it happens when i am on kurze hose
sorry i do not know this word in english
Use the free DeepL Translator to translate your texts with the best machine translation available, powered by DeepLβs world-leading neural network technology. Currently supported languages are: Bulgarian, Chinese, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Japanese, Latvian, Lithuanian, Polish, P...
emm theres the google translator right/
?
is it like with voice?
can i say bad words in it?
ok then its good
no no
a lot of times somepeople get mad at me
so i get mad back
because they pp me of
so when i want i can be a chinese an african?
so i can be in every language?
even java?
jk
yk i am staff right?
jk
id wanna talk lol i just tested if my mic is connecteed
because sometimes its connected but the muter doesnt work
@faint ermine yk i wanna use windows 95 in virtualbox but it doesnt work when i donwload an iso file
do you have an iso file for windows 95?
oh ok
need a Australian to speak with
what was that @strange plank ?
look in #voice-chat-text-1
Sorry, you can't do that here!
Yeah
yeah
@tough delta sure not russian?
no its like a russian-chinnese accent
the chinnese one is the voice and the russian is the speaking
i got the best pfp ever
I KNOWED IT
YOURE RUSSIAN
@whole bear I knew youre accent i swar
lilke the d after every word
india ?
hello guysd
bandesid
Really i am also indian and i bet you are not indian @whole bear
hey kur
Yeah speak hindi
mera nam gay nai h
Lol
lel
π π€£
khana hogya kya xD
@whole bear move youre head after every word like this ><
π
jk
i am diabled
i cant move my hand
@whole bear answer this
haha
ahahah
haha
the mainword
so whts ur nationality
omgf
i am in germany @tough delta
@whole bear international
all india tour xD
i am english,german,italian
PIZZAAAA
how to not python
the half of the python server uses jsπ« @whole bear
this tbh XDd
omg he is so confzz
@shy elk go watch a video π
hih on python
AHAHAHAA
\
tame kem cho
/AHAHAHAHAHAHAHA\
he wants youre bitcoin @whole bear
Imagine asking a high person "are you high" and he will reply you honestly yes @tough delta
lol whoz speakingz
Majama
u need to send 50 messages
I tried discord.py but someone suggested discord.js is much better
π
@whole bear you are native english
her accent sounds like half english and half american, so i concluded that she must be scottish
@tough delta you know the micheal guy on youtube that makes robots?
micheal reeves
I bet you are not. Five quick sentences in any other languages @whole bear
thats a twist
Tech Support How Can I Help You? @whole bear
i would not have guessed
JK
@whole bear 5 sentence in hindi
hi
Sup
why do u think that i'd be lying about being indian lmao?
@errant folio lets drink on sunday
'clear' is very relative here, i see
i think he was referring to GUY
Though its not. But i have nothing to do with it you see
o
id think so
Me too
haha lesh go
Okay if you dont mind can i ask what do you know more about india
guys dont be mean tonight
enjoy ur evening
i will see you all on sunday
em yeah
yes i wrote my farewell as a haiku
π
π Its banned in india
lol :0
@whole bear is that possible ?
@whole bear how is it gonna compile
Lol
Ic you live in poland !
Your father is from india right ? @whole bear
nice music @tough delta
guys is it illegal to not do the covid test in amerika?
a little baby did
o/
like 3 yars old
?
sup mina
sup
not
my desire to listen to kpop is lessening day by day
ty
np
I mostly don't pay attention to what I am listening, cuz I am doing other work
bit weird
old as in my first
@whole bear how do u know that i m listening to music?>
China has 50% atheist population
I wonder how it would be like not following any religion π€
@shy elk what you have made?
i tink they are tryna do the fizzbuzz thingy
Whats that?
@shy elk in which ide you are coding ?
what were you saying again @shy elk ?
its a coding challenge. you have to print numbers from 1 to 100 each on a new line, where multiples of 3 replaced by the the word "fizz", multiples of 5 replaced by "buzz" and multiples of both 3 and 5 replaced by "fizzbuzz"
and heres the twist
Sounds easy ?
the entire code should be in one line
the shorter the b8r
@shy elk when you run it will ask for saving file
So how its going to be in one line ?
try it!
it can be
wait, i made one myself
and didnt save in anywhere
lemme drive down my memory lane and figure it out agn
@whole bear yeah please send me if ur done with it
π .
@whole bear we can do so by defining function and importing it..
Wanna see my fizzbuzz?
Yeah
!e ```py
i=0
while i<100:i+=1;print('FizzBuzz'[i%~2&4:12&8+i%~4]or i)
@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | Fizz
004 | 4
005 | Buzz
006 | Fizz
007 | 7
008 | 8
009 | Fizz
010 | Buzz
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/imuzobevug.txt?noredirect
or as a function ```py
x = lambda i: 'FizzBuzz'[i%~2&4:12&8+i%~4]or i
where you'd do x(3)
@cobalt fractal i know basics of python but this is out of league
Hah yea, bitwise operators are fun
const fizzBuzz = () => console.log([...Array(101)].shift().map((n, i) => ((i%3 ? "" : "Fizz") + (i%5 ? "" : "Buzz")) || i).join('\n'));
Can you explain if you dont mind?
Soo, all of the smarts are in the string slice
[i%~2&4:12&8+i%~4]
replacing i with the number
!e ```py
i=3
print(i%~2&4)
print(12&8+i%~4)
@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 4
o/ chris
@cobalt fractal these are called bitwise operators right?
\o/
What does this one do
it takes two numbers and does a bitwise and EG ```
1011
&
0110
0010
See how both bits need to be 1 for the output bit to be 1
40 hours a day π
damn SREs got it tough
make one @whole bear
^
thanks
I'm gonna save this to try and comprehend later π
Hah cool, I submitted it here https://github.com/rsha256/shortest-fizzbuzz
um i asked if i moved into voice chat 0 would you gice me video perms again for a min so i can start streaming
along with a py2 version and a perl6 version
wow
Perl6 was fun ```perl
say "Fizz"x$%%(2+1)~"Buzz"x$%%(4+1)||$_ for 1..100
Can you hold on a second sorry.
ok
Also, the smallest file at 54 bytes π
mbytes?
nope
oh
The readme in that repo has a bunch of implementations of fizzbuzz in various langs
along with the file sizes
looks like your solution is the only one using bitwise ops
!stream 537553907363086343
@whole bear
β @open tulip can now stream.
π
.xkcd butterfly
Comic parameter should either be an integer or 'latest'.
.xkcd 378
@uneven yarrow do you have noise suppression? your keyboard and mouse noise is extremely loud
@rugged root :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
#bot-commands
!e
import __hello__
@rugged root :white_check_mark: Your eval job has completed with return code 0.
Hello world!
data = [];
for i in range(1,99):
if(i%3==0):
data[i]="fizz"
elif(i%4==0):
data[i]="buzz"
elif(i%12==0):
data[i]="fizzbuzz"
else:
data[i] = i
print(data)
i=0
@midnight agate https://github.com/microsoft/terminal
Index out of range
@whole bear Would you mind hopping off stream since there really isn't any staff to monitor it?
Yo
@whole bear Once again
sorry i didnt see this
π§ Lofi/Chill Music π§
βοΈ Listen to "Kedarnath - Jaan Nisaar" Lofi Remake by WORMONO
πΌ Artist Name - WORMONO
πΌ Artist Social Media Links:-
βοΈINSTAGRAM- https://bit.ly/3f7pmap
βοΈSPOTIFY- https://spoti.fi/3e0bVba
βοΈSOUNDCLOUD- https://soundcloud.com/iamwormono
βββ ORIGINAL ARTIST CREDIT βββ
π¨Movie: Kedarnath
π¨Song: Jaan Nisaar
π¨Singers: Arijit...
@whole bear please dont play music in this server there is no music bot and next time please use #bot-commands
ok
i understand
sorry i didnt see this
hey guuys can anyone hlep me with someting
sure on what?
You are right
Looking at other coding you understand how you can code much more efficiently
"In economics, a commodity is an economic good, usually a resource, that has full or substantial fungibility: that is, the market treats instances of the good as equivalent or nearly so with no regard to who produced them."
"In economics, fungibility is the property of a good or a commodity whose individual units are essentially interchangeable, and each of its parts is indistinguishable from another part."
oh
How do you define this example if you can make a work compressing of folders much quick process using python what do you call that
Do you define it is a product
I'm not entirely certain what is is you're asking. Streamlining?
If you take a process and make it more efficient.
Yeah I made the process of compressing folders into a 5 second process
Can I make a product
Lol
Yea
The wind may blow.
For a moment there I thought he was about to say genshin impact
genshin impact sucks
What's a genshin impact?
Hey I have questionπ
That is it possible to send compressed folders based on their starting words in their names and send it over the internet or automate this task of sending these folders one at a time based on their names to their respective place to sent
Much is possible.
I'm not sure of the ideal way to go about it based on your use case. I'm not an expert in such things.
Enough to know that yes, it's absolutely possible.
Ok is there certain topics that I need to work through
Like what topics do I need to go about working with
As Python goes, you may wish to examine the os or pathlib modules. Lists/queues, iteration, depending on how you're sending, either something that deals with tcp/ip connections on that level or e-mail or some sort of web api.
But yeah it is definitely sent over a web api
So maybe the requests or urllib2/3 whatever the hell it is library.
So can make this into feature for a web application??
You're wanting to create a webpage that lets people upload files?
No, I have that. But I want to automate this work
I have already have a script that compresses the mutiple folders
But I am confused whether that what I want to achieve requires machine learning or is does this require much easier library
Machine learning will not be required to achieve your intended task.
You said you're interfacing with an API. Look at the requests module.
Well I got into python because I wanted to do the above thing
Now I in the process of learning python as a whole
As part of the request, you can send the file packaged up as binary data.
You'll need the API specifications.
Oh yeah that makes sense
def repeat(every = 10, forever=True):
does anyone know how to make a chatbot in python
NO
I would visit the #discord-bots channel to begin with. π
Perhaps, depending on what you're doing, even the #data-science-and-ml channel.
hello animal @uncut meteor
wat
animal?

Hello animal @uncut meteor π
It's a thing you put on your head and pretend to be the Pope
Get a multi-camera setup.
Like a Twitch streamer π
Nice work π
π
's' if len(snowflakes) > 1 else ''
I would do something like this: pluralize('snowflake', 'snowflakes', len(snowflakes))
Write a helper util π
Oh, I didn't know that was a thing.
Literally just: ```py
def pluralize(singular: str, plural: str, quantity: int) -> str:
if quantity > 1:
return plural
elif quantity == 1:
return singular
else:
raise ValueError()
!or
When checking if something is equal to one thing or another, you might think that this is possible:
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")

Metasyntactic variables
A specific word or set of words identified as a placeholder used in programming. They are used to name entities such as variables, functions, etc, whose exact identity is unimportant and serve only to demonstrate a concept, which is useful for teaching programming.
Common examples include foobar, foo, bar, baz, and qux.
Python has its own metasyntactic variables, namely spam, eggs, and bacon. This is a reference to a Monty Python sketch (the eponym of the language).
More information:
β’ History of foobar
β’ Monty Python sketch
It was the best I could do 
I love it
I do love your Halloween avatar.
π
!u gralt
Could not convert "user" into Member or FetchedUser.
The provided argument can't be turned into integer: gralt
!user [user]
Can also use: member_info, member, u, user_info
Returns info about a user.
you are reviewing code, nice
review mine on sir lance
wtf python is pending your review
π
i would have waited for mark to implement the feature
i don't really agree with breaking into the user code to add timeit code
Cya Griff π
Hey @potent tapir, if you're wondering why you can't talk, see #voice-verification
@cobalt fractal those changes are done when i ran black
i could remove those changes if needed
Yep, see #voice-verification
You have to be verified to use your mic.
You need a certain amount of activity first though.
:incoming_envelope: :ok_hand: applied mute to @oblique lynx until 2021-04-17 11:12 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
Guys, don't spam to meet the requirement.
!pban 789812149819146271 troll
:incoming_envelope: :ok_hand: applied purge ban to @potent tapir permanently.
!pban 832928445645586453 troll
:ok_hand: applied purge ban to @oblique lynx permanently.
@cobalt fractal the number is just a random number
it is being used at other places too
so i used it here
ves helped with the tests
and kwzrd also
oh, akarys reviewed lemme see
Yup
Ah π
wait, when did you loose your green color?
@balmy nymph aren't tests ignored now?
I would also like to see tests for this new feature
then, any specific reason you asked them?
ah sad
another thing @balmy nymph do i add :10 to get first 10 links, or just ignore it
You can just get the first 10 links and don't care about the rest
k will do
ooh @stuck furnace new pfp
Thanks, it took ages to make.
lol
damn
a real piece of art
looks like griff's pfp
Any likeness is coincidental!
Better?
.spookify
Er?
oh lol
Ah right.
PR denied.
Yep
Erm, it's an email I created for github, so it's fine.
Maybe I shouldn't say that π
Thanks, do I get the contributor role now?
I have all mails diverge into 1 email account
238 from sir lance LOL
Back in a bit...
me2, need to go to supermarket π«
I gotta go, back later
um?? not worth
Heyo π
What's up?
I just spent 30 mins looking for my phone, only to find it had fallen out of my pocket into a fold in the blanket I have over my office-chair 
I ended up calling my phone to find it the other day. It ended up it was underneath my keyboard.
Ah π
Calling my phone to find it is not something I resort to if I can help it.
I was just so perplexed because I knew I'd had it just previously.
and I was lifting things up and looking under them and around
Exactly my feeling. Paranoia started to set in...
Just not the keyboard
"Who would do this to me?"
When I have something one second, and I can't find it the next,
"It's evaporated on me."
Pick-pocketed... in my own house!
Yeah, it's so frustrating when you know it must be somewhere.
Erm, I stole it from someone else.
I thought it looked cool π
Hey, what up? π
Sound like the fast-food guy from the simpsons π
Erm, maybe later.
I'll have you know I put work into that.
Nah, Opal, he means this...
Your input was invalid: Member "https://cdn.discordapp.com/attachments/412357430186344448/832967106319613962/Screenshot_2021-04-17_at_12.18.57.png" not found.
Usage:.savatar [user]
rip π¦
Any resemblance to anyone else's PFP is a coincidence.
Yep π
Honestly better than his tbh
.spookify @somber heath
Yeah, there's a pull-request pending I think π
.spookify
.spookify
Dragon fractal!
whats that
It's the PFP I've been using for a while.
oh, how did I not notice π€
Erm, I can send you the code to generate it... one sec...
fancy
from turtle import Turtle
from colorsys import hls_to_rgb
from itertools import cycle
shelly = Turtle()
shelly.screen.colormode(1.0)
shelly.screen.bgcolor('black')
shelly.screen.tracer(0, 0)
rainbow = [
hls_to_rgb(hue/1000, 0.5, 1.0)
for hue in range(1000)
]
F, R, L = 'forward(5)', 'right(90)', 'left(90)'
path = [F]
for i in range(13):
path = path + [R] + [
{F: F, R: L, L: R}[command]
for command in reversed(path)
]
shelly.speed(0)
for command, color in zip(path, cycle(rainbow)):
shelly.color(color)
eval(f"shelly.{command}")
shelly.screen.update()
input()
Yep π I'm not sure how to deal with it going off the screen.
You can increase 13 to get a larger pattern.
oh okay
Yeah, you can make one by repeatedly folding a strip of paper in half.
Then making all the bends 90 degrees.
It's https://github.com/python-discord/sir-lancebot/pull/597 if anyone's interested
Unable to convert '@sick dew' to valid command, tag, or Cog.
!source
Hmm, can you give an example?
Like, getattr(self.bot, method_name)() or something?
!eval
class A:
def unload():
print("hello unload")
def load():
print("hello load")
a = A()
getattr(a, unload)()
getattr(a, load)()```
@frigid panther :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 8, in <module>
003 | NameError: name 'unload' is not defined
Need quotes around the attribute names.
ah yea
!eval
class A:
def unload():
print("hello unload")
def load():
print("hello load")
a = A()
getattr(a, unload)()
getattr(a, load)()```
@frigid panther :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 8, in <module>
003 | NameError: name 'unload' is not defined
ah F
forgot quotes again
!eval
class A:
def unload():
print("hello unload")
def load():
print("hello load")
a = A()
getattr(a, "unload")()
getattr(a, "load")()```
@frigid panther :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 8, in <module>
003 | TypeError: unload() takes 0 positional arguments but 1 was given
forgot self
!eval
class A:
def unload(self):
print("hello unload")
def load(self):
print("hello load")
a = A()
getattr(a, "unload")()
getattr(a, "load")()```
@frigid panther :white_check_mark: Your eval job has completed with return code 0.
001 | hello unload
002 | hello load
Is the code on GitHub, Jake?
@cog.command()
async def reload(self, ctx, extension: str, *, package=None) -> None:
try:
if package is None:
await self.bot.reload_extension(f"cogs.{extension}")
elif package is not None:
await self.bot.reload_extension(f"> π’ {extension.capitalize()} Reloaded : Package: {package}")
except self.exceptions as exception:
await ctx.send(f"> {extension} {exception} Package: {package}")
It is yes, the repo is on griff's account
@cog.command()
async def load_unload(self, ctx, extension: str, *, func: Callable, wording: str, package=None) -> None:
try:
if package is None:
await func(f"cogs.{extension}")
elif package is not None:
await self.bot.reload_extension(f"> :green_circle: {extension.capitalize()} {wording} : Package: {package}")
except self.exceptions as exception:
await ctx.send(f"> {extension} {exception} Package: {package}")
from typing import Callable
Yeah I would write a helper called something like xload.
async def reload(...):
await self.load_unload(..., func=self.bot.reload_extension...)```
Was it a game of dodgeball?
hi boys i need a idea about my project
hello can anyone help me to understand files in Python and how it works ?
you could look at spam detection algorithms, most of them are related to ML i believe
umm yes that is what I am looking for?
hello o/, are you talking about writing/reading from files?
@mental holly π
nibble
They be sleeping now
Oof, I feel really unwell all of a sudden. Back in a bit π
feel better!
have you looked a few tutorials or articles already?
yes, but when I write in new txt, i don't know how to organize it
wdym by organize
did anyone saw the prince philip
i mean like putting it into columns
columns? are you talking about regular text files or csv?
regular
can you show me what you are trying to do
Yellow
I think it was just too much caffeine + overheating. It's bloody hot in this room when it's sunny π
hi
however I do not hear anyone of you
Hey, I'm new to the server and would like to talk - apparently I don't have the rights though.
Hey π Have you read what it says in #voice-verification ?
Yes, the issue is just that I don't have a particular question to ask and I usually don't chat a lot - might take me half a year to write 50 messages in the discord.
Ah sorry. For the sake of fairness, we tend not to make any exceptions to the voice-gate. Although I think you'd be surprised how quickly you can reach the requisite 50 messages. You can always listen in on the voice-channel and post your responses here. For what it's worth, I don't really speak on mic.
hey are bot commands or code snippets in #bot-commands , considered in 50 messages?
I see - thats fair
Nope. Messages in #bot-commands don't count I'm afraid.
It's annoying I know, but it's really cut down on the frequency of voice channel trolling since it was introduced.
I came to hang out in voice
almost forgot its weekend, no one's coming π
It's because Hemlock isn't here at the weekend π
He's like the pied-piper of the voice channels...
I'm good and happily writing my unittests
@icy axle can i have video permissions
@stuck furnace could i have video permissions please?
It would be nice not to have to restart Discord every time I join a voice-channel 
Hey everyone π
If I give Batch temporary streaming permissions, will you all keep an eye on him? π
Hmm, what did you do last time that annoyed Hemlock?
oh he gave me perms yesterday
Alright. You can have perms for one hour π One sec...
You have perms now @whole bear
ok
brb
cute cat








