#voice-chat-text-0

1 messages ยท Page 33 of 1

faint ermine
#

this was my hacky solution to something which has tools to solve

#

basically building dependencies first

#

yea fair nuff

#

i mean, you do have a docker build cache right?

#

heh

#

i mean, only for big imports

#

yea

#

so after the initial cargo build you'd probably have been fine

#

i thought you actually meant dependency build, which is why i sent my hacky way to build dependencies first

#

time python3 -c "import aiohttp" on my server

real    0m0.202s
user    0m0.154s
sys     0m0.036s
#

wait were you starting a new interpreter each time?

faint ermine
#

python webservers can be decently fast but not that way lol

faint ermine
#

which is a far more powerful machine

#

oof

#

yea def want a compiled lang then

#

lol

#

why

#

what were you rendering

#

lol

somber heath
#

!e py for letter in "abc": print(letter)

wise cargoBOT
#

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

001 | a
002 | b
003 | c
somber heath
#

!e py letter = "a" print(letter) letter = "b" print(letter) letter = "c" print(letter)

wise cargoBOT
#

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

001 | a
002 | b
003 | c
somber heath
#

!e py for i in range(5): print(i)

wise cargoBOT
#

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

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
somber heath
#

!e print(*range(10))

wise cargoBOT
#

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

0 1 2 3 4 5 6 7 8 9
somber heath
#

!e py for _ in range(10): print("Hello, world.")

wise cargoBOT
#

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

001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
004 | Hello, world.
005 | Hello, world.
006 | Hello, world.
007 | Hello, world.
008 | Hello, world.
009 | Hello, world.
010 | Hello, world.
somber heath
#

!e py things = ["Apple", "Orange", "Pear"] for thing in things: print(thing)

wise cargoBOT
#

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

001 | Apple
002 | Orange
003 | Pear
somber heath
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

mortal sundial
#

!e```py
print('Hello world!')

wise cargoBOT
#

@mortal sundial :white_check_mark: Your 3.10 eval job has completed with return code 0.

Hello world!
mortal sundial
#

!e

playing = input("do you want to play? ")
if playing != "yes":
wise cargoBOT
#

@mortal sundial :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     if playing != "yes":
003 |                         ^
004 | IndentationError: expected an indented block after 'if' statement on line 2
somber heath
#

!e py name = "Peter" #name = input("What is your name? ") print(f"Hello, {name}.")

wise cargoBOT
#

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

Hello, Peter.
mortal sundial
#

!e```py
first_name = "Ian"
print(first_name)

wise cargoBOT
#

@mortal sundial :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     print(first_name)
003 | IndentationError: unexpected indent
somber heath
#

!e py a = 5 b = 3 print(f"{a} plus {b} is {a + b}.") print("{a} plus {b} is {a + b}.")

wise cargoBOT
#

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

001 | 5 plus 3 is 8.
002 | {a} plus {b} is {a + b}.
somber heath
#

!indent

wise cargoBOT
#

Indentation

Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.

Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.

Example

def foo():
    bar = 'baz'  # indented one level
    if bar == 'baz':
        print('ham')  # indented two levels
    return bar  # indented one level

The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.

Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines

More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation

somber heath
#

@silver stratus ๐Ÿ‘‹

#

!voice

wise cargoBOT
#

Voice verification

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

somber heath
#

!e ```py
def hello(): #function definition
print("Hello, world.")

hello() #function call
hello()
hello()```

wise cargoBOT
#

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

001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
somber heath
#

@silver stratus I hope the day greets you well.

#

@olive sluice

#

!voice

wise cargoBOT
#

Voice verification

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

olive sluice
#

Hello

#

I was wondering if you know how to compile a python game to mac os?

#

Yes

#

neither am I lol

somber heath
olive sluice
#

Ok thanks I will, I have to go to bed now sense I am a teenager ty

#

Enjoy your night and or day ๐Ÿ™‚

azure rivet
#

๐Ÿ‘€

somber heath
#

@blissful vine ๐Ÿ‘‹

blissful vine
#

@somber heath bro i need help

#

Very imp

somber heath
#

With?

#

Why important?

blissful vine
#

And some govt. Files that are much much imp.

#

Are converted into ZATP files

somber heath
#

zatp?

blissful vine
#

Which means a locked file

somber heath
#

Aha. Ransomware?

blissful vine
#

๐Ÿ˜ญ

somber heath
#

So you work for a government, and you have these files on your computer...?

#

that are government property?

blissful vine
somber heath
#

Oh dear.

blissful vine
#

It was a bill paying files which helps to give salary to employess

#

What I do now ๐Ÿ™‚

#

I don't want to remove virus
I just want to recover those files

#

Only

somber heath
#

If this conversion is in process, power off the computer immediately until you can maybe rescue some files through use of a liveboot cd or similar.

blissful vine
#

My files are gone they are not imp. But in pen drive
These files are imp.
Do you know how to recover or decrypt .ZATP files?

somber heath
#

The whole idea of ransomware is that you don't.

#

Consider those files gone.

blissful vine
#

@somber heath okh how can I contact cyber security office??

blissful vine
somber heath
#

You've fucked up. The only thing you can do now is swallow your losses and prevent further damage.

blissful vine
somber heath
#

This sounds like something your father should be involved with.

blissful vine
somber heath
#

If it were me, I'd completely wipe all data on all affected disks.

somber heath
#

Drives.

blissful vine
#

Only pen drive data need to be recovered

somber heath
#

It may not be the only copy of the data.

blissful vine
#

Another copy will take too much to make

#

Like we need to go to

somber heath
#

I'm not in a position to help you.

blissful vine
#

Government offices

somber heath
#

Talk to your father.

blissful vine
blissful vine
somber heath
#

You might get super super lucky and can pull off some file data if you use a deleted file recovery program.

#

But I think it's not up to you to try.

#

The best thing you can probably do is stay out of it.

#

Some fault exists with whoever decided that a single copy of critical data was sufficient.

#

For exactly this kind of reason.

#

Shit happens. If you don't account for that, you get what you get.

#

It's ultimately whoever's data it is to decide what to do.

#

I would counsel them to archive the infected devices in secure fashion and lock them away.

#

Appropriately warning labelled.

#

Police may wish to inspect them.

#

Paying ransoms holds no guarantee of unencryption and it also contributes to the material enrichment of the criminal extortion industry.

blissful vine
#

Wait let me read

blissful vine
#

You are right

#

We will go to office

#

And going to make new data

#

To proceed transaction of salary

somber heath
#

@lavish rover ๐Ÿ‘‹

#

brb

lavish rover
somber heath
#

If it were my own personal files and drives, I would go "Haha, fuck you, no.", and dban everything.

ancient laurel
#

hellooo

feral aurora
ancient laurel
#

soo anyone know the depts of openCV

feral aurora
#

I had a question @somber heath. People say Linux is safer as most of the viruses are made for windows. But most of the cloud stuff has linux right. What exactly makes linux soo much safer?

#

due to it being open source?

#

yess! that makes sense!

#

yes!

#

So the code is exposed but as it is exposed it makes it more solid and hard to penetrate in as vulnerability gets fixed by the community!

#

what linux distro you use?

#

Thats sad

#

I have heard about google bounty thing

#

XD we should exploit then haha

#

windows too much history being an a**** H***

#

Thanks for everything!!! Glad to get to chat with you!

#

I wish I had perms to vc

#

I have less then 50 messages

#

:C

#

hello

#

I wanted to talk more but its hard typing haha

#

XD

#

I will try again maybe verifying

#

I was curious about what kind of things you do in your job

#

ohh okey sorry

#

nicee!

#

I'm in my 4th year of cs engineering. I like this field but competition makes it soo hard and tough to do what you like!

#

yes!

somber heath
#

!e py things = [("a", 1), ("b", 2), ("c", 3)] result = [a for a, _ in things] print(result)

wise cargoBOT
#

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

['a', 'b', 'c']
feral aurora
#

yup python is amazing!!

#

XD

#

can you explain this tho. I dont get it fully

#

a for a

wintry socket
#

Hello

somber heath
#

!e py result = [] for letter in "abc": result.append(letter) print(result)

wise cargoBOT
#

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

['a', 'b', 'c']
wintry socket
#

!voice

wise cargoBOT
#

Voice verification

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

feral aurora
#

yes I understand this the one you wrote above

#

yes _ and stuff

#

I have used list comprehension in very small things like [x:x in something] like that

wintry socket
#

are you a comp sci major @somber heath

somber heath
#

!e py result = [letter for letter in "abc"] print(result)

wise cargoBOT
#

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

['a', 'b', 'c']
feral aurora
#

yes

somber heath
#

!e py result = [] for letter in "abc": for number in "123": result.append(letter + number) print(result)

wise cargoBOT
#

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

['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
somber heath
#

!e py result = [letter + number for letter in "abc" for number in "123"] print(result)

wise cargoBOT
#

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

['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
feral aurora
#

anything written in the left most part is append operation?

#

yes makes sense! write the code left to right

#

sorry right to left

#

yea

somber heath
#

!e py a, b, c = [1, 2, 3] print(a) print(b) print(c)

wise cargoBOT
#

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

001 | 1
002 | 2
003 | 3
somber heath
#

!e py things = [("a", 1), ("b", 2), ("c", 3)] for a, b in things: print(f"{a}{b}")

wise cargoBOT
#

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

001 | a1
002 | b2
003 | c3
feral aurora
#

!e

things = [("a", 1), ("b", 2), ("c", 3)]
for a in things:
    print(f"{a}")
wise cargoBOT
#

@feral aurora :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | ('a', 1)
002 | ('b', 2)
003 | ('c', 3)
wintry socket
#

Can I ask for help with my problem after you guys are finished? matplotbib plots

somber heath
#

!e py a, b, *c = "abcdefg" print(a) print(b) print(c)

wise cargoBOT
#

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

001 | a
002 | b
003 | ['c', 'd', 'e', 'f', 'g']
wintry socket
#

I just have data that I want to plot

#

okay - I will have a look at it - no worries, thank you though

somber heath
#

!e ```py
def func(a, b, *c):
print(a)
print(b)
print(c)

func(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)```

wise cargoBOT
#

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

001 | 1
002 | 2
003 | (3, 4, 5, 6, 7, 8, 9, 0)
somber heath
#

!e ```py
def func(**kwargs):
print(kwargs)

func(apple = 5, pear = 6)```

wise cargoBOT
#

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

{'apple': 5, 'pear': 6}
somber heath
#

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

func(b = 2, a = 1)```

wise cargoBOT
#

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

001 | 1
002 | 2
feral aurora
#

!e

def func(*args):
    print(args)

func(5, 6)
wise cargoBOT
#

@feral aurora :white_check_mark: Your 3.11 eval job has completed with return code 0.

(5, 6)
somber heath
#

!e ```py
def func(a, b, c, *args, **kwargs):
print(a)
print(b)
print(c)
print(args)
print(kwargs)

func(1, 2, 3, 4, 5, 6, key = 7, door = 8, floor = 9)

wise cargoBOT
#

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

001 | 1
002 | 2
003 | 3
004 | (4, 5, 6)
005 | {'key': 7, 'door': 8, 'floor': 9}
feral aurora
#

!e

def func(a, b, c, *args, **kwargs):
    print(a)
    print(b)
    print(c)
    print(args)
    print(kwargs)

func(1, 2, 3, door = 8, 4, 5, 6, key = 7, floor = 9)
wise cargoBOT
#

@feral aurora :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 8
002 |     func(1, 2, 3, door = 8, 4, 5, 6, key = 7, floor = 9)
003 |                                                        ^
004 | SyntaxError: positional argument follows keyword argument
somber heath
#
def func(a, b, c, /, key):
    ...```
#

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

d = {"a": 1, "b": 2, "c": 3}
func(**d)```

wise cargoBOT
#

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

001 | 1
002 | 2
003 | 3
somber heath
#
func(a = 1, b = 2, c = 3)```
#

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

func(*"abc")```

wise cargoBOT
#

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

a b c
somber heath
#
func("a", "b", "c")```
feral aurora
#
things = [("a", 1), ("b", 2), ("c", 3)]
result = [a for a, _ in things]
print(result)
#

a[0]

somber heath
#
result = [thing[0] for thing in things]```
feral aurora
#

!e

things = [("a", 1,3), ("b", 2,4), ("c", 3,5)]
result = [a for a, _ ,c in things]
print(result)
wise cargoBOT
#

@feral aurora :white_check_mark: Your 3.11 eval job has completed with return code 0.

['a', 'b', 'c']
somber heath
#

!e ```py
class MyClass:
def add(self, _):
return "Hello, world."

instance = MyClass()
result = instance + 9001
print(result)```

wise cargoBOT
#

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

Hello, world.
somber heath
#

!e ```py
def func(a):
pass

func(1, 2)```

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 | TypeError: func() takes 1 positional argument but 2 were given
somber heath
#

!e ```py
class MyClass:
def add(self, v):
return f"{self = }, {v = }"

instance = MyClass()
result = instance + 9001
print(result)```

wise cargoBOT
#

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

self = <__main__.MyClass object at 0x7f4288dd7890>, v = 9001
somber heath
#

!e ```py
class MyClass:
def setitem(self, key, value):
print(f"setitem, {key = }, {value = }")

def __getitem__(self, key):
    print(f"__getitem__, {key = }")
    return "Hello, world."

instance = MyClass()
instance["A"] = "B"
result = instance["C"]
print(result)```

wise cargoBOT
#

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

001 | __setitem__, key = 'A', value = 'B'
002 | __getitem__, key = 'C'
003 | Hello, world.
somber heath
#
instance.__setitem__("A", "B")
result = instance.__getitem__("C")```
feral aurora
#

Thanks again for everything @somber heath!

somber heath
#

@whole bear

whole bear
#

oh

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
#

oh damn

#

uhhhhhhhhhhhhhhhh

#

do any one know what uhhhh

#

pyee.asyncio

#

is

#

me neither lol

#

Hi

#

yooooooo

#

๐Ÿ‘‹

#

i think i have to show you my error

#

Sorry I can't vc verify I don't have 50 messages yet

#

ye

#

o

#

wait can you type that down

#

i didnt catch it

#

o

#

witch code lol

#

oh

#

lol im dumb

#

a

#

oh no

#

Christmas the best

#

bru santa gonna give me coal

#

Santa better make meh better at python

#

Lol

#

damn i got lost

#

Cool

#

Ye

#

wait i use visual studio instead of cmd prmt

#

Indeed

#

I wouldn't use the cmd bc vscode is better for writing code on all levels

#

lol this one isnt my code

#

oh

#

oh no

#

i have done that for 6 months

#

Ye he's right don't do that

#

brub i feel like a dumb

#

aaaa

#

i dunno usally used it cuz the youtube guys did it

#

ye

#

gotcha

somber heath
#

@thin plover

#

!voice

wise cargoBOT
#

Voice verification

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

thin plover
#

thanks

#

ok this is the room i was looking for

#

I was just trying to communicate with you @somber heath

#

we don't know each other, just looking for help and understanding on some things with python

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @thin plover until <t:1669884055:f> (10 minutes) (reason: burst rule: sent 8 messages in 10s).

The <@&831776746206265384> have been alerted for review.

thin plover
#

can't talk still

#

need 3 days

thin plover
#

trying to get some help with some projects on python

#

I can hear you both btw

#

I have 2

#

one is trying to make this cube play video

#

#2 is installing micropython on an ESP32-WROOM and flash this software. still have troubles with it

#

maybe I can share my screen

#

couldn't hear that last part

#

@robust lichen talk here for text.

#

@somber heath ok, i've done that.

#

guess ill wait

robust lichen
#

i went from c++ to python too

#

now im working on web scraper

#

in python

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

robust lichen
#

i have to send 50

#

sadly

#

does this count?

#

to my voice verification

#

would yall mind if i spam a little?

#

i want to speak

thin plover
#

you'll get banned

#

just happened to me

#

and you need to wait 3 days anyways

robust lichen
#

to get voice verified?

thin plover
#

if you send more than10 messages in 8 seconds you will get banne

#

M]
BOT
Python: ๐Ÿ“จ ๐Ÿ‘Œ applied mute to @thin plover until December 1, 2022 12:40 AM (10 minutes) (reason: burst rule: sent 8 messages in 10s).

The <@&831776746206265384> have been alerted for review.

robust lichen
#

just one question

desert vector
#

It was a part of the older version of the help system.

#

We had a rotation of channels 1 person could claim at a time to get help.

#

Now that forums exist, the system was scrapped and replaced

#

!unmute 577980542348296205

wise cargoBOT
#

:x: There's no active mute infraction for user @thin plover.

robust lichen
#

he copy pasted

desert vector
#

huh, must've gotten yoinked earlier

thin plover
#

got it workign i think

desert vector
#

Oh. You're right.

#

@thin plover Careful with your copy pastes, you pinged the entire moderation team.

whole bear
#

Oh god

somber heath
#

Lemon moment!

whole bear
#

He's gonna pissed off staff moment -_-

desert vector
#

I'm glad it isn't a real lemon moment.

thin plover
#

was just showing @robust lichen what happens if you text too much. yes I got yoinked

desert vector
#

I know, my point is
that you unintentionally pinged the team

#

when nothing was going on in here

robust lichen
#

until you realize do not disturb exists lol

#

i would not use discord

#

if they didn't have it

#

im trying to get this array to print how i want it

#

but its being weird

#

yes

somber heath
robust lichen
#

ive only been doing it for 8 months

#

lol

#
import requests
import bs4
import fuzzywuzzy as fw


web_url = "https://subscene.com"
headers = {
    'User-Agent': "Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0"}


def search_subtitles(name):
    url = f"{web_url}/subtitles/searchbytitle"
    r = requests.post(url, headers=headers, params={'query': name})
    if r.status_code == 200:
        return r.content


def parse_html(content):
    soup = bs4.BeautifulSoup(content, 'lxml')
    return soup


def extract_links(soup):
    subtitle_links = []

    for i in soup.findAll('a'):
        subtitle_links.append(i.get('href'))
    return subtitle_links


def fuzzy_match(search_string, subs_list):
    # import fuzzywuzzy

    fw.fuzz.ratio(search_string, subs_list)
    # return the closest match
    return fw.process.extractOne(search_string, subs_list)

search_string = input("Search Subtitles: ")
content = search_subtitles(search_string)
soup = parse_html(content)
subs = extract_links(soup)
subs = list(set([i for i in subs if i.startswith('/subtitles')]))

#subs = fuzzy_match(search_string, subs)

print("\n", subs)  
#

the fuzzymatch isn't the problem

#

its for when i do it later

#

what i want

#

let me show you

thin plover
#

i g2g

#

night

robust lichen
#

['/subtitles/cline-dion-ashes-from-the-deadpool-2-motion-picture-soundtrack-2018', '/subtitles/deadpool', '/subtitles/deadpool-2', '/subtitles/ashes-from-the-deadpool-2-motion-pictures-soundtrack']

#

this is what i get when i type deadpool

#

in the input

#

how could i format the array

#

to look like this?

#

/subtitles/cline-dion-ashes-from-the-deadpool-2
/subtitles/deadpool

#

i just want to reformat

somber heath
#

!e py things = ["abc", "def", "ghi"] print(*things, sep = "\n")

wise cargoBOT
#

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

001 | abc
002 | def
003 | ghi
somber heath
#

!e py things = ["abc", "def", "ghi"] result = "\n".join(things) print(result)Another approach.

wise cargoBOT
#

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

001 | abc
002 | def
003 | ghi
somber heath
#

!e py things = ["abc", "def", "ghi"] for i, thing in enumerate(things): print(i, thing)

wise cargoBOT
#

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

001 | 0 abc
002 | 1 def
003 | 2 ghi
somber heath
#

!e py things = ["abc", "def", "ghi"] result = "\n".join(f"{i}. {thing}" for i, thing in enumerate(things)) print(result)

wise cargoBOT
#

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

001 | 0. abc
002 | 1. def
003 | 2. ghi
somber heath
#

!e py for i, v in enumerate("abc", start = 1): print(i, v)

wise cargoBOT
#

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

001 | 1 a
002 | 2 b
003 | 3 c
robust lichen
viral oak
#

ohh

#

ok

#

how can i start and end python script in a python script with subprocess

#

no

robust lichen
#

like this: py

viral oak
#
from subprocess import call
from config import Zela

intents = discord.Intents.default()
bot = discord.Bot(
    intents=intents,
    debug_guilds=[947187565537161296]
)


@bot.event
async def on_ready():
    print(f'Logged in as: {bot.user.name}')
    print(f'ID of {bot.user.name} is: {bot.user.id}')
    print('------------------------------------------')


@bot.slash_command(description='Starting Gamma Server')
async def start_gamma(ctx):
    await ctx.respond('Gamma is starting...')
    call(["python", "Gamma.py"])


@bot.slash_command(description='Starting Epsilon Server')
async def start_epsilon(ctx):
    await ctx.respond('Epsilon is starting...')
    call(["python", "Epsilon.py"])


bot.run(Zela)
#

it should start other bots and stop other bot

#

yes

#

yes

#

yes

#

Yes

#

Gamma is a discord bot

robust lichen
#

.kill()

#
import subprocess 
import time

class foo_class(object):
    def __init__(self):
        pass

    def start(self):
        self.foo = subprocess.Popen(['a daemon service'])

    def stop(self):
        self.foo.kill()
        self.foo.wait() #don't know if this is necessary?

    def restart(self):
        self.start()


foo = foo_class()
foo.start()
time.sleep(5)
foo.stop()
viral oak
#

yes

#

no

viral oak
#

it did not work

#

where can i see how many messages i sent

gentle flint
#

do a search from: Aquafox450#7387
subtract all your bot commands messages

#

for the bot, you have 25 messages

#

@viral oak

viral oak
#

Thanks

#

ok ok

#

stop playing Amoung US music

whole bear
#

:))

viral oak
#

i can`t

#

hiii

#

ok

#

i will

trail mural
#

Hi vc0

viral oak
#

hi

trail mural
#

how you doing buddy?

viral oak
#

gut and you?

#

hello???

trail mural
#

I am good also!

#

Are you working on anything?

viral oak
#

what was your first programming language?

trail mural
#

Python but I am still terrible with it

#

how about yours?

viral oak
#

samme

#

@robust lichen @whole bear how many programming languages โ€‹โ€‹do you know?

woeful salmon
viral oak
#

what is typeScript ???

trail mural
#

The guy below will tell you!

woeful salmon
#

typescript is a superset of javascript

so just javascript with type checking as an additional compilation step

#

ye

trail mural
#

Hi Noodle!

#

๐Ÿ™‚

#

did you do todays advent?

viral oak
#

ok thanks

woeful salmon
#

and yeah

#

it was easier than last year's day 1 xD

trail mural
#

It feels good getting it right on the first try

woeful salmon
#

ye

trail mural
#

Hi Vincent!

tidal shard
#

Hey guys!

viral oak
#

Hey Guys

woeful salmon
#

i wish i had time to make projects too rn ๐Ÿ˜ฆ i have like 4 functions followed by a cousin's marrige lined up in next 5 days

azure rivet
#

:v

tidal shard
#

and here I am procrastinating

trail mural
#

:>

#

excuses excuses

tidal shard
#

bahahahaha

azure rivet
#

What projects are you guys working on?

woeful salmon
#

well i asked my boss for a leave and he said yes right away

#

i'm self employed ๐Ÿ˜„

tidal shard
viral oak
#

:))

woeful salmon
#

no paid leave tho unfortunately

tidal shard
viral oak
#

where can i see how many messages i sent?

trail mural
tidal shard
#

I don't expect to make money off of it, just would be nice to practice coding and learn stuff like that since I sorta work in the financial industry

woeful salmon
azure rivet
viral oak
woeful salmon
trail mural
#

imagine finishing!

#

I can only start ;-;

woeful salmon
#

its just i don't like crowds and next 5 days i won't be with any lesser than 60 people at any point in time

azure rivet
tidal shard
tidal shard
woeful salmon
#

i won't get paid if i don't finish it so i have to

#

personal projects i have about 200-300 unfinished ones ๐Ÿ˜„

tidal shard
tidal shard
#

I kinda wanna rice it

woeful salmon
#

oh nice ๐Ÿ˜ฎ

azure rivet
#

My noobie project is just making a database that calculates my daily payใ€œ

#

๐Ÿค‘

#

๐Ÿคฃ

woeful salmon
#

wait i got this glitch for the first time that people have been telling me for years lmao

#

duke stopped talking and i could still hear his static

#

without his ring going green*

trail mural
#

bro you entered the audio back rooms

azure rivet
#

Btw, how does one get permission to screen shareใ€œ

viral oak
#

hi @velvet urchin

woeful salmon
azure rivet
viral oak
#

why?

#

2

#

1

woeful salmon
#

@velvet urchin

azure rivet
#

:v!

#

Are you guys proficient in python?

#

Can't talk rn btw

lethal thunder
#

print(tf.config.list_physical_devices('GPU'))

azure rivet
#

Korea

#

Malaysia

#

๐Ÿ’€

#

Guy said kidnapping ๐Ÿคฃ

lethal thunder
languid comet
#

i can hear 3 different "money"

lethal thunder
languid comet
#

i cant hear commas

azure rivet
#

Brb

trail mural
#

Hi coffee โ˜•๏ธ

whole bear
#

guys how do i enable my mic

woeful salmon
#

!voice

wise cargoBOT
#

Voice verification

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

whole bear
#

!voice

velvet urchin
#

!voice

#

!lolce

#

s/something/else

azure rivet
#

Back

whole bear
#

i need help guys

#

i need a code regarding how qr code works in retail

gentle flint
#

retail or detail

whole bear
#

can anyone help me find it

whole bear
gentle flint
#

and what do you mean with "you need a code describing"
programs don't describe things
they do things

#

tutorial and articles describe and explain things

whole bear
#

i know that i meant like i need a program which will scan qr code and various operations will be done

#

like billing,checking availability of stock

gentle flint
#

!pypi pyzbar

wise cargoBOT
#

Read one-dimensional barcodes and QR codes from Python 2 and 3.

gentle flint
#

pyzbar can read decode qr codes after pillow reads them

#

as for the other operations, those are separate questions

whole bear
#

bro i need full fledged program which can read qr codes and

#

do the tasks

gentle flint
#

well, you'll have to write it yourself then

#

building it up out of those parts

whole bear
#

could you help me

gentle flint
#

no

#

I think you're perfectly capable of doing it yourself

whole bear
#

an abundance of noodles in this vc

whole bear
gentle flint
#

then maybe start with that

#

lots of good python courses available

#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

gentle flint
#

there's some free ones on the resources page

whole bear
#

bro but i have an hackathon tomorrow

#

where i need to present some code atleast

gentle flint
#

is it for school

somber heath
#

What operating system?

whole bear
gentle flint
#

is the hackathon mandatory?

whole bear
azure rivet
#

There's a 4 hour python tutorial that teaches you the core basics of python. You can start coding as soon as you finish watching it ^^

gentle flint
whole bear
whole bear
gentle flint
# whole bear yesss

so let me get this straight
you're following a course at college, but you haven't put in enough effort to actually learn the bare basics of what you're supposed to know
so you come here and ask us to help you cheat?

shadow scarab
#

"my brain shit"

whole bear
#

guys im still in 2nd year of engineering and they still havent thought any language full fledge

#

so but i wanna learn and experience

somber heath
# whole bear windows or fedora

If you can write a program which accepts stdin stream data and run commands accordingly, you can pipe the stdout of zbarcam or similar into it.

gentle flint
#

Go follow a python course, get as far as you can
us helping you cheat is not going to get you any further

#

also it would violate rule 8

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

vale hamlet
#

can u give some ressources ?

gentle flint
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

azure rivet
#

!rule 8

wise cargoBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

whole bear
#

Anyone experienced with phpmyadmin on here?

shadow scarab
#

Been wondering if i could use python to create stats for an rpg game

azure rivet
whole bear
#

but shes confusing the heck outta me

azure rivet
#

๐Ÿคฃ

whole bear
#

@azure rivet Willing to help me navigate through it?

velvet urchin
azure rivet
#

I have no idea what phpmyadmin is but I'm open to learningใ€œ

velvet urchin
#

Math.sin(i/(l/10))

whole bear
azure rivet
#

I see that you like stuff

whole bear
azure rivet
#

Same

velvet urchin
#

Math.sin(i/(l/10))+r

azure rivet
#

What do you need pypmyadmin for anyways

whole bear
azure rivet
#

What's wordpress ๏ผš๏ผ‰

whole bear
#

I need to make an ecatalogue basically

rugged root
#

hai noodle

#

Both noodles

#

Wait

#

All three noodles

#

Are you guys multiplying or something?

whole bear
azure rivet
whole bear
azure rivet
#

Oh

#

So did you volunteer to help or did your uncle hear that you were a programmer? :'v

whole bear
azure rivet
#

Figures

velvet urchin
azure rivet
whole bear
#

im youtubing my way through it

azure rivet
#

Fun

whole bear
#

Im dying

azure rivet
#

Send the videos

whole bear
#

like a dm or on here?

azure rivet
#

Anywhere is fine

whole bear
#

oki

#

In this video I am going to show How to install Wamp Server on Windows 11 or Windows 10. WAMP is a Windows OS based program that installs and configures Apache web server, MySQL database server, PHP scripting language, phpMyAdmin (to manage MySQL databaseโ€™s). WAMP stands for Windows, Apache, MySQL, PHP. wampserver installer can be easily downlo...

โ–ถ Play video
#

Thats all of them...for now

sweet lodge
#

Wordpress!?

#

Embrace Django!!

whole bear
#

I thought of using django

#

but someone said to use wordpress

#

idk im a biology major

#

halp!

trail mural
#

help with what?

whole bear
#

@rugged root ...i broke

#

I tried wix...it costs money to integrate the domain I bought

trail mural
#

if you are making a static site just use github pages and basic css,html

whole bear
#

and then someone suggested wordpress

whole bear
woeful salmon
rugged root
#

All good

rugged root
woeful salmon
#

well its cousin's marrige in 2 days before that we have a bunch of other stuff too so just relatives won't leave me alone rn

rugged root
#

Depends on the purpose, AF

teal glade
rugged root
azure rivet
woeful salmon
#

i need to go now, it was fun hanging out out here after a while cya guys in 2-3 days ๐Ÿ˜„

rugged root
#

Huh

#

!d asyncio.Semaphore

wise cargoBOT
#

class asyncio.Semaphore(value=1)```
A Semaphore object. Not thread-safe.

A semaphore manages an internal counter which is decremented by each [`acquire()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.acquire "asyncio.Semaphore.acquire") call and incremented by each [`release()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.release "asyncio.Semaphore.release") call. The counter can never go below zero; when [`acquire()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.acquire "asyncio.Semaphore.acquire") finds that it is zero, it blocks, waiting until some task calls [`release()`](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.release "asyncio.Semaphore.release").

The optional *value* argument gives the initial value for the internal counter (`1` by default). If the given value is less than `0` a [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised.

Changed in version 3.10: Removed the *loop* parameter.

The preferred way to use a Semaphore is an [`async with`](https://docs.python.org/3/reference/compound_stmts.html#async-with) statement...
rugged root
#

Didn't know about that

wise cargoBOT
#

coroutine asyncio.sleep(delay, result=None)```
Block for *delay* seconds.

If *result* is provided, it is returned to the caller when the coroutine completes.

`sleep()` always suspends the current task, allowing other tasks to run.

Setting the delay to 0 provides an optimized path to allow other tasks to run. This can be used by long-running functions to avoid blocking the event loop for the full duration of the function call.

Example of coroutine displaying the current date every second for 5 seconds:
whole bear
rugged root
#

@lethal thunder Seriously, whenever you're going to talk to your family, BEFORE you start talking to them, mute

whole bear
rugged root
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

whole bear
#

yes

lethal thunder
#

||sus||

#

||Hemlock SUS||

somber heath
#

Da de di do du.

trail mural
#

im blue

lethal thunder
rugged root
#

Also forgot that was a thing

somber heath
#
__pickle__```
gentle flint
#

pickle rick

trail mural
#

Warning

The pickle module is not secure.

#

Only unpickle data you trust.

#

Mr Hemlock did you finish last years advent?

whole bear
#

Warning (from warnings module):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\site-packages\telegram\ext\dispatcher.py", line 557
handler.handle_update(update, self, check, context)
RuntimeWarning: coroutine 'activateCommand' was never awaited

#

await asyncio.sleep(10)

rugged root
#

@icy axle If you were a magician, this is what you would HAVE to call your show

whole bear
lethal thunder
#

you from london init @whole bear

rugged root
#

Can you do py -m pip list real quick?

whole bear
whole bear
#

Traceback (most recent call last):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
TypeError: status_invoice_tcn() takes 1 positional argument but 6 were given

#

Thread-1 (status_invoice_tcn)
:
Traceback (most recent call last):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
TypeError: status_invoice_tcn() takes 1 positional argument but 6 were given

lethal thunder
#

threading.Thread(target=status_invoice_tcn, args=invoice_id_tcn,).start()

whole bear
rugged root
#

Oh dude

#

I've always said this about Python, if you're trying to do something, odds are good someone has already made it and done it better. (not knocking any of you, more just admiring the Python ecosystem)

#

Ah, apologies. I thought I remember him saying it was originally just about dealing with the rate limiting

#

I gotcha now

whole bear
#

Exception in thread Thread-1 (status_invoice_tcn):
Traceback (most recent call last):
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\Main\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Main\Desktop\Mafiafullz - Copy\main (4).py", line 158, in status_invoice_tcn
response_status = status_invoice_tcn(invoice_id_tcn)
TypeError: status_invoice_tcn() missing 3 required positional arguments: 'update', 'amount_tcn', and 'address_tcn'

sweet lodge
#

Send some of that my way

trail mural
#

you got covid

#

f

rugged root
#

Back in a moment, someone's rig at work isn't working. Also that might be why I like Windows; because I do IT work

#

It's what the majority of people have so I'm very used to its ins and outs

molten pewter
trail mural
#

all the premade food at google hq in London is pretty much just vegetarian/vegan

rugged root
#

Kind of neat, though

trail mural
#

surprisingly they are not bad

rugged root
#

So long as they get enough protein and nutrients, it's a healthier option

trail mural
#

got tons of drinks

rugged root
#

Wait do you work at Google?

trail mural
#

no

#

I go there

zenith radish
#

At msft estonia we have vegan options for everything but there's also meat/dairy options

rugged root
#

Oh neat

trail mural
#

for non work related stuff

whole bear
#

no

#

here

rugged root
#

His head is a bell curve graph

#

Wait it what

#

Like

#

To assist in making game setups in it?

#

Kinky

waxen barn
#

this is how different they look for me

rugged root
#

Amazing

#

All it needs is a dark mode and you're in

tidal shard
#

DUDE

#

I just did that

#

It does have a dark mode

rugged root
#

Thought it was notepad

sweet lodge
sweet lodge
# sweet lodge I thought notepad was too

Oh, no, sorry, it was just moved out of the "in-box" category (pre-installed apps) and to the Windows Store
So it can now be uninstalled and updated without Windows update

sweet lodge
rugged root
#

nop - Do nothing.
I don't need a command to do that thank you

sweet lodge
#

pass

rugged root
#

What was the suspicion?

#

It can yeah

#

But that was a relatively recent addition

#

Neither one started with that support or even really planned on adding it

#

Ah that's right

#

Yep yep

#

Yep, companion any time I could

#

Typically I was in melee range and would pick a ranged or support person as my second

#

It's really really helpful with bosses

#

Any kind of added support makes it more pleasant

#

Fair

zenith radish
rugged root
zenith radish
#

shubham.sachdeva
Jun 29 '19

sweet lodge
#

LOL I had to go find my DMs to find LP's ID bec....

#

Oh shit that's you

zenith radish
rugged root
#

It's like mana in Code Vein

#

More or less

peak lily
#

imo, it's always a better investment to learn skills closer to core CS things

#

but it helps to learn new skills easier

#

like let's say you learned about design patterns something like that, now that you have that skill you see, how people are designing library, and quickly now how to use them

rugged root
#

Yeah I suppose

plucky delta
#

the best job is no job

#

start your own biz

rugged root
rugged root
plucky delta
#

then stay on that 9-5

rugged root
#

Yarp

peak lily
rugged root
#

Copy or just buy you

#

Or it just goes nowhere

plucky delta
#

the good outcome is buy the company

rugged root
#

Such a gamble

#

@waxen barn We're getting some echo from your mic

plucky delta
#

yeah some static as well

gentle flint
#

@waxen barn pls fix your mic

plucky delta
#

ban him hemlock

rugged root
#

@waxen barn Moved you to AFK, can you check your mic settings, turn on Krisp or echo cancellation?

#

Oh it's fine now

#

When?

peak lily
# rugged root Copy or just buy you

it's quite rare big tech buys companies for tech. they often buy for costumers and brand something like that.

like elon bought twitter because twitter as tech is not that valuable, but twitter network effect is hard to replicate

rugged root
#

I know on some folks it used to make them sound tinny, but they've more or less cleared that up

plucky delta
rugged root
#

From what I've seen

#

Nothing saying it isn't borked for some folks

plucky delta
#

its bollocks

peak lily
rugged root
#

He craves attention

plucky delta
#

eh why not

#

mans rich

#

if i was as rich as him some countries would collapse for fun

rugged root
#

@foggy stirrup Use this chat instead

#

I disabled the built in text channel because it's less pleasant for writing code blocks and for folks on mobile

peak lily
foggy stirrup
#

hi, thanks

rugged root
#

Well

#

By disabled I mean just removed write permissions for everyone

plucky delta
#

bro's an admin bruh

#

what cant he do

rugged root
#

The controls for the built-in channels are actually really crap

#

There isn't a way to just straight up turn it off

sweet lodge
rugged root
#

Yep

sweet lodge
#

Interesting
I didn't think that'd work

rugged root
#

There isn't a disable read

#

Unless they changed it, one sec

sweet lodge
rugged root
#

Best I can do is disable the "Send Message" permission for the internal channels

plucky delta
#

hemlock give me helper pls

rugged root
#

Not how that works

foggy stirrup
#

I'm learing to code since 2 years but I don't see any advance on it, I get stuck with every problem, how much do you think I should practise to code better in JS?

plucky delta
#

welcome to the club

#

you have to get stuck on some problems

plucky delta
foggy stirrup
#

like this

rugged root
#

So there's a bit of a difference between doing code challenges like this and doing programming (at least in my eyes)

plucky delta
#

not a bit a fucking lot

#

i hate these impractical challenges

foggy stirrup
#

and it's worse because I'm not a native English speaker

plucky delta
#

same man

rugged root
#

Crap, I'll be right back

plucky delta
#

just do regular projects

rugged root
#

I'll talk about it more when I get back

plucky delta
#

ok

foggy stirrup
#

k hemlock

plucky delta
#

anyways @foggy stirrup do some projects

plucky delta
#

real world problems will

foggy stirrup
#

the problem is when you try to get a job hahaha

#

they send you those problem from hackerank

plucky delta
#

dont gotta worry about that

zenith radish
plucky delta
#

what is that

gentle flint
foggy stirrup
#

glasses?

zenith radish
plucky delta
sweet lodge
foggy stirrup
#

beard sorry

plucky delta
#

@zenith radish bro your graphics card is proprietary

#

your cpu as well

#

how are you gonna eat tho

foggy stirrup
#

mac is better for graphic design

plucky delta
#

if everything is open source then whats the point of being a SOE

#

๐Ÿ’€

#

oh yeah

#

let me print money from the sky

#

do i look like the federal reserve

#

yeah but if its open source im not paying anything

#

and sure as shit nobody is paying

peak lily
#

I think neither is true, we want big companies investing on developing cool tech and most big investments only worth it if it's closed...

but now that something super hard to do is already exists, it's easy for open source community to replicate it... it goes in cycles...

plucky delta
#

i mean idk what am i

#

i dont pay for open source or proprietary software

peak lily
#

you are the product!

plucky delta
#

xD

#

god i love torrents

#

is openssl like letsencrypt?

#

oh alright

#

whats the point of ssl anyways

foggy stirrup
#

I'm going to have lunch cya later

plucky delta
#

like if i dont have ssl on my site my packets are transmitted in clear text?

peak lily
#

but if money is not something that you value that much, then university is worth it to learn things (assuming no-one is forcing you to learn, and you want to DO IT)

plucky delta
#

so anyone can just scan the whole internet and see what sites dont use ssl and steal credit card info from it?

#

thats crazy

terse needle
#

I don't need university to learn

plucky delta
#

why isnt ssl enforced completely then

peak lily
terse needle
plucky delta
#

whats the easiest way possible to get a ssl certificated setup for me automatically

#

alright new biz idea

#

im gonna rent a vps and scan the whole internet for data

#

and sell the data

peak lily
#

it's an echo chamber, they think their work is more valuable than others!

plucky delta
#

@zenith radish but they pay good no?

#

whats the pay looking like?

#

MBA

#

ugh jobs are depressing

rugged root
#

Back when I get in the van, delivery run time

plucky delta
#

emacs vs neovim

rugged root
#

Code or proper?

plucky delta
#

who

rugged root
#

AF

plucky delta
#

what

rugged root
#

Was assuming he meant Visual Studio

plucky delta
#

naw

#

OH yeah

#

does anyone know how i can push to github and get my code deployed to my server?

#

like make and build a docker image and deploy a docker container every time i commit

#

like heroku or github pages

quasi quiver
#

well

#

can i get screen share acces?

plucky delta
#

no

plucky delta
quasi quiver
#

i dont feel like someone gunna see my messages

quasi quiver
plucky delta
#

hes the guy who sells admin perms for 1k usd

quasi quiver
#

im not tryna go into FBI building why getting acces is so hard?

quasi quiver
magic coyote
#

People abuse it. So we're careful about giving access.

plucky delta
#

yeah but its supervised no?

#

we have an admin with us

wary pier
magic coyote
#

Yes, and it's mod or admin that has to grant the permission

quasi quiver
wary pier
magic coyote
quasi quiver
magic coyote
#

So it requires a mod or higher to be in chat while someone streams

quasi quiver
#

then how should i ask someone about my fails while i was codding

magic coyote
#

So few people use voice, let alone stream. It hardly makes the server useless. Don't be so dramatic.

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

quasi quiver
#

i wanna work together

plucky delta
#

and yesterday

quasi quiver
magic coyote
#

People can't be trusted

plucky delta
#

its really not that deep man

quasi quiver
#

im sorry

magic coyote
#

Lashing out at me is a sure fire way to never get stream perms

quasi quiver
#

but i really need to screen share in this server

plucky delta
#

ask hemlock

quasi quiver
quasi quiver
plucky delta
#

@rugged root

quasi quiver
#

i can use this apps if i have someone to code together

#

i can find people here to code together

#

meh it sounds like im wasting my breath

plucky delta
#

ye i can help

#

@vocal basin you from france

#

jemappel

#

where you from?

#

im not racist dont worry

#

RUSSSIA

#

i love russia so much man

#

@midnight agate me

#

yes

#

yes

#

lets do it

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

zenith radish
viral oak
#
import discord
from subprocess import call
from config import Zela

intents = discord.Intents.default()
bot = discord.Bot(
    intents=intents,
    debug_guilds=[947187565537161296]
)


@bot.event
async def on_ready():
    print(f'Logged in as: {bot.user.name}')
    print(f'ID of {bot.user.name} is: {bot.user.id}')
    print('------------------------------------------')


@bot.slash_command(description='Starting Gamma Server')
async def start_gamma(ctx):
    await ctx.respond('Gamma is starting...')
    call(["python", "Gamma.py"])


@bot.slash_command(description='Starting Epsilon Server')
async def start_epsilon(ctx):
    await ctx.respond('Epsilon is starting...')
    call(["python", "Epsilon.py"])


bot.run(Zela)
wise cargoBOT
#

Popen.send_signal(signal)```
Sends the signal *signal* to the child.

Do nothing if the process completed.

Note

On Windows, SIGTERM is an alias for [`terminate()`](https://docs.python.org/3/library/subprocess.html#subprocess.Popen.terminate "subprocess.Popen.terminate"). CTRL\_C\_EVENT and CTRL\_BREAK\_EVENT can be sent to processes started with a *creationflags* parameter which includes `CREATE_NEW_PROCESS_GROUP`.
zenith radish
#

@midnight agate

#

how

#

about

#

that

#

code

#

review

terse parrot
#

i think so

#

when you input wrong hours

#

like

#

6:20

#

its suposed to print like its not time to eat

#

yea i just forget the 2nd paragraph cause i cant understand what they want

#

~so i just try to make it work anyway

#

yea but i think its not worth it

#

i just realised that im dumb

#

how i can say that if 7<h<8

#

if h is a int

#

not a float

viral oak
#

Gamma = await asyncio.create_subprocess_shell(["python", "Gamma.py"])

#

SyntaxError: name 'Gamma' is used prior to global declaration

#

s

whole bear
#

@runic plank use this text channel to talk

runic plank
#

okk

whole bear
#

๐Ÿ‘

runic plank
#

I'm not allowed to use my mic in the voice chat 0

#

okk thx

#

I'm going to watch an anime, good night

whole bear
#

bye good night

tulip plover
#

@robust lichen

#

def collatz(number):
while number > 1:
if number % 2 == 0:
return number // 2
elif number % 2 != 0:
return 3 * number + 1
else:
print("input a number" )
x = int(input('Enter a number: '))
collatz(x)
print(x)

#

Enter number:
3
10
5
16
8
4
2
1

whole bear
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

thin breach
brave pewter
#

!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]+!![]

#

(+[![]]+[+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+(+!+[])+(+[])+(+[])+(+[]))])[+!+[]+[+[]]]

whole bear
#
alias m="python manage.py"
mortal crystal
whole bear
#

@robust lichen

mortal crystal
#

supdate = sudo update

whole bear
mortal crystal
#

@tulip plover

tulip plover
#

Collatz Sequence

#

def collatz(number):
while number<1:
if number % 2 == 0:
return number // 2
else:
return 3 * number + 1
num = int(input('Enter number:' ))
print(collatz(num))

south torrent
#

yes i know

#

what up?

#

you know python good??

#

good

#

i want t learn some library in python you have any advice what?

#

i want to learn machine learning

#

you can write the name here?

somber heath
south torrent
#

thk

#

what you do in python?

#

this is pretty cool

#

what is your level in python?

#

?

#

are you here?

somber heath
south torrent
#

how much time yo used python

#

i click on the link you just sent you make this picture with python?

#

wow five i am only a few mouth

#

i feel like this now

#

how much time its take to do more fun stuff with python In your opinion

#

i write a code but its just a console code