#voice-chat-text-0

1 messages Β· Page 811 of 1

honest pier
#

lul

covert jackal
#

Why I can’t open my microphone?

rugged root
#
bin: 1  1  1  1
int: 8  4  2  1
#

Binary is read from right to left

honest pier
#

consider the number 1532
the value of this number is
2 * 1 + 3 * 10 + 5 * 100 + 1 * 1000

#

@whole bear

rugged root
#

Order of operations

#

!stream @whole bear

wise cargoBOT
#

@whole bear

βœ… @magic hearth can now stream.

icy axle
#

Sweet new command

honest pier
#

||they're all integers lemon_grimace ||

icy axle
#

Always has been

rugged root
#
Pow:   2**3   2**2   2**1  2**0 = 15
Bin:    1      1      1     1   = 1111
Int:    8      4      2     1   = 15
somber heath
#

Mr. Hemlock, stock and barrel.

icy axle
#

You can't say "daddy", unless you're a young girl. And only to your actual daddy

  • Mr. Hemlock, 2021
vivid palm
rugged root
#

I hate you all

stuck furnace
#

Even worse πŸ˜„

icy axle
#

I'm sorry daddy, I've been naughty

  • Mr. Hemlock, 2021
rugged root
#

God damn it

#

!warn @rugged root You should know better than to tell terrible terrible terrible jokes in VC

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @rugged root.

whole bear
#

"Forgive me father for I have sinned."
"I'm sorry daddy, I've been naughty"

somber heath
#

Booty call / butt dial

balmy nymph
rugged root
#

I mean

#

Yes

#

But like

#

Well yes

icy axle
#

Oh no

#

Hemlock

azure oasis
#

just entered the VC and the first thing i heard is hemlock talking about booty call. what an interesting day.

rugged root
#

You're welcome

icy axle
#

You're getting too deep into this

azure oasis
#

lol

balmy nymph
vivid palm
#

^

icy axle
#

Hahah, hemlock beat you to it

balmy nymph
#

Damn it

rugged root
#

I should probably stop reacting to that's what she said just to see who picks up the slack

whole bear
#

can u guys explain camel casing

honest pier
#

the capitals look like a camel

severe pulsar
#

i gotta go watch the pep8 song now

frigid panther
#

we can start with discord @rugged root

#

discord live stream teaching

icy axle
#

PascalCase

frigid panther
#

at specific times

#

and recorded

icy axle
#

camelCase

stuck furnace
#

My favourite term in programming is 'Egyptian brackets'

tiny socket
#

donTusEthiScasE

whole bear
#

expain with code??

icy axle
#

SCREAMING_SNAKE_CASE

balmy nymph
#

dontUseThisOneEither hehehe

rugged root
#

SCREAMINGcAMELcASE

balmy nymph
#

Poor camel

rugged root
#

UPSIDEDOWNcAMELcASE

icy axle
#

iCase

whole bear
#

The one which changes the text after - to upper case and removes the -

tiny socket
#

bookcase

icy axle
#

SterveJERBZ

#

My name is Sterve Jerbz, and I'm the CEO of iCase

severe pulsar
whole bear
#

LOL

icy axle
#

this.case.is.weird

tiny socket
stuck furnace
#

In the language Nim, names are invariant with respect to case and underscores (except for the first letter).

honest pier
#

instead of dot just use -> that way you don't get parsing errors lul

whole bear
#

i just asked my teacher if we will learn programming and she said YES!!πŸ˜‹

icy axle
#

DONT_CHANGE__ME

#

dont_change_me

whole bear
#

sooo more time to learn python😏

stuck furnace
#

Yep

#

It's so that you can keep it consistent within one project.

#

Even if different libraries use different styles.

rugged root
#

convert_string
convertString

somber heath
#

MyClass

icy axle
#
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)
honest pier
#

!e

try:
  =bnueda
except SyntaxError:
  print("caught!")
wise cargoBOT
#

@honest pier :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     =bnueda
003 |     ^
004 | SyntaxError: invalid syntax
tiny socket
#

!e raise SyntaxError

wise cargoBOT
#

@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
icy axle
#

!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()

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

hello there
undone idol
#

πŸ‘€

rugged root
#

@whole bear I don't typically accept friend requests unless it's someone I've gotten to know

tiny socket
#
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!")
whole bear
#

CAMEL CASE PLS

strange plank
#

is this a DIY bot loop?

somber heath
#

!e py try: eval('25rhj') except SyntaxError: print('Ta-da!')

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

Ta-da!
rugged root
#

Huh

#

That's really interesting

whole bear
strange plank
#

!e

print(eval("2+2"))
cobalt fractal
#

eval is used to evaluate a single Python expression, exec is used to execute dynamically generated Python code only for its side effects.

strange plank
#

discord doesnt recognise exec as a keyword πŸ€”

#

strange

#

wait no it does

#

im being stupid again

stuck furnace
honest pier
#

πŸ€”

#

u rite

cobalt fractal
#

yea, it should

strange plank
#

@stuck furnace your a mod... twice??

tiny socket
#

!e

import ctypes

def deref(addr, typ):
    return ctypes.cast(addr, ctypes.POINTER(typ))

deref(id(69), ctypes.c_int)[6] = 42

print(69)
wise cargoBOT
#

@tiny socket :white_check_mark: Your eval job has completed with return code 0.

42
cobalt fractal
#

!e ```py
eval('''
a = 47
print(a)
''')

wise cargoBOT
#

@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
rugged root
#

If you use !e then the difference doesn't matter!

#

Wheeeeeeee

cobalt fractal
#

!e ```py
exec('''
a = 47
print(a)
''')

wise cargoBOT
#

@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.

47
stuck furnace
cobalt fractal
strange plank
#

!e

print(eval("a = 47; print(a)"))
cobalt fractal
#

but still appear as a mod

wise cargoBOT
#

@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
strange plank
#

ahh

cobalt fractal
#

that would work with exec

#

that's the main difference

tiny socket
#

!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)
wise cargoBOT
#

@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)
tiny socket
#

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)
wise cargoBOT
#

@tiny socket :white_check_mark: Your eval job has completed with return code 0.

1073741827
cobalt fractal
#

!e print(id(1234567890))

wise cargoBOT
#

@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.

140147512209168
stuck furnace
#

@tiny socket was that sound you pressing the 1234567890 keys? πŸ˜„

#

I heard 'brrrt' twice πŸ˜„

rugged root
icy axle
#

!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)

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

-1
strange plank
icy axle
#

!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)

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

-4
icy axle
#

!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)

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

-4294967295
tiny socket
#

!e

import ctypes

class h:
  _fields_ = [('int', ctypes.c_int)]

x = ctypes.cast(id(1), ctypes.POINTER(Object()))[0]
wise cargoBOT
#

@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
strange plank
#

!e

import ctypes

def deref(addr, typ):
    return ctypes.cast(addr, ctypes.POINTER(typ))

deref(id(-4), ctypes.c_int)[6] = 2

print(-4)
wise cargoBOT
#

@strange plank :white_check_mark: Your eval job has completed with return code 0.

-2
strange plank
#

!e

import ctypes

def deref(addr, typ):
    return ctypes.cast(addr, ctypes.POINTER(typ))

deref(id(0), ctypes.c_int)[6] = 2

print(0)
wise cargoBOT
#

@strange plank :white_check_mark: Your eval job has completed with return code 0.

0
icy axle
#

!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)

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

0
whole bear
#
def f_unction(*args, arg):
  print(args)
  print(arg)
f_unction("1", "2", "3", "4", "5", "6", "7")
``` must `*args` always be at end?
strange plank
#

!e

def f_unction(*args, arg):
  print(args)
  print(arg)
f_unction("1", "2", "3", "4", "5", "6", "7")
wise cargoBOT
#

@strange plank :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | ('2', '3', '4', '5', '6', '7')
stuck furnace
#

You can have a finite number of arguments before or after it.

#

And it gets the rest.

icy axle
#

!e ```py
def test(*args, arg):
print(arg)

test("hello")

wise cargoBOT
#

@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'
somber heath
#

!e py def func(a, *b): print(a,b) func(1) func(1,2) func(1,2,3)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | 1 ()
002 | 1 (2,)
003 | 1 (2, 3)
stuck furnace
#

Oh right, yes. I thought that too Hemlock πŸ˜„

icy axle
#

!e ```py
*_, a = 1, 2, 3, 4
print(a)

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

4
stuck furnace
#

!eval ```py
first, *rest, last = 1, 2, 3, 4
print(first)
print(rest)
print(last)

wise cargoBOT
#

@stuck furnace :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | [2, 3]
003 | 4
strange plank
#

that works the other way round as well? (a, *_)

honest pier
#

yeah

stuck furnace
honest pier
#

oh wack

#

πŸ€”

stuck furnace
#

I never remember exactly what / and * do in arguments.

icy axle
#

!e ```py
def func(o, /, a, b):
print(a, b)

func(b=3, a=2)

wise cargoBOT
#

@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'
stuck furnace
#
def f(pos1, pos2, /, pos_or_kwd, *, kwd1, kwd2):
      -----------    ----------     ----------
        |             |                  |
        |        Positional or keyword   |
        |                                - Keyword only
         -- Positional only
cobalt fractal
vocal coyote
#

i need to talk to someone who knows nginx

#

if u know it pls join code help

strange plank
cobalt fractal
#
@commands.command(name="source", aliases=("src",))
async def source_command(self, ctx: commands.Context, *, source_item: SourceConverter = None) -> None:
strange plank
#

why is python general like this

paper tendon
#

its old discord

#

And when I disable auto gain it stil do auto gain

icy axle
paper tendon
#

so damn and canary failed today again for some reasons

tiny socket
rugged root
#

That's weird

tiny socket
#

!e raise import("tabnanny").NannyNag()

wise cargoBOT
#

@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'
small field
#

does anyone know C#?

rugged root
#

Smatterings here and there

#

What do you need?

icy axle
#

!e raise import("tabnanny").NannyNag(2, "hey", 3)

vivid compass
faint ermine
#

!e raise import("tabnanny").NannyNag(5, "hehe you did a dum", " print(b)")

wise cargoBOT
#

@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)
paper tendon
#

archlinux

icy axle
#

Β¦β€–βˆ£|

tiny socket
#

dis!.dis()

paper tendon
icy axle
#
random!
print(random.randrange(2))
tiny socket
#

!apt install...

paper tendon
#

6 m 30-40 cm wide snake

faint ermine
#
def bla():
    ...

%timeit bla(1, 3)
rugged root
#

Wait a second

#

"GurkLang"?

tiny socket
#
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
icy axle
tiny socket
#

@timed("name")

vivid palm
#

my cat is upgraded

α˜‘α˜α—’

rugged root
#

I like the extra curl

icy axle
#

This adds two numbers: 3 2 +

strange plank
icy axle
#
{ :hello var
  hello print
} :test jar

"you" test
cobalt fractal
#

Guess the output```csharp
using System;
class Test {
enum Foo { Bar, Baz };

static void Main() {
    Foo f = 0.0;
    Console.WriteLine(f);
}

}

icy axle
#
{ print } :test jar
stuck furnace
#

Laundo, genuine question, what do you mean about the lisp community?

tiny socket
#

'community'

stuck furnace
#

Ah, right.

#

Maybe it's all in the past, but a lot of useful software was written with Lisp.

frigid panther
#

what lang is that

rugged root
#

GurkLang

frigid panther
#

ooh πŸ€”

icy axle
#

hehe

frigid panther
#

damn, thats some progress, how did I not know

icy axle
#

We haven't done much with it recently. Lak, fix and I have been quite busy studying and stuff

frigid panther
#

ah okay

icy axle
#

But yeah, it has gotten to a semi-working state

paper tendon
#

kotlin

frigid panther
#

cries in babel setup

paper tendon
rugged root
paper tendon
#

Vite is TS

frigid panther
paper tendon
#

its TS Vue

rugged root
#

Babel fish

frigid panther
#

no

#

babel js

rugged root
#

Oh right right

#

Is that really needed anymore?

frigid panther
#

when you mentioned modern js

#

ye

rugged root
#

Most browsers support the more modern stuff

frigid panther
#

node

rugged root
#

Just not like the bleeding edge oh right

#

Node

#

Of course

frigid panther
#

xD

jaunty pendant
#

sup

faint ermine
rugged root
#

Palantir?

#

Something like that?

rugged root
paper tendon
#

lol Jordan left that project and its now run by kids. I mean the whole react thingy.

#

She work in the Netlify but has worked in FB on react.

jaunty pendant
#

@paper tendon that mic

#

jesus

paper tendon
#

Flutter is great

whole bear
#

'fucking criest

paper tendon
#

πŸ™‚

rugged root
#

Also yeah, mic is pooping itself again

jaunty pendant
#

holds back a "your mom" joke

gentle flint
#

@jaunty pendant hai

jaunty pendant
gentle flint
#

I'll be off soon

jaunty pendant
#

aw

gentle flint
#

just popped in for 5 minutes before I go

jaunty pendant
#

e

rugged root
#

What's going on in oof world?

gentle flint
rugged root
#

Oooo

#

Sounds fun

gentle flint
#

also cv writing

#

cvs are an absolute pain

#

which is why I stopped after 2 sentences

#

gotta finish it on sunday

jaunty pendant
#

i belief that this week i shall be procrastinating

#

like the rest of the weeks

gentle flint
#

how relatable

jaunty pendant
#

i think i have gone deaf

gentle flint
#

you can individually lower user volume

jaunty pendant
#

i had Marko on 160%

gentle flint
#

rip

#

hej vester

rugged root
#

Much Vester, such Gurk

icy axle
#

hallo oof

jaunty pendant
#

proof that aliens exist

gentle flint
#

or kidnappers

jaunty pendant
#

or that

whole bear
#

or that

#

yea

icy axle
#

slowly drags him out of the room

rugged root
#

I think it's his auto gain

icy axle
#

"just... gotta.. finish... this.. senten-"

gentle flint
#

give us back our marko!

jaunty pendant
#

GOD DAMN IT

rugged root
#

There's better ways to phrase that

jaunty pendant
#

PH

rugged root
#

Without the rape part

jaunty pendant
#

uh

icy axle
jaunty pendant
#

bruh

rugged root
#

I know it's a common turn of phrase, but I'm just not keen on it

paper tendon
#

auto gain is turned off but again

rugged root
#

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

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

jaunty pendant
#

he instantly left

#

oof

rugged root
#

What, from the server?

jaunty pendant
#

from the VC

rugged root
#

Yeah he's been bouncing in and out

#

And usually people do that if they don't know why they can't talk

gentle flint
#

in, out, in, out, bouncing all about

rugged root
#

Hokey Pokey

gentle flint
#

that's what it's all about

high ingot
jaunty pendant
#

oh god

high ingot
#

lol

gentle flint
high ingot
#

nou

jaunty pendant
gentle flint
#

I said dirty mind, not dirty mouth

jaunty pendant
#

rvetrcytvfnbygmnhumvgbhj

gentle flint
#

or dirty fingers

jaunty pendant
#

...

#

no

high ingot
rugged root
#

It never ends

jaunty pendant
#

like ur mom

tiny socket
#

this conversation has been way too back-and-forth about this stuff for too long so i'll be back later lol

rugged root
#

@tiny socket Join me down here

#

It's peaceful for now

jaunty pendant
#

@gentle flint when will you be heading out?

gentle flint
#

around now

#

why?

whole bear
jaunty pendant
#

just wondering

gentle flint
#

k

#

Well, that's your answer

#

I'm going

#

bye!

jaunty pendant
#

igh

#

bai

high ingot
#

bye~

whole bear
#

baye

paper tendon
#

from where are you @whole bear πŸ™‚

paper tendon
#

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.

The purpose of a music server is to deliver tracks when requested by a client. Here's our open source recommendations.

stuck furnace
#

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 πŸ˜„

whole bear
#

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

faint ermine
#

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...

whole bear
#

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

stoic ore
#

need a Australian to speak with

whole bear
#

what was that @strange plank ?

whole bear
#

@strange plank sorry

#

!remind 7h stream games

wise cargoBOT
#
Not likely.

Sorry, you can't do that here!

sick onyx
#

Yeah

whole bear
#

@sick onyx

#

aight

sick onyx
#

We should be here

#

πŸ˜…

whole bear
#

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

sick onyx
#

Really i am also indian and i bet you are not indian @whole bear

whole bear
#

hey budd

#

yaa im xD

whole bear
sick onyx
#

Yeah speak hindi

whole bear
#

mera nam gay nai h

sick onyx
#

Lol

whole bear
#

lel

sick onyx
#

πŸ˜… 🀣

whole bear
#

khana hogya kya xD

#

@whole bear move youre head after every word like this ><

#

πŸ˜…

#

jk

#

i am diabled

#

i cant move my hand

sick onyx
whole bear
#

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

sick onyx
#

πŸ˜…

#

@tough delta ig hes having problem in English

whole bear
#

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

sick onyx
#

Imagine asking a high person "are you high" and he will reply you honestly yes @tough delta

whole bear
#

lol whoz speakingz

sick onyx
whole bear
#

how to get vvrole emmm

#

is he normal

sick onyx
#

@whole bear tik tok is just like shit in india

#

Or can say another name of shit

#

πŸ˜…

whole bear
#

poop

#

ima go now se u soon guys ❀️

sick onyx
#

@whole bear does discord bot module also works in js?

#

So they are different right?

tough delta
sick onyx
#

I tried discord.py but someone suggested discord.js is much better

south cradle
#

oh, this channel exists

#

pog

sick onyx
#

πŸ˜…

south cradle
#

so condescending

sick onyx
#

@whole bear you are native english

south cradle
#

her accent sounds like half english and half american, so i concluded that she must be scottish

whole bear
#

@tough delta you know the micheal guy on youtube that makes robots?

south cradle
#

anyways

whole bear
#

micheal reeves

sick onyx
#

I bet you are not. Five quick sentences in any other languages @whole bear

south cradle
#

thats a twist

whole bear
#

Tech Support How Can I Help You? @whole bear

south cradle
#

i would not have guessed

whole bear
#

JK

sick onyx
#

@whole bear 5 sentence in hindi

heady gazelle
#

hi

sick onyx
whole bear
south cradle
#

@errant folio lets drink on sunday

sick onyx
#

Im seriously wondering how can you speak so clear

#

πŸ˜… Btw nvm me

south cradle
#

'clear' is very relative here, i see

whole bear
#

clear? lol

#

do indians dont speak clear?

south cradle
#

i think he was referring to GUY

sick onyx
#

Though its not. But i have nothing to do with it you see

whole bear
#

o

whole bear
sick onyx
whole bear
#

haha lesh go

sick onyx
#

Okay if you dont mind can i ask what do you know more about india

south cradle
#

guys dont be mean tonight
enjoy ur evening
i will see you all on sunday

south cradle
#

yes i wrote my farewell as a haiku

whole bear
#

i acctualy dont

#

i am not listening in school lol

sick onyx
whole bear
#

bruh being a stripper makes you rich

#

just saw a tiktok video

sick onyx
#

πŸ˜… Its banned in india

whole bear
sick onyx
#

@whole bear is that possible ?

whole bear
#

bruh i wanna eat an oreo donut 😦

#

this

sick onyx
#

@whole bear how is it gonna compile

#

Lol

#

Ic you live in poland !

#

Your father is from india right ? @whole bear

whole bear
#

@whole bear run it in vm

#

then u see

sick onyx
#

@whole bear actually i do have verified role

#

You got it miss

whole bear
#

nice music @tough delta

#

guys is it illegal to not do the covid test in amerika?

#

a little baby did

frigid panther
#

o/

whole bear
#

like 3 yars old

vivid palm
#

?

frigid panther
#

sup mina

vivid palm
#

sup

whole bear
#

not

vivid palm
#

my desire to listen to kpop is lessening day by day

frigid panther
#

lol

#

I am just going back to my old kpop songs

vivid palm
#

what's 'old' to you

#

like 2018?

tough delta
whole bear
#

np

frigid panther
#

I mostly don't pay attention to what I am listening, cuz I am doing other work

tough delta
#

bit weird

frigid panther
#

old as in my first

tough delta
#

@whole bear how do u know that i m listening to music?>

sick onyx
#

China has 50% atheist population

#

I wonder how it would be like not following any religion πŸ€”

#

@shy elk what you have made?

whole bear
#

i tink they are tryna do the fizzbuzz thingy

sick onyx
#

@shy elk in which ide you are coding ?

frigid panther
#

what were you saying again @shy elk ?

whole bear
#

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

whole bear
#

the entire code should be in one line

sick onyx
#

πŸ˜…

whole bear
#

the shorter the b8r

sick onyx
#

@shy elk when you run it will ask for saving file

sick onyx
whole bear
#

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

sick onyx
#

@whole bear yeah please send me if ur done with it

whole bear
#

πŸ‘ .

sick onyx
#

@whole bear we can do so by defining function and importing it..

cobalt fractal
#

Wanna see my fizzbuzz?

sick onyx
#

Yeah

cobalt fractal
#

!e ```py
i=0
while i<100:i+=1;print('FizzBuzz'[i%~2&4:12&8+i%~4]or i)

wise cargoBOT
#

@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

cobalt fractal
#

or as a function ```py
x = lambda i: 'FizzBuzz'[i%~2&4:12&8+i%~4]or i

#

where you'd do x(3)

sick onyx
#

@cobalt fractal i know basics of python but this is out of league

cobalt fractal
#

Hah yea, bitwise operators are fun

whole bear
#
const fizzBuzz = () => console.log([...Array(101)].shift().map((n, i) => ((i%3 ? "" : "Fizz") + (i%5 ? "" : "Buzz")) || i).join('\n'));
sick onyx
#

Can you explain if you dont mind?

cobalt fractal
#

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)

wise cargoBOT
#

@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.

001 | 0
002 | 4
cobalt fractal
#

so that's [0:4]

#

which gets fizz

frigid panther
#

o/ chris

sick onyx
#

@cobalt fractal these are called bitwise operators right?

cobalt fractal
#

Yea πŸ˜„

#

~ is compliment

#

& is bitwise and

cobalt fractal
sick onyx
cobalt fractal
#

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

frigid panther
#

make one @whole bear

vivid palm
#

^

stuck furnace
#

Sorry @whole bear I wasn't really listening

#

What did you say?

frigid panther
cobalt fractal
whole bear
cobalt fractal
#

along with a py2 version and a perl6 version

frigid panther
#

wow

cobalt fractal
#

Perl6 was fun ```perl
say "Fizz"x$%%(2+1)~"Buzz"x$%%(4+1)||$_ for 1..100

stuck furnace
whole bear
#

ok

cobalt fractal
#

Also, the smallest file at 54 bytes πŸŽ‰

whole bear
#

mbytes?

cobalt fractal
#

nope

whole bear
#

oh

cobalt fractal
#

The readme in that repo has a bunch of implementations of fizzbuzz in various langs

#

along with the file sizes

frigid panther
#

looks like your solution is the only one using bitwise ops

whole bear
#

@rugged root i have been a good boi

#

may i have perms again for streaming?

rugged root
#

!stream 537553907363086343

wise cargoBOT
#

@whole bear

βœ… @open tulip can now stream.

honest pier
#

πŸ‘€

stuck furnace
#

.xkcd butterfly

viscid lagoonBOT
#
XKCD comic 'butterfly'

Comic parameter should either be an integer or 'latest'.

stuck furnace
#

.xkcd 378

viscid lagoonBOT
#

Real programmers set the universal constants at the start such that the universe evolves to contain the disk with the data they want.

vivid palm
#

@uneven yarrow do you have noise suppression? your keyboard and mouse noise is extremely loud

rugged root
#

import antigravity

#

!e from __future__ import braces

wise cargoBOT
#

@rugged root :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 | SyntaxError: not a chance
shy elk
#

#bot-commands

rugged root
#

!e

import __hello__
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

Hello world!
shy elk
#
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

paper tendon
rugged root
rugged root
#

@whole bear Would you mind hopping off stream since there really isn't any staff to monitor it?

stuck furnace
#

Yo

rugged root
#

@whole bear Once again

whole bear
#

🎧 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...

β–Ά Play video
#

@whole bear please dont play music in this server there is no music bot and next time please use #bot-commands

#

ok

#

i understand

whole bear
whole bear
#

@whole bear EAT THAT APPLE

#

huh?

rain sail
#

hey guuys can anyone hlep me with someting

whole bear
lime ermine
#

You are right

#

Looking at other coding you understand how you can code much more efficiently

somber heath
#

"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."

whole bear
#

oh

lime ermine
#

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

somber heath
#

I'm not entirely certain what is is you're asking. Streamlining?

#

If you take a process and make it more efficient.

lime ermine
#

Yeah I made the process of compressing folders into a 5 second process

#

Can I make a product

#

Lol

#

Yea

somber heath
#

The wind may blow.

lime ermine
#

For a moment there I thought he was about to say genshin impact

spice marten
#

genshin impact sucks

somber heath
#

What's a genshin impact?

lime ermine
#

Hey I have questionπŸ™‹

somber heath
#

I dig your display picture, Kami.

#

But sure.

#

What's up?

lime ermine
#

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

somber heath
#

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.

lime ermine
#

Ok is there certain topics that I need to work through

#

Like what topics do I need to go about working with

whole bear
#

does len(cliet.users) work?

somber heath
#

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.

lime ermine
#

Like java script

#

Laundmo did an interesting point there

#

Sorry

lime ermine
somber heath
#

So maybe the requests or urllib2/3 whatever the hell it is library.

lime ermine
#

So can make this into feature for a web application??

fleet ferry
#

yo

#

was good g

somber heath
#

You're wanting to create a webpage that lets people upload files?

lime ermine
#

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

somber heath
#

Machine learning will not be required to achieve your intended task.

#

You said you're interfacing with an API. Look at the requests module.

lime ermine
#

Well I got into python because I wanted to do the above thing

#

Now I in the process of learning python as a whole

somber heath
#

As part of the request, you can send the file packaged up as binary data.

#

You'll need the API specifications.

lime ermine
#

Oh yeah that makes sense

paper tendon
#

def repeat(every = 10, forever=True):

faint ermine
paper tendon
lime ermine
#

What are you trying to achieve there

#

Jake

#

Laundmo

#

How old are you

strong arch
short gate
#

Hello.

#

Hey OwO

dim salmon
#

does anyone know how to make a chatbot in python

last ivy
#

NO

somber heath
runic forum
#

hello animal @uncut meteor

uncut meteor
#

wat

severe pulsar
uncut meteor
severe pulsar
#

interesting

#

lemme check this subreddit out

stuck furnace
#

Hello animal @uncut meteor πŸ˜„

uncut meteor
#

why do you hurt me in these ways

stuck furnace
#

Morning!

#

Fancy πŸ˜„

#

Have you got a tea-cosy?

uncut meteor
#

na

#

h

stuck furnace
#

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 πŸ˜„

severe pulsar
#

πŸ˜„

cobalt fractal
uncut meteor
#
's' if len(snowflakes) > 1 else ''
stuck furnace
#

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()

cobalt fractal
#

!or

wise cargoBOT
#

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.")
uncut meteor
severe pulsar
#

ooh

#

thats awesome

cobalt fractal
#

!youtube

#

!foo

wise cargoBOT
#

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

cobalt fractal
#

!discord

#

!any

stuck furnace
#

It was the best I could do lemon_pensive

uncut meteor
#

I love it

stuck furnace
#

I do love your Halloween avatar.

cerulean moth
#

so many griffsss

#

looks like chris is explaining some code

uncut meteor
severe pulsar
#

πŸ‘€

cobalt fractal
#

!u gralt

wise cargoBOT
#
Bad argument

Could not convert "user" into Member or FetchedUser.
The provided argument can't be turned into integer: gralt

#
Command Help

!user [user]
Can also use: member_info, member, u, user_info

Returns info about a user.

cerulean moth
#

you are reviewing code, nice

#

review mine on sir lance

#

wtf python is pending your review

#

πŸ™ƒ

cobalt fractal
cerulean moth
#

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

stuck furnace
#

Cya Griff πŸ‘‹

cerulean moth
#

@cobalt fractal those changes are done when i ran black

#

i could remove those changes if needed

stuck furnace
#

You have to be verified to use your mic.

#

You need a certain amount of activity first though.

wise cargoBOT
#

: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).

stuck furnace
#

Guys, don't spam to meet the requirement.

cobalt fractal
#

!pban 789812149819146271 troll

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied purge ban to @potent tapir permanently.

cobalt fractal
#

!pban 832928445645586453 troll

wise cargoBOT
#

failmail :ok_hand: applied purge ban to @oblique lynx permanently.

cerulean moth
#

@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

balmy nymph
#

Yup

stuck furnace
#

Ah πŸ˜„

cerulean moth
#

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

balmy nymph
#

They aren't

#

And yeah, I stepped down from my lead role yesterday

cerulean moth
#

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

balmy nymph
#

You can just get the first 10 links and don't care about the rest

cerulean moth
#

k will do

frigid panther
#

ooh @stuck furnace new pfp

stuck furnace
cerulean moth
#

lol

frigid panther
cerulean moth
#

a real piece of art

frigid panther
#

looks like griff's pfp

stuck furnace
frigid panther
#

haha sure πŸ‘€

#

I just realized today is saturday

stuck furnace
#

Better?

frigid panther
#

omg another glorious piece of art

#

better indeed

#

try spookify

#

.spookify

viscid lagoonBOT
#
Iceman
Is this you or am I just really paranoid?
stuck furnace
#

.spookify

viscid lagoonBOT
#
LXNN
Is this you or am I just really paranoid?
stuck furnace
#

Er?

frigid panther
#

oh lol

stuck furnace
#

Ah right.

#

PR denied.

#

Yep

#

Erm, it's an email I created for github, so it's fine.

cerulean moth
#

even i made one specific for git

#

and guess the unread message count?

stuck furnace
#

Maybe I shouldn't say that πŸ‘€

cerulean moth
#

i made it about a month ago

#

and the message unread count is 500k

stuck furnace
#

Thanks, do I get the contributor role now?

frigid panther
#

I have all mails diverge into 1 email account

cerulean moth
#

238 from sir lance LOL

stuck furnace
#

Back in a bit...

frigid panther
#

me2, need to go to supermarket 😫

cobalt fractal
#

I gotta go, back later

undone idol
#

@somber heath ah lol mvm

#

.spookify

viscid lagoonBOT
#
Srijan_coder
Is this you or am I just really paranoid?
undone idol
#

um?? not worth

stuck furnace
#

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 lemon_pensive

somber heath
#

I ended up calling my phone to find it the other day. It ended up it was underneath my keyboard.

somber heath
#

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

stuck furnace
somber heath
#

Just not the keyboard

stuck furnace
#

"Who would do this to me?"

somber heath
#

When I have something one second, and I can't find it the next,

#

"It's evaporated on me."

stuck furnace
#

Pick-pocketed... in my own house!

stuck furnace
#

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...

viscid lagoonBOT
dense ibex
#

rip 😦

stuck furnace
#

Any resemblance to anyone else's PFP is a coincidence.

dense ibex
#

Griff

#

?

stuck furnace
dense ibex
#

Honestly better than his tbh

stuck furnace
dense ibex
#

.spookify @somber heath

viscid lagoonBOT
#
OpalMist
Is this you or am I just really paranoid?
stuck furnace
#

Yeah, there's a pull-request pending I think πŸ˜„

sick dew
#

.spookify

viscid lagoonBOT
#
IntoxicatedTiger745
Is this you or am I just really paranoid?
stuck furnace
#

.spookify

viscid lagoonBOT
#
LXNN
Is this you or am I just really paranoid?
stuck furnace
#

Yep, inverse.

#

Hey, @frigid panther πŸ‘‹

frigid panther
#

hello o/

#

you changed your pfp again

#

xD

#

what is it

stuck furnace
#

Dragon fractal!

frigid panther
#

whats that

stuck furnace
#

It's the PFP I've been using for a while.

frigid panther
#

oh, how did I not notice πŸ€”

stuck furnace
#

Erm, I can send you the code to generate it... one sec...

frigid panther
#

fancy

stuck furnace
#
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()
frigid panther
#

noice

stuck furnace
#

Yep πŸ˜„ I'm not sure how to deal with it going off the screen.

#

You can increase 13 to get a larger pattern.

frigid panther
#

oh okay

stuck furnace
#

Yeah, you can make one by repeatedly folding a strip of paper in half.

#

Then making all the bends 90 degrees.

cobalt fractal
stuck furnace
#

My desk mat looks really grimy when photographed.

wise cargoBOT
#
Bad argument

Unable to convert '@sick dew' to valid command, tag, or Cog.

dense ibex
#

!source

wise cargoBOT
stuck furnace
#

Hmm, can you give an example?

#

Like, getattr(self.bot, method_name)() or something?

frigid panther
#

!eval

class A:
  def unload():
      print("hello unload")
  def load():
      print("hello load")

a = A()
getattr(a, unload)()
getattr(a, load)()```
wise cargoBOT
#

@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
stuck furnace
#

Need quotes around the attribute names.

frigid panther
#

ah yea

#

!eval

class A:
  def unload():
      print("hello unload")
  def load():
      print("hello load")

a = A()
getattr(a, unload)()
getattr(a, load)()```
wise cargoBOT
#

@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
frigid panther
#

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")()```
wise cargoBOT
#

@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
frigid panther
#

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")()```
wise cargoBOT
#

@frigid panther :white_check_mark: Your eval job has completed with return code 0.

001 | hello unload
002 | hello load
stuck furnace
#

Is the code on GitHub, Jake?

dense ibex
#
@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}")
dense ibex
frigid panther
#
@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

stuck furnace
#

Yeah I would write a helper called something like xload.

frigid panther
#
async def reload(...):
  await self.load_unload(..., func=self.bot.reload_extension...)```
stuck furnace
#

Or a function factory.

#

Actually, what I was going to recommend is a bit dodgy.

somber heath
#

Was it a game of dodgeball?

undone idol
#

hi boys i need a idea about my project

still berry
#

hello can anyone help me to understand files in Python and how it works ?

undone idol
#

I an trying to make a bot that detects spam in our email inbox?

#

Could anyone help/

frigid panther
undone idol
frigid panther
undone idol
#

Coul you please just tell me?

#

I ma join vc?

frigid panther
#

I dunno any of it, lol

#

but google sure does

undone idol
#

uhm no problem

#

Ye

#

Just surfing on internet

cobalt fractal
#

@mental holly πŸ‘€

mental holly
#

nibble

cobalt fractal
#

They be sleeping now

stuck furnace
#

Oof, I feel really unwell all of a sudden. Back in a bit πŸ‘‹

mental holly
#

feel better!

frigid panther
#

have you looked a few tutorials or articles already?

still berry
frigid panther
#

wdym by organize

buoyant topaz
#

did anyone saw the prince philip

still berry
buoyant topaz
#

live

#

funeral

frigid panther
frigid panther
#

can you show me what you are trying to do

stuck furnace
#

Yellow

#

I think it was just too much caffeine + overheating. It's bloody hot in this room when it's sunny πŸ˜“

mental holly
#

hi

stuck furnace
#

Yo @paper tendon

#

Coming through clearer today.

paper tendon
#

however I do not hear anyone of you

stuck furnace
#

That's because no one is talking πŸ˜„

#

Brb

errant nova
#

Hey, I'm new to the server and would like to talk - apparently I don't have the rights though.

stuck furnace
errant nova
#

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.

stuck furnace
wise glade
#

hey are bot commands or code snippets in #bot-commands , considered in 50 messages?

errant nova
#

I see - thats fair

stuck furnace
stuck furnace
wise glade
#

I came to hang out in voice
almost forgot its weekend, no one's coming 😞

stuck furnace
#

He's like the pied-piper of the voice channels...

wise glade
#

its good that he spends time doing other stuff at weekends

#

totally avoiding discord

errant nova
#

I'm good and happily writing my unittests

whole bear
#

@icy axle can i have video permissions

#

@stuck furnace could i have video permissions please?

stuck furnace
#

It would be nice not to have to restart Discord every time I join a voice-channel lemon_pensive

#

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?

whole bear
#

oh he gave me perms yesterday

stuck furnace
#

Alright. You can have perms for one hour πŸ‘ One sec...

whole bear
stuck furnace
#

You have perms now @whole bear

whole bear
#

ok

stuck furnace
#

brb

tranquil wing
#

cute cat