#voice-chat-text-0

1 messages · Page 30 of 1

faint ermine
rugged root
#

🎶 Make a little birdhouse in your soul 🎶

trail mural
#

was spookier when it was loading in

undone idol
#

The only person with three eyes according to Vedas is Lord Shiva!

#

Many believe, that eye isn't open. https://en.wikipedia.org/wiki/Third_eye

The third eye (also called the mind's eye or inner eye) is a mystical invisible eye, usually depicted as located on the forehead, which provides perception beyond ordinary sight.In Indian spiritual traditions, the third eye refers to the ajna (or brow) chakra.The third eye refers to the gate that leads to the inner realms and spaces of higher co...

trail mural
#

laundmo what are your specs?

#

ty

rugged root
#

@cloud linden You can ask in here, brother

cloud linden
#

ops, mb

rugged root
#

All good, all good

faint ermine
#

fleischkäse

#

fleischkäseweckle

trail mural
#

that is thicc

faint ermine
trail mural
#

the meat looks like a slice of bread

#

need a banana for reference

#

how do you make meatloaf?

faint ermine
stray niche
#

brb

faint ermine
whole bear
faint ermine
#

Prompt: "mr hemlock"

#

@rugged root

pulsar island
novel tangle
#

Hey can you ping that website link which you were showing few minutes ago

pulsar island
#

from what I understand, even with nginx set, the flask web service still needs a port configured for nginx to forward to correct? im not crazy?

novel tangle
#

Ohk got it

stray niche
#

brb

novel tangle
#

I am trying to build an app to monitor malicious activities in smart contracts

#

any web3 expert here?

#

bye

whole bear
#

for you @tidal shard

tidal shard
#

for you @whole bear

whole bear
#

test

#

test

rugged root
stray niche
#

byeeee, imma try reading something and sleeping

tidal shard
rugged root
stray niche
whole bear
rugged root
#

@tidal shard We're getting a lot of background noise from your mic

#

!stream 575108662457139201

wise cargoBOT
#

✅ @rich moss can now stream until <t:1668189908:f>.

rugged root
tidal shard
#

@stiff meteor

trail mural
#

hi

#

that isn't very kind

#

just kind

lavish rover
#
print(((A:=lambda x:any(a==d and b==c and a!=b for a,b,c,d in zip(x,x[1:],x[2:],x[3:]))),sum(A(sn) and not(A(hn))for sn, hn in [(' '.join(p[::2]),' '.join(p[1::2]))for p in [__import__("re").split(r'\[([^\]]+)\]', line)for line in open(__import__("sys").argv[1]).read().split('\n')]]))[-1])
#

part 1 and 2 together:

print(*((A:=lambda x:any(a==d and b==c and a!=b for a,b,c,d in zip(x,x[1:],x[2:],x[3:]))),(P:=[(' '.join(p[::2]),' '.join(p[1::2]))for p in [__import__("re").split(r'\[([^\]]+)\]',line)for line in open(__import__("sys").argv[1]).read().split('\n')]]),sum(A(sn)and not(A(hn))for sn,hn in P),sum(any(a==c and a!=b and b+a+b in hn for a,b,c in zip(sn,sn[1:],sn[2:]))for sn,hn in P))[-2:])
unique wyvern
#

@rugged root

>>> A = re.compile(r"(.)(?!\1)(.)")
>>> A.match("ab")
<re.Match object; span=(0, 2), match='ab'>
>>> A.match("aa") 

two different characters --- can just reverse the two groups for palindrom

#
>>> A = re.compile(r"(.)(?!\1)(.)\2\1")
>>> A.match("abba")
<re.Match object; span=(0, 4), match='abba'>
>>> A.match("aaaa") 
>>> A.match("abab") 
rugged root
#

Huh

unique wyvern
#

there might be something simpler dunno, regex is never readable

sweet lodge
#

Regex is perfectly readable

#

(concession: as long as you don't get too complicated)

unique wyvern
#

we have different definitions of readable then

rugged root
#

I feel like I'm so close to having what I want

lavish rover
fallen wadi
#

hello guys

somber heath
#

@haughty dome 👋

ionic lake
#
  File "preprocessing/binarize.py", line 20, in <module>
    binarize()
  File "preprocessing/binarize.py", line 15, in binarize
    binarizer_cls().process()
  File "/content/diff-svc/preprocessing/SVCpre.py", line 29, in __init__
    super().__init__(item_attributes)
  File "/content/diff-svc/preprocessing/base_binarizer.py", line 55, in __init__
    if self.binarization_args['shuffle']:
TypeError: 'NoneType' object is not subscriptable
/content/diff-svc/data

WARNING: No more files
binary


Scan WARNINGS for files and folders:

binary : No more files
----------------
Scan WARNINGS: 1```
sacred elm
#
# Refactored code (Vocab Creation)
import math
def bow(sentence_1,sentence_2):
    a=sentence_1.split()
    b=sentence_2.split()
    vocab=list(set(a+b))

    vector_1=[]
    vector_2=[]

    for names in vocab:
        vector_1.append(a.count(names))
        vector_2.append(b.count(names))
    return vector_1,vector_2

print(bow("Enter an example text","Enter an sample text"))```
wise cargoBOT
#

@sacred elm :white_check_mark: Your 3.11 eval job has completed with return code 0.

([1, 0, 1, 1, 1], [1, 1, 1, 0, 1])
rustic mantle
#
import numpy as np

a = [1, 0, 1, 1, 1]
b = [1, 1, 1, 0, 1]

print(np.dot(a,b))
#

@sacred elm keep trying to solve it. I hope, you can do it.
See you

quasi condor
prime cliff
#

rip i can't speak

#

ò.ò

floral basin
#

how do i stream in vc?

quasi condor
#

a

atomic knot
#

@zenith radish I think fingerprint is like an identifier that doesn't change

whole bear
#

@lavish rover Can you remind me of that job search website you recommended me? I seem to have lost it.

lavish rover
#

ziprecruiter

#

there's a bunch like that

whole bear
#

thanks!

stuck furnace
#

👀

zenith radish
#

sleep time

somber heath
#

@ionic lake

ionic lake
#
  File "D:\DiffSVC\diff-svc-main\preprocessing\binarize.py", line 20, in <module>
    binarize()
  File "D:\DiffSVC\diff-svc-main\preprocessing\binarize.py", line 15, in binarize
    binarizer_cls().process()
  File "D:\DiffSVC\diff-svc-main\preprocessing\base_binarizer.py", line 137, in process
    self.process_data_split('train')
  File "D:\DiffSVC\diff-svc-main\preprocessing\base_binarizer.py", line 175, in process_data_split
    spec_max=np.max(spec_max,0)
  File "<__array_function__ internals>", line 180, in amax
  File "C:\Users\phill\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\fromnumeric.py", line 2793, in amax
    return _wrapreduction(a, np.maximum, 'max', axis, None, out,
  File "C:\Users\phill\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity```
somber heath
#

!e py import numpy as np np.max([])

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 2, in <module>
003 |   File "<__array_function__ internals>", line 180, in amax
004 |   File "/snekbox/user_base/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 2793, in amax
005 |     return _wrapreduction(a, np.maximum, 'max', axis, None, out,
006 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
007 |   File "/snekbox/user_base/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
008 |     return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
009 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
010 | ValueError: zero-size array to reduction operation maximum which has no identity
somber heath
#

@charred sleet 👋

charred sleet
#

@somber heath

#

hi there

#

thank god

#

i need a little help

#

regarding a python project

#

can you please help me though

#

this is for my school prohect

#

project*

#

ok

#

how can i share my screen

somber heath
#

!code if it fits

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.

somber heath
#

!paste if it does not

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.

charred sleet
#

here is the screen shot

#

now here

#

i want to extract the account number of the reg user

#

as i mentioned up there

#

like if krrish is the user

#

and he ask for account number

#

the python should print his account number that is saved in reg_id_info

#

sorry, i din;t hear that

#

@somber heath

somber heath
#

Please post your code as a Discord codeblock or in a pastebin.

charred sleet
#

ok

#

sounds new to me

somber heath
#

Instructions have been posted above.

charred sleet
#

alright! thankyou

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.

charred sleet
#

!paste reg_id = ['krrish' , 'leera' , 'vaidehi' , 'Dk sir']
reg_id_info = {'krrish' : '651234' , 'leera' : '798734' , 'vaidehi' : '234788'}
def anime():
print('.')
#need to do some work here
def intro():
print("Hello there this is your virtual assistent 'LMAO'")
sleep(1)
ask_name = input("please enter your registered name here: ")
if ask_name in reg_id:
print('hello' , ask_name)
inp1 = input("how can I help you today: ")
if 'account number' in inp1:

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.

charred sleet
#

bruhhhhh

#

this is not working or what?

somber heath
#

The !code and !paste bring up instructions from the bot to be followed.

somber heath
#

@azure stirrup 👋

azure stirrup
#

this server is not letting me talk or chat. i don't know why

wise cargoBOT
#

Voice verification

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

quaint oyster
#

You can chat, but not talk sultan

somber heath
#

Basically, because people are arseholes, and a voice gating system was the lesser of evils.

azure stirrup
#

I just joined. so, I have to meet all my requirements before I can access voice channel.

somber heath
#

The logistic map connects fluid convection, neuron firing, the Mandelbrot set and so much more. Fasthosts Techie Test competition is now closed! Learn more about Fasthosts here: https://www.fasthosts.co.uk/veritasium Code for interactives is available below...

Animations, coding, interactives in this video by Jonny Hyman 🙌
Try the code yourself...

▶ Play video
sharp idol
#

hi

#

I need help to create a discord bot every time I type a message it sends out its message
it's not supposed to it doesn't check the trigger word

lofty notch
#

Yea

sharp idol
#

can you show me how to do that

lofty notch
#

Oh no not me

#

I’m a beginner

sharp idol
#

import discord

lofty notch
#

You said upgrade to what

sharp idol
#

import discord

client = discord.Client()

@client.event
async def on_ready():
print('Bot is now online')

@client.event
async def on_message(message):

if message.author == client.user:
    return

if message.content == '!hello':
    await message.channel.send('Welcome to foxus server')

await message.channel.send('Hello there Welcome to our discord server 👋')

client.run(')

#

ok

lofty notch
#

I’m so confused rn

sharp idol
#

this code is only to test it

#

I didn't write it but somebody else did it

lofty notch
#

print("Mosh likes blue")
name = input('what is your name? ')
favorite_color = input('what is your favorite color? ')
state_name = input('what state do you reside in? ')
print(name + 'likes' + favorite_color +state_name)

#

the end result of this when i answer the question it smushes all the answers together how can i correct that

sharp idol
#

I just want to talk instead of typing

wind raptor
#
import discord

intent = discord.Intents.default()
intent.messages = True

client = discord.Client(intents=intent)

@client.event
async def on_message(message):
    if message.author == client.user:
        return

    if message.content.startswith('!hello'):
        await message.channel.send('Hello!')
        
    await message.channel.send('Hello!')
    
client.run('token')
lofty notch
#

like what

#

no im talking about what i sent

sharp idol
#

I've been on the server for years

#

ok

#

jo

#

j][

#

ok

wind raptor
#
print(name + ' likes ' + favorite_color + " " + state_name)
print(name, 'likes', favorite_color, state_name)
print(f'{name} likes {favorite_color} {state_name}')
lofty notch
#

whats the differnce between thesse three

#

whats the f stand for

sharp idol
#

I have a question can you put a discord bot on Raspberry Pi

#

can you link me to the tutorial

#

can you run in Docker

lofty notch
#

so are f strings just for making lists?

sharp idol
#

can you help me do that

lofty notch
#

like

#

print(f '{time} likes {money_lended} {debt_received} ' )

#

is that a good example

#

okay this stuff is complicated

sharp idol
#

is anyone going to help me

wind raptor
#

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

lofty notch
#

when i upload it in to python like the last way it says invalid syntax

#

f string invalid syntax

#

print(f'{name} likes {favorite color} {state_name}')

#

im sorry im asking so many questions i just started 2 days ago

sharp idol
#

I came here for help

wind raptor
#

!e

print("Mosh likes blue")
name = "Chris"
favorite_color = "Blue"
state_name = "CA"
print(f'{name} likes {favorite_color} {state_name}')
wise cargoBOT
#

@wind raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Mosh likes blue
002 | Chris likes Blue CA
lofty notch
#

damn this looks way cleaner than what i wrote

#

dude thank you i was tryna make that work for like an hour

wind raptor
#
data = data[data["long"] != 0]
lofty notch
#

was the name=input way just a more primitive way of what you did?

wind raptor
#
data = data[(data["long"] != 0) | (data["short"] != 0)]
somber heath
#

!resources @pulsar root

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.

lofty notch
#

whats the difference between print and input

somber heath
#

!e ```py
def func():
return 5

print(func())```

wise cargoBOT
#

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

5
lofty notch
#

you did a better job explaining that than my teacher

somber heath
#

The func() in the print being the call

#

The 5 in the function replacing the call.

#

As if I had instead writtenpy print(5)

lofty notch
#

ohhhhhh

somber heath
#

!e py a = print("Hello.") print(a)

wise cargoBOT
#

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

001 | Hello.
002 | None
somber heath
#

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

print(func())```

wise cargoBOT
#

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

None
lofty notch
#

so with the function you use numbers right?

#

gotcha

#

who me?

#

i just started 2 days ago 😭

somber heath
#

!e ```py
def func(parameter):
print(parameter)

argument = "Hello, world."
func(argument)```

wise cargoBOT
#

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

Hello, world.
lofty notch
#

so like

#

def func(money_spent):

#

print(money_spent)

#

you made that really understandable

#

are you a professor

#

i wanna get proficient

#

but idk what tutorials

#

i found it

somber heath
#

Corey Schafer, YouTuber. Playlists.

lofty notch
#

i gotcha

#

how long did it take you to get a grasp of python?

#

this is going to be a long journey

#

I picked to do this cause im tired of being broke

#

im happy i found this discord though

#

im prob gonna end upvtrying to learn java after this

#

my uncle just told me to learn python to start with

restive crater
#

hello

#

just listening cus u got a nice voice dont mind me lol

lofty notch
restive crater
#

ye all i can do is think about how to solve the question than apply it to the syntax

lofty notch
#

im a business major

restive crater
#

tru

lofty notch
#

birth_year = input('birth year: ')
age = 2019 - int(birth_year)
print(age)

#

is this correct?

#

i didnt know how to do current

#

true

#

okay

somber heath
#

!e py import random result = random.randint(1, 20) print(f"You rolled a {result}.")

wise cargoBOT
#

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

You rolled a 9.
somber heath
#

!e py import datetime now = datetime.datetime.now() year = now.year print(year)

wise cargoBOT
#

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

2022
lofty notch
#

woah you did that so fast

#

so you could do this for picking a random person out of a group?

somber heath
#

!e py import random people = "Julia", "Peter", "Alex", "Bjorn", "Sarah" my_choice = random.choice(people) print(my_choice)

wise cargoBOT
#

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

Peter
lofty notch
#

i gotta head to work in a second

#

i sent you a friend request opal thank you

#

😦

#

okay

somber heath
#

!e py things = "Apple", "Pear", "Orange" print(things) print(type(things))

wise cargoBOT
#

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

001 | ('Apple', 'Pear', 'Orange')
002 | <class 'tuple'>
somber heath
#

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

func("a", ("b1", "b2", "b3"), "c")```

wise cargoBOT
#

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

001 | a
002 | ('b1', 'b2', 'b3')
003 | c
restive crater
#

thanks for this @somber heath i gtg too

floral basin
#

i can't stream

#

it says "you can't stream into this channel"

wet verge
#

I wanna voiceverify

#

Please

#

Please

gentle flint
gentle flint
# wet verge I wanna voiceverify

Voice verification

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

lethal thunder
#

@hollow topaz chat here

hollow topaz
#

oh

#

i thought this was a live coding session

#

no all good i was hoping to watch some coders code

#

mb

#

good day

lethal thunder
#

@naive aspen

#

你好

naive aspen
#

hello

#

baby i cant talk

lethal thunder
#

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

hollow topaz
#

assburgers

lethal thunder
#

aspergers

hollow topaz
#

greta thudnerburg disease

#

assburgers

#

greta thunberg

lethal thunder
#

Aspergers

hollow topaz
#

Guys, I'm working a on a script that fetches text from images and stores the data from the images into a dataframe.

I'm currently using Tesseract to detect txt from images. Any other alternatives? Tesseract doesnt seem to detect small text from images

#

@nova prawn where are u frm in India

lethal thunder
#

hes from deli

hollow topaz
#

the oldest language in India is debatable

#

we were taught it was Tamil

#

in north india its taught that Sanskrit is the oldest

lethal thunder
#

हि

hollow topaz
#

we're u taught french scrublord?

#

i took french in year 11 and 12

lethal thunder
#

cool

hollow topaz
#

Asian?

#

Russian?

#

Australian?

#

Turkish?

#

Iranian?

#

agnostic?

#

here in India divorce is uncommon, so we find it too sensitive to talk about.

#

W mentality

lethal thunder
#

exactly

hollow topaz
#

lmaooo

#

what grade did that happen?

#

lol

#

opal how old are u if u dont mind me asking

lethal thunder
hollow topaz
#

what does that have to do with capitalism

#

The CIA collects information only regarding foreign countries and their citizens. Unlike the FBI, it is prohibited from collecting information regarding “U.S. Persons,” a term that includes U.S. citizens, resident aliens, legal immigrants, and U.S. corporations, regardless of where they are located.

#

from their website

#

yea i get watchumean

#

india

#

we're everywhere

#

lmaoo

#

bye cyber

#

even in india we have 2 divisions

#

CBI and CID

#

yea so whats the other branch do

#

right

#

nvm i thought i heard 2 departments for canada

lethal thunder
#

Csis

hollow topaz
#

got it

lethal thunder
#

canadian security intelligence sevice

hollow topaz
#

since ur an AI enjoyer

#

have u heard of Tesseract

rugged root
#

It's going to be a few moments until I'm back. One of the computers may or may not be possessed

dusk raven
#

k

rugged root
#

Email I got from my co-worker:

Subject: Is it possible....
That [former laptop owner's name here]'s possessed laptop can be “infecting” the function of my computer? I really do mean this. I have nothing but problems most the time when I try to connect to my computer with it. (I couldn’t again over the weekend.) When I come back from successfully using it or unsuccessfully but trying, I seem to have problems with my desktop.

#

Like

#

Like just

#

I'm pretty sure it's just her that's cursed

#

She's one of the folks that I ALWAYS have computer issues with, for no reason at all. She's not even doing anything wrong

dusk raven
#

Uff

whole bear
lavish rover
#

Amazing

somber heath
#

Howdy.

#

Pardon?

#

Well, same old, but shittier.

#

Tech woes.

lavish rover
#

At least you're not tech cursed

#

(refer to above conversation)

wooden latch
#

hi

#

pls give me permission

somber heath
wise cargoBOT
#

Voice verification

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

lavish rover
wooden latch
#

pls give me permission

#

BOT

#

pls

dusk raven
#

Bakkalaureus

#

Dr. sc. agr.

tough wind
#

h

#

i

trail mural
#

hi mr hemlock

wintry pier
#

@rugged root

#

missing things

trail mural
#

missing you 💔

wintry pier
#

in your database

#

@trail mural thinkmon

trail mural
#

f

#

💀

#

pineapple ornament

#

aged atleast 4 months

#

keep it near onions

#

this system works a lot of the time

sly gale
#

is some one here really into watches

quasi condor
#

Vimes

sly gale
#

does this seem like micro stutter in watch

sly gale
carmine ginkgo
#

someone main python here and i can send a dm

amber raptor
#

just ask your question

lavish rover
carmine ginkgo
#

its a bit more complex but how to get file path in python

lavish rover
#

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

carmine ginkgo
#

py generate_srt(access_key, '001.mp3' , srt_folder) in ctl ```py
def generate_srt(
access_key,
audio_path,
subtitle_path
):
anime = ProgressAnimation('Initializing Leopard with AccessKey %s' % access_key)
anime.start()
try:
leopard = pvleopard.create(access_key=access_key, model_path=None)
except pvleopard.LeopardError as e:
print("Failed to initialize Leopard with %s" % e)
exit(1)
finally:
anime.stop()

if audio_path is not None:
    if not os.path.exists(audio_path):
        print("`%s` does not exist" % audio_path)
        exit(1)

anime = ProgressAnimation('Transcribing `%s`' % audio_path)
anime.start()
try:
    # noinspection PyUnboundLocalVariable
    transcript, words = leopard.process_file(audio_path)
except pvleopard.LeopardError as e:
    print("Failed to transcribe audio with `%s`" % e)
    exit(1)
finally:
    anime.stop()

with open(subtitle_path, 'w') as f:
    # noinspection PyUnboundLocalVariable
    f.write(to_srt(words))
    f.write('\n')
print('Saved transcription into `%s`' % subtitle_path)
global SP 
SP = subtitle_path

download_folder = 'C:/Users/thema/Desktop'
srt_folder = 'C:/Users/thema/Desktop/CCA Beta/00_CCA_Beta'```

rugged root
#

@stray niche We are here and therefore have pingeded you

lavish rover
carmine ginkgo
#
0:0:10
0:0:10
Download complete for:  GET AFTER IT - Motivational Speech
C:\Users\thema\Desktop\CCA Beta\00_CCA_Beta\GET AFTER IT - Motivational Speech.mp4
Transcribing `001.mp3` .  Failed to transcribe audio with ``
PS C:\Users\thema\Desktop\CCA Beta\00_CCA_Beta> 
lavish rover
carmine ginkgo
#
    raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]()
pvleopard.leopard.LeopardInvalidArgumentError

wintry pier
#

nice thema

carmine ginkgo
#

thanks 🙂

wintry pier
#

is a package exceptions

#

check what you miss

mossy cedar
#

i can cook cleann and defend my teammates

#

ooooooo i just remembered something

#

wanna see my highschoiol lab ? :3

rugged root
#

Sure?

mossy cedar
#

heres the cool part

#

Wait

safe pumice
mossy cedar
#

@rugged root found it

#

The coolest thing in my lab :3

lavish rover
rugged root
mossy cedar
rugged root
#

"decor"

mossy cedar
#

A katana

#

Bcz why not

#

100000000000$ for a band aid

#

Typical amurica

#

yes pls

#

aah!

#

pls figh fight my face

#

fist*

rugged root
#

Back in a bit

faint ermine
rugged root
#

Huh, hadn't seen this one before

lavish rover
#

Really? This one's pretty common no?

rugged root
#

@whole bear Of course you join as I have to go fix a computer

rugged root
whole bear
#

I shall wait for you!

wintry pier
#

= 50

lavish rover
#

!e

import random
random.seed(10)
for i in range(3):
    print(random.randint(0, 100))
random.seed(10)
for i in range(3):
    print(random.randint(0, 100))
wise cargoBOT
#

@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 73
002 | 4
003 | 54
004 | 73
005 | 4
006 | 54
gentle flint
#

kneidlach

#

@rugged root

rugged root
mossy cedar
lavish rover
quasi condor
lavish rover
whole bear
#

gtg, be back later

gentle flint
stray niche
#

brb

whole bear
#

cricket noises

#

tumbleweed tumbles by

mossy cedar
wintry pier
#

@stray niche

gentle flint
#

@stray niche

stray niche
wintry pier
#

@stray niche

gentle flint
#

@wintry pier

wintry pier
#

you said something

#

and i mention

#

you

#

is that hurt

stray niche
#

I asked why did you mention me

#

did you want to say somethings

wintry pier
#

not things just hi

stray niche
#

ok

tacit raft
#

how can I get started in learning python is youtube enough?

stray niche
#

!resouces

#

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

stray niche
tacit raft
#

thanks a lot @stray niche ❤️

wintry pier
#

@whole bear hello

#

@tacit raft youtube is not a source

stray niche
#

@gentle flint byeeeee

high nimbus
#

'''
Question 7
Write code to calculate Fibonacci numbers. Create list containing
first 20 Fibonacci numbers, (Fib numbers made by sum of preceeding
two. Series starts 0 1 1 2 3 5 8 13 ....)
'''

Number of fib numbers required

n = 20

Set a and b to the first two numbers in the sequence

a = 0
b = 1

List in which to store numbers

fib_nums = []

Use a for loop to create the sequence, repeat n times

for i in range(n):
fib_nums.append(a)
a,b = b,a+b

print(f'The first {n} Fibonacci numbers are, {fib_nums}')

#

can someone help me visualize a,b = b,a+b? I know it's a multiassingment statement and evaluates the right side first and then updates the variables on the left.

#

and what should be my thought process be like to come up with this solution?

lavish rover
#

!e

print([] is [])
print(id([]) == id([]))
wise cargoBOT
#

@lavish rover :white_check_mark: Your 3.10 eval job has completed with return code 0.

001 | False
002 | True
somber heath
#

@woeful salmon Yo

#

My normal.

#

Who is getting married?

woeful salmon
#

my cousin

somber heath
#

Been to a few of those. Cousin weddings.

#

I have a lot of cousins.

#

Yes, well, beyond a point it gets a bit muddled.

#

As soon as you start having to use the word "removed".

#

Or "th/nd/rd cousin"

#

My problem is not one of time but of inspiration and spoons.

#

Also brain rot.

#

Howdy.

#

I miss having functioning technology.

#

Yes. That things wear out is a design flaw.

#

Are they camelCasers?

#

Phone.

#

Yes.

#

...worse?

#

ew.

#

Just print out a copy of PEP8, highlight the section of naming conventions and sneak it somewhere obvious for them to find.

#

Oh, nice.

#

"But if enough people join my server that means it's successful as a community!"

#

Self governance works on a small scale.

#

Macro...eh...

#

People probably just look through the helpers list on the right.

cerulean ridge
#

hi @wind raptor

whole bear
#

Supp guys

raven ore
#

Sorry I am a noobie here and cannot speak, need to hit 50 messages and wait for 3 days sad 😦

somber heath
#

deep inhale

#

OOOOOKLAHOMA!

wind raptor
somber heath
#

Chess?

#

Sweeney Todd.

#

People singing in a musical? Perish the thought.

#

There's different presentation formats.

#

People can get used to that.

#

If they don't, that's fine.

#

If they do, cool.

#

People have preferences...shocker.

sly gale
#

Failed Cluster Start: Failed to add one or more helper nodes: Node k3d-portainer-serverlb failed to get ready: error waiting for log line start worker processes from node 'k3d-portainer-serverlb': stopped returning log lines: bufio.Scanner: token too long: node k3d-portainer-serverlb is running=true in status=running

dusk raven
somber heath
#

Pizza studies?

#

I'm sold.

#

Sign me up.

woeful salmon
#

i'mma leave the vc for now cya guys later

somber heath
#

The UK had a bridge thing a while back.

cerulean ridge
compact yacht
#

hi

solid pond
#

@mint canyon yeah i am new that explain why i cant speak

#

meh

tulip plover
#

you use pygame @ashen wave

frigid talon
#

Scaling governors

short plank
frigid talon
#

ebpf

short plank
#
print(dna_seq)

dna_seq_length = len(dna_seq)


adenines_in_seq = dna_seq.count("A")

base_counts = {"A": adenines_in_seq,
               "C": dna_seq.count("C"),
               "G": dna_seq.count("G"),
               "T": dna_seq.count("T")
               }

print(base_counts)

percent_gc = (base_counts["G"] + base_counts["C"]) / dna_seq_length
print(dna_seq_length)
print(base_counts["G"] + base_counts["C"])

print(f"The DNA sequence GC content is ~ {round(percent_gc * 100, 1)}%.")

rna_seq = dna_seq.replace("T", "U")
print(rna_seq)


dna_fragments = dna_seq.split("GAT")
print(f"Digesting the DNA sequence with the mentioned restriction enzyme would result in the following: {dna_fragments}")
print(f"The DNA sequence was cut in {len(dna_fragments)} fragments. The last fragment is {len(dna_fragments[-1])} base pairs long.")

dna_fragments.append("TACGGCATT")

middle_dna_fragments = dna_fragments[1:5]

rebuilt_dna_plus = "GAT".join(dna_fragments)  # The 'GAT' motif had been digested and needs to be added back!
print(rebuilt_dna_plus)



primers = ("AGCTGATG", "TTATTCGT", "TAGTGTCG", "ATGCGTAT")  # My order may not be the same as yours but it should no take any difference to solve the exercise
print(primers)
print(primers[::-1])


indeces = [dna_seq.find(primers[0]), dna_seq.find(primers[1]), dna_seq.find(primers[2]), dna_seq.find(primers[3])]

five_primer_index = indeces.index(min(indeces))

three_primer_index = indeces.index(max(indeces))

print(f"The best primer pair would be {primers[five_primer_index]} and {primers[three_primer_index]}, since they produce the longest sequence.")

sharp flame
#

@wary meadow Append to file, overwrite file, pipe to program as stdin?

#

It's also pronounced lin-uhx

#

not line-uhx

#

@wary meadow What Calc level are you taking?

#

@whole bear Nice I also use ArchLinux!!

short plank
frigid talon
#

TinyWM is a tiny window manager that I created as an exercise in minimalism. It is also maybe helpful in learning some of the very basics of creating a window manager. It is only around 50 lines of C. There is also a Python version using python-xlib.

#

uname -a

lavish rover
#

yakitate japan

frail star
#

hey

somber heath
ashen wave
#

My game is to hard i only made it to 44$

mortal sundial
#

Im going to learn to code that

ashen wave
#

what?

#

is something wrong?

#

no

#

how?

#

it isnt possible

#

you cant make a discord mp4 crasher

#

Hiya, Barbie
Hi, Ken
You want to go for a ride?
Sure, Ken
Jump in
I'm a Barbie girl, in the Barbie world
Life in plastic, it's fantastic
You can brush my hair, undress me everywhere
Imagination, life is your creation
Come on, Barbie, let's go party
I'm a Barbie girl, in the Barbie world
Life in plastic, it's fantastic
You can brush my hair, undress me everywhere
Imagination, life is your creation
I'm a blond bimbo girl in a fantasy world
Dress me up, make it tight, I'm your dolly
You're my doll, rock'n'roll, feel the glamour in pink
Kiss me here, touch me there, hanky panky
You can touch
You can play
If you say, "I'm always yours" (ooh, oh)
I'm a Barbie girl, in the Barbie world
Life in plastic, it's fantastic
You can brush my hair, undress me everywhere
Imagination, life is your creation
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)
Make me walk, make me talk, do whatever you please
I can act like a star, I can beg on my knees
Come jump in, bimbo friend, let us do it again
Hit the town, fool around, let's go party
You can touch
You can play
If you say, "I'm always yours"
You can touch
You can play
If you say, "I'm always yours"
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)
Come on, Barbie, let's go party (ah ah ah yeah)
Come on, Barbie, let's go party (ooh oh, ooh oh)

#

nono

ashen wave
scenic charm
#

Hey, can someone help me on an simple flask task that I need to finish, its very simple but im kinda rusty, im currently on 'code/help' voice chat

kind wharf
rugged root
#

@somber heath HAI OPAL

somber heath
#

Yahoy.

rugged root
#

Be back in a sec, just calling a co-worker

undone idol
#

bahamas lol

somber heath
#

and a partridge in a pear tree

#

It's the kind of thing I would hope there's licensing for.

#

Bread as a service.

#

You pay for a monthly subscription for bread.

#

Silican't valley.

undone idol
#

what about the funds.

gentle flint
rugged root
#

Hop to it, boyo

quasi condor
amber raptor
#

Screenshot for actual Python backend

terse needle
#
(extern printf Void Str ...)
(extern exit Void Int)
(extern deref Int &Int)
(extern element Int &Int Int)
(extern add Int Int Int)

(fn f [x: Int y: Int] Int
    (add x y))

(fn main [] Void
    (define x #(1 123 2))
    (printf "%d %d %d\n" (f (element x 0) (element x 1)) (element x 1) (element x 2))
    (exit 0))
#

125 123 2

somber heath
#

Do humans like to play the computer games?

#

Then I, too, will enjoy the playing of computer games.

#

What headgear?

#

Like those bus tip tests.

#

"Hey! Nerd!" BOOSH!

gentle flint
#

As a scientist in the field of climate physics and dynamics you will contribute to the physical understanding of climate change based on mathematical modelling of physical processes and in particular on the physical understanding of abrupt changes in the physical system associated with threshold behavior of its subsystems that can act as tipping elements when certain thresholds are exceeded and subsystems possessing multiple equilibria given a certain forcing/climate background state can be pushed to a new equilibrium.

somber heath
#

Hemlock...we're sharing a brain again.

#

Single person.

quasi condor
terse needle
#

@zenith radish

somber heath
#

How do you code complicated thing here?
Oh, easy, I just do this this this this and this.
How do you send e-mail?
...I put my pants on!

#

Do you suppose ents have lumbering gaits?

rugged root
#

HA

#

Okay, that's really good

rugged root
#

@fierce summit How've you been?

fierce summit
# rugged root <@494575788377636874> How've you been?

I'm good. I'm trying to find a solution for a problem. I hate javascript but I want to create a game a dueling game, that has some graphical elements, and I want to make it so that it has a leaderboeard too. And I don't know how to make that in javascript (I mean the leaderboard part), so I'm looking into python + javascript, and pyscript

#

I thought about making the game in scratch, then use a website to turn it into html, I just don't know if the leaderboard (which would be a list) would stay and work like it should, or it would reset every time the page is loaded or reloaded

rugged root
#

There's just a lot in JavaScript. So what engine is this using? I'm confused on that part

#

Like what frameworks, libraries, etc

fierce summit
rugged root
#

That can make life way easier compared to just vanilla

#

That's a good one for example

#

@whole bear

#

Yooooooooo

whole bear
#

@rugged root yooooooo long timeee! How have you been buddy?

rugged root
#

Been alright, was on vacay for a week. Feel slightly refreshed but not super

#

Better than nothing.

#

'bout you?

whole bear
#

Man I hope it gets easier for you, you've got thiss

rugged root
#

Mainly just stress working about Joi. She still has the tachycardia issues

#

Although she's better than she was

#

Still anxious about it

whole bear
whole bear
rugged root
#

Doesn't have a lot of choice, honestly. Standing up and heading to the bathroom spikes her heart rate up to like ~120 bpm

whole bear
hazy phoenix
#

i need

#

50 messages

#

to use my voice in general chat

#

this is

#

my fifth message

rugged root
#

I guess that works

#

Doesn't feel like a ternary though

#

Too wordy

#

Fair

#

Yeah, fair

#

Python is the weird one right? true_return if condition else false_return? Or am I misremembering... Haven't been able to code much lately

#

Can't remember how JS does it

#

Oh right right

#

I don't know why but you feel really familiar

#

True

#

Just feels less explicit

#

Like we should care whether something is true or false before we care about what we're getting from it

#

Both have their own merits I suppose

#

Just boils down to personal preference

#

Fair

#

More functional style

steady token
#

sorry i was busy

#

im from brazil

quasi condor
echo glade
#

you'd need a PC for starters

half echo
#

should you use type hints in python?

echo glade
#

one has a larger penis

half echo
#

what is the converwstaion here

#

haha

mild quartz
#

examples?

half echo
#

language barrier?

#

thanks

#

type hinting has me running into a lot of issues with circular imports

echo glade
#

apprenticeships

half echo
#

Infact circular imports in general are miserable to work with

echo glade
#

ha

#

knew it

dusk raven
#

Fachinformatiker Anwendungsentwicklung

echo glade
#

i cant believe he just said it

half echo
#

haha

quasi condor
half echo
#

Union[Dict[str, Any], List[Any], int, str, float, bool, Type[None]]

quasi condor
#

That's not playing nice

echo glade
#

paid well?

half echo
#

search is a algo

#

the tree is a struycture

#

A structure is used to store data

quasi condor
#

MyPy doesn't support recursive types

#

Or didn't for a time

half echo
#

recursive definition

#

BS does not need to use a BST

echo glade
#

hi

#

astaghz

#

unlucky dude. hope youre OK

#

LIES!

#

looool

#

@mossy cedar what are your plans for the immediate future re: employment?

mossy cedar
#

scholarship

echo glade
#

python conversations somehow made more sense

mossy cedar
#

i just want a suger mommy

#

be cute and be paid sounds sooo good

rugged root
#

Yeah that sounds creepy

mossy cedar
rugged root
#

No no, more you saying it out loud

#

But I think that's just me

mossy cedar
echo glade
#

more what?

dusk raven
rugged root
#

What do you mean?

#

As in you're just getting a bunch of spam stuff?

echo glade
#

jamming

#

@whole bear its not underground

#

no, i was there tho

#

msi ds502 - surprisingly good

#

4

#

WRONG CHOICE

kind wharf
rugged root
#

So for something like....

ham   bacon   pork
eggs  steak   spam
#

You need to find out if say "eggs" is in column index 1?

#

!stream 603965701988024361

wise cargoBOT
#

✅ @kind wharf can now stream until <t:1669145506:f>.

rugged root
#

!d collections.defaultdict

wise cargoBOT
#

class collections.defaultdict(default_factory=None, /[, ...])```
Return a new dictionary-like object. [`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict "collections.defaultdict") is a subclass of the built-in [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") class. It overrides one method and adds one writable instance variable. The remaining functionality is the same as for the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") class and is not documented here.

The first argument provides the initial value for the [`default_factory`](https://docs.python.org/3/library/collections.html#collections.defaultdict.default_factory "collections.defaultdict.default_factory") attribute; it defaults to `None`. All remaining arguments are treated the same as if they were passed to the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") constructor, including keyword arguments.

[`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict "collections.defaultdict") objects support the following method in addition to the standard [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") operations:
rugged root
#
{1: ["Tim", "Tom"], 2: ["Nathan", "Tim"]}
mossy cedar
#

stupid internet

echo glade
#

give us the highlights

#

cant all be BS?

#

5

rugged root
echo glade
#

@rugged root i was responding to the guy saying he read 400 books and theyre all BS

rugged root
#

My bad

rugged root
#

!e

x = "3"
y = int(x)
shadow sable
#
x = "3" + "3"
print(int(x))```
gentle flint
#
x = "3"  # this is a string
print(x+x)  # this will print 33
y = 3  # this is an int
print(y+y)  # this will print 6
#

str(3) will return "3"
int("3") will return 3

shadow sable
#
import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print(f'Logged on as {self.user}!')

    async def on_message(self, message):
        print(f'Message from {message.author}: {message.content}')

intents = discord.Intents.default()
intents.message_content = True

client = MyClient(intents=intents)
client.run('')```
rugged root
#

pip3 list

restive geyser
#

yes? lol

#

trying not to die

shadow sable
shadow sable
rugged root
#
spam = (
  "Ham is cool\n"
  "Just sayin'.\n"
)
shadow sable
rugged root
#

!d textwrap.dedent

wise cargoBOT
#

textwrap.dedent(text)```
Remove any common leading whitespace from every line in *text*.

This can be used to make triple-quoted strings line up with the left edge of the display, while still presenting them in the source code in indented form.

Note that tabs and spaces are both treated as whitespace, but they are not equal: the lines `" hello"` and `"thello"` are considered to have no common leading whitespace.

Lines containing only whitespace are ignored in the input and normalized to a single newline character in the output.

For example:
rugged root
#

It's so good

wise cargoBOT
#

@vocal basin :warning: Your 3.11 eval job has completed with return code 0.

[No output]
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

3\x
amber raptor
#

!e python import uuid print(int(uuid.uuid4()))

wise cargoBOT
#

@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.

1417635219753266151025334773965329772
trail mural
#

Hi there!

somber heath
#

Howdy howdy.

#

I'm just experimenting with some hacky audio stuff.

#

We're living on the edge!

somber heath
#

I'm Australian. I've been fooled by a NZ accent, before.

#

UK is distinct enough for my ears.

#

The thing with NZ accents is that, if it's not very thick, unless certain sounds are present, they do sound very similar.

#

Bogong moth?

trail mural
#

Creatonotos gangis

somber heath
#

Mm. Those organs aren't unique to Australia.

#

The branching organ.

#

I think it's a scent emitter or something.

#

Something to do with scent.

#

The bloodworms?

#

Are they parasites?

#

I don't think they are.

#

They're just kind of...vomiting their stomach out to eat.

#

Or something.

trail mural
somber heath
#

Oh, those things.

#

Yeah, they're pretty brutal.

#

The assert keyword is used pretty much exclusively in unit tests.

#

Given something falsy, assert will raise an exception.

#

Given something truthy, assert will not raise an error.

#

asserts can be disabled at runtime, so it's unwise to rely on them for program logic

vast light
#
d0 = Duree(0,0,0)
d1 = Duree(10,20,59)
d2 = Duree( 8,41,25)

# FONCTION POUT TESTER LA METHODE __str__ DE LA CLASSE Duree
def test_Duree_str() :
    assert d1.__str__() == "10:20:59", "Test 1 Duree __str__"
    assert d2.__str__() == "08:41:25", "Test 2 Duree __str__"
somber heath
vast light
#
def delta(self, d):
        return self.sec_total - d.sec_total
#

assert delta(d1,d2)

somber heath
#

0 is falsy

#

nonzero is truthy

#

Meaning if your return is 0, assert will raise an exception

#

If it is nonzero, assert will not raise an exception

#

Specify the circumstance.

#

You're instantiating with 0, 0, 0 and 10, 20, 59, etc...

#

That's setting up those objects to behave in a certain way when you call __str__

#

Also, self?

#

Is delta a function or a method?

vast light
#
class Duree :
    def __init__(self, h : int = 0, m : int = 0, s : int = 0):
        self.heures = h
        self.minutes = m
        self.secondes = s
        self.to_secondes()

        self.heures = (self.sec_total // 3600) % 24
        self.minutes = (self.sec_total // 60) % 60
        self.secondes = (self.sec_total) % 60

        
    def to_secondes(self):
        self.sec_total = self.heures * 3600 + self.minutes * 60 + self.secondes
        return self.sec_total

    def delta(self, d):
        return self.sec_total - d.sec_total

    def apres(self, d):
        if self.sec_total > d.sec_total:
            return True
        else:
            return False

    def ajouter(self, d):
        self.sec_total += d.sec_total

    def __str__(self):
        return f'{self.heures:02}:{self.minutes:02}:{self.secondes:02}'
somber heath
#

Right, so in the call, you'd only be giving it d as an argument.

#

Not d1 and d2

vast light
#

``py

somber heath
#

If you knew what the outcome of self.sec_total - d.sec_total was supposed to be...

#

Then you'd check for that

#

That's your job as the programmer.

#

To know what your code ought to be doing.

#

Excuse me, I'm sneezing my face off.

#

brb

trail mural
#

bless you

somber heath
#

hssss!

dusk raven
#
a = Duree(s=10)
b = Duree(s=5)

assert a.delta(b) == 5
somber heath
#

Hemlock: Okay, brb, I just got to the office.
60 minutes later...
Hemlock: So, this printer opened up a portal to hell and the walls started bleeding, so I had to clean that up.

#

hai

#

I can see that being a thing in the event of a swarm.

#

Like where they're all bunched up on a branch or something.

#

We can drink the tapwater here just fine, but the taste does vary from suburb to suburb.

#

Bear or bare?

#

Both?

somber heath
#

The company might try to penalise the worker for not doing work, arguing they're still on a business trip.

swift valley
#

G'evening

rugged root
#

Yoooooooooooooooooooooooooooooooooo

swift valley
#

Currently playing through Persona 5 Royal

rugged root
#

Such a good game

swift valley
#

I gotta get used to the camera though

swift valley
rugged root
#

Well yes

#

It's an RPG

swift valley
#

True

#

It could be just that I've really only played RPGs on the GBA

#

Not on any modern system

#

Even then, the exposition dumps on those games are pretty long

willow lynx
#

Is there any good tutorial on implementing xgboost

rugged root
#

Fair

dusk raven
swift valley
#

I've a lot to look forward to in terms of games this 2023

rugged root
#

That's magical

trail mural
#

💀

dusk raven
rugged root
#

Fair

#

Amend isn't that bad, honestly

#

Done it quite a few times. Granted the only time I've been comfortable doing it was when I was using Sublime Merge

#

Made it easy to do

#

They can send it to NASA

#

That'd be cool

#

Take my data and just fuckin'..... shoot it into space

#

Let any aliens who intercept it use it as they please

#

Eh, orgy makes sense in this context

#

True

#

But I don't think it's the case for this one

#

brb

sweet lodge
shadow sable
#

Mr Hemlock

#

I need some help

rugged root
#

Sup

shadow sable
#
import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print(f'Logged on as {self.user}!')

    async def on_message(self, message):
        print(f'Message from {message.author}: {message.content}')

intents = discord.Intents.default()
intents.message_content = True

import discord
from discord import app_commands


# the @app_commands.guilds and @app_commands.default_permissions decorators (also including checks) can be used above the class.
# these will apply to ALL subcommands, subcommands cannot have invidual perms!
@app_commands.guild_only()
class Group(app_commands.Group):

    # subcommand of Group
    @app_commands.command()
    async def my_subcommand(self, interaction: discord.Interaction) -> None:
        await interaction.response.send_message("hello from the subcommand!")

    # nested group command
    group2 = app_commands.Group(name="group2", description="This a nested group!")

    # subcommand of group2
    @group2.command()
    async def my_second_group_command(self, interaction: discord.Interaction) -> None:
        await interaction.response.send_message("hello from the second subcommand!")


# unlike commands.GroupCog, you need to add this class to your tree yourself.
tree.add_command(Group())

client = MyClient(intents=intents)
client.run('token here')``` What do I have to fill in?? because tree.add isn't defined and this is from github.
#

The slash command

#

code

#

Im not sure how to fix it

gentle flint
#

why have you imported discord twice

rugged root
#

I'm not sure, actually. I haven't messed with slash command stuff. #discord-bots would be able to help better than I

gentle flint
#

Did you copy two separate bot codes and just paste them one after the other?

shadow sable
gentle flint
#

if you're using slash commands, why are you still watching on_message?

gentle flint
#

it's not defined, actually
that is precisely the problem

gentle flint
# shadow sable Wdym

on_message is usually used so that the user can call the bot by sending a messqage

#

if you're using slash commands, why are you still watching all messages

shadow sable
#

Wait where does it say that

gentle flint
#
class MyClient(discord.Client):
    async def on_ready(self):
        print(f'Logged on as {self.user}!')

    async def on_message(self, message):
        print(f'Message from {message.author}: {message.content}')
shadow sable
#

Oh

gentle flint
#

why are you watching on_message

shadow sable
#

I dont know what that even is Im just copy and pasting code Idk what any of that means

mild quartz
#

compensate in equity

rugged root
gentle flint
shadow sable
#

Not that advanced in python

gentle flint
#

because you have multiple mistakes in there

shadow sable
#

Fuck!

gentle flint
#

you never defined your tree, but then you try to add commands to it while it doesn't exist yet

shadow sable
#

So what does tree equal?

gentle flint
#

quick question first

shadow sable
#

the github doesn't show

gentle flint
#

have you ever followed a python course?

shadow sable
#

Yea

gentle flint
#

and did you understand all the code you wrote?

shadow sable
#

Programming with mosh python 6 hours only got to like 1 hour 30

mild quartz
#

my god i wish i could buy twitter stock

gentle flint
#

Find a python course, finish it

#

discord bots are not a good place to start sadly

shadow sable
#

Oh mayyyan I was looking forward to making a bot 😦

gentle flint
#

they're quite complicated in some respects

gentle flint
shadow sable
#

Someone told me it's a good learning experience if I learn how to make discord bots

gentle flint
#

you need to at least know somewhat what you're doing

gentle flint
#

you aren't learning

#

you're blindly copying and pasting unrelated pieces of code, without knowing what it does, and being surprised when it doesn't work

#

that is not the way to learn

shadow sable
#

Damn

#

What's a class?

gentle flint
#

Find a course, finish it, do a basic small project

#

then come back to bots

shadow sable
#

Alright

gentle flint
#

sorry if it sounds a bit rude, but this isn't helping you either

#

well

#

you need to know what you are copying

#

because otherwise you get precisely the mistakes above

#

with duplicate definitions, missing variables

#

etc

shadow sable
#

Ima just find a new course for python

gentle flint
#

good idea

#

and finish it

shadow sable
#

programming with mosh kinda dookey and I dont want to restart it

gentle flint
#

there's a whole list in the resources

shadow sable
#

ima just find 1 made like a month or 2 ago

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.

shadow sable
#

My friend told me it's better if I read python books or a website called w3 schools

rugged root
#

From our resources page, I typically recommend A Byte of Python and Automate the Boring Stuff

#

Both are pretty solid

shadow sable
rugged root
#

Nah, things like books and guides and videos, etc

gentle flint
#

things to learn python with

shadow sable
#

Ohhh ok

gentle flint
#

which hemlock also recommended above

shadow sable
#

I found automate the boring stuff do I click book?

rugged root
#

Nah, if you scroll down on the page

#

Like 2/3 of the way, you'll see the table of contents

#

Both of these are free on their respective sites

gentle flint
#

scroll down to here

shadow sable
#

I see this

gentle flint
#

click it

shadow sable
#

Ok

gentle flint
#

then scroll down

shadow sable
#

OHHH I KNOW THIS BOOK MY FRIEND GAVE IT TO ME

gentle flint
#

good

shadow sable
#

Table of contents

#

Click python basics?

gentle flint
#

sure

rugged root
#

And if you have questions or need clarification on these kinds of things, feel free to ask

shadow sable
#

Alrighty

rugged root
#

We're always happy to guide people

gentle flint
#

if you don't yet have python installed and working you should start with the intro first

#

cuz it goes through that

rugged root
#

They've got 3.9 on mac

shadow sable
#

Oh I have VS code and pycharm but I dont use VS code cause IDk how it works

gentle flint
shadow sable
#

3.10 is a thing?

gentle flint
#

yes

#

also 3.11

rugged root
#

3.11 is out

shadow sable
#

Ima read this book after school

rugged root
#

But it's a bit... finicky on mac I think

shadow sable
#

History boring 🥱

rugged root
#

Like you have to make sure that you don't overwrite or mess with your Mac's Python instance. Mac uses Python to run all kinds of stuff in the background, so messing with that can cause issues. I'm not 100% sure how to properly mess with new Python installs on Mac

#

I'm mainly a Windows guy

shadow sable
#

Do you suggest I just stick to 3.9?

#

how to update

rugged root
#

Let me find a good guide on it

shadow sable
#

Alright

#

I have to go now to my next class math

rugged root
#

No worries, we'll likely be around

shadow sable
#

Alrighty

#

cya

shadow sable
#

les goooo

sweet lodge
#

Speaking of vasectomies

rugged root
#

Double checking, though

rugged root
#

Oh huh

shadow sable
#

whats that

rugged root
#

Probably better to just do that

shadow sable
#

Oh yeahhh I forgot about their installer website

rugged root
#

I just didn't realize mac even HAD a universal install

#

Genuinely

#

@sweet lodge 👋

sweet lodge
#

I'm a Microsoft consultant

rugged root
#

I'm an insultant

sweet lodge
#

Am probably too opionionated

sweet lodge
#

Rust!

rugged root
#

You US based?

#

You're not deployed are you?

#

Mainly just hoping you're safe

shadow sable
#

So I had a quick question. yesterday someone (outside from the discord) threatend me with "spreading redflags onto my hardware" Does anyone know what that means?

rugged root
#

Which is surprising with all the videos we've seen where they're literally dragging people onto the buses

rugged root
shadow sable
rugged root
#

If you're comfortable with that sure

shadow sable
#

Ik what hes saying is not true but im just wondering what red flags are

#

Whats that

rugged root
#

Not entirely sure. I'm pretty - HA, well done AF - sure he's just full of shit and doesn't even know what he's saying

shadow sable
#

Nah

#

No no like red flags onto computer hardware

rugged root
#

Again, I don't even know if that's a thing

shadow sable
#

I searched up what red flags are yesterday im not sure if it's what it means but im guessing it has something to do with making you download a fake software and having it popup with fake "you got 3 virus press SCAN to remove them" type of things

rugged root
#

I'd just block him and ignore him

shadow sable
#

These things

shadow sable
rugged root
#

That's just a regular ol' phishing or virus scam

#

The term red flag on your hardware (as far as I know and as far as I can find) mean nothing

shadow sable
#

Oh ok

rugged root
#

Eh

#

I suppose

#

Also, I fucking love minesweeper

#

Like

#

A lot

#

I don't know why

#

Oh like the hidden emoji thing?

#

Nah

#

That's..... actually a thing?

#

That's amazing

#

Eh, these seem to be specifically about speed

#

I'm just for enjoying it in general

shadow sable
#

I wanna get better at chess

#

I suck

rugged root
#

You're exposing me to a whole new world of minesweeper I didn't even know could be

shadow sable
#

Do yo have to be exepcionally good at math to work as a computer engineer?

#

you*

#

Alr

rugged root
#

Depends on your field

#

But in general, programming is more about logic than math

#

This leads to this leads to this