#voice-chat-text-0

1 messages · Page 48 of 1

whole bear
#

nice

honest torrent
#

basics in c as well but doesnt really count

whole bear
#

i code in c go py js bash some typescript i know nodejs also webdev

honest torrent
#

nic

#

nice

whole bear
#

my main language is js

#

and c

honest torrent
#

how long do u spend coding everyday?

whole bear
#

uhhm

#

12 hours

somber heath
#

@jagged trail 👋

honest torrent
#

damn

whole bear
#

but since i play valorant its like 4 hours

honest torrent
#

dedication is unreal

honest torrent
jagged trail
#

@somber heath 👋

whole bear
#

im addicted now :/

honest torrent
#

used to be addicted to wz

#

now im playing rl for some reason

whole bear
#

cool

#

i started with agario

#

back in the days

#

such nice game

honest torrent
#

still play it on unblocked sites on school computers

whole bear
#

i helped them a lot with design skins

#

but agario was sell to miniclips

#

but back in the days i was working with agario

honest torrent
#

nice

whole bear
#

@honest torrent do you know how to change my username of val?

honest torrent
#

no clue

whole bear
#

rip this name sucks

honest torrent
#

lol whats ur user

whole bear
#

some random name baroz

honest torrent
whole bear
#

im going to google it

honest torrent
whole bear
#

Crazy cat

#

Man is sleeping on my chair

honest torrent
#

😂

honest torrent
vocal basin
#

"we do have the budget, but its allocation would first require an approval", said AF
"this was a lie", said narrator

whole bear
frosty star
#

haay

obtuse hatch
#

im actually considering going to the opposite way

naive dew
#

yo

#

so iv sent alot

#

of messages and it still doesnt let me

#

speak

whole bear
#

Xd

warm jackal
#

@winged hinge

vocal basin
#

am trying to do some "journalism"

#

mic's working

winged hinge
vocal basin
#

@naive dew what's the question?

#

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

vocal basin
#

or

#

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

vocal basin
#

do you need to store the data on disk?

naive dew
vocal basin
#

sqlite allows both storage and querying/counting

#

!d sqlite3

wise cargoBOT
#

Source code: Lib/sqlite3/

SQLite is a C library that provides a lightweight disk-based database that doesn’t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. It’s also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle.

The sqlite3 module was written by Gerhard Häring. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249, and requires SQLite 3.7.15 or newer.

This document includes four main sections:

vocal basin
#

may be overcomplicated for the task though

somber heath
#

@steel tendon 👋

#

@brave mica 👋

frosty star
somber heath
#

@odd geode 👋

odd geode
#

hi

#

was trying to show the tiny python project for my minecraft server plugin quests generator, in which having issues

vocal basin
#

why is brain hurting so bad
like, I look at the posts in #1035199133436354600, I understand how simple most of the questions are but can't help with any

#

I have bought 6 copies of tabletop simulator total, iirc

winged hinge
#

hello @somber heath

#

heylo @rugged root

quasi condor
whole bear
#

Hello people !

#

Didn't want to interrupt Hemlock !

quasi condor
stray niche
winged hinge
#

Heyluuuuuu @stray niche

#

Heyloooo @warm jackal

#

How was your trip to the doctor?

#

I want to join the vc but my friend is singing me his songs hehe

#

once he is done singing his songs to me I will chime in hehe

warm jackal
#

x) Hey @winged hinge, survived, still alive =)

stray niche
#

Byee 👋

winged hinge
#

@stray niche come over to my place I made potato fries

stray niche
vocal basin
winged hinge
#

you can take any national highway and can reach to my place @stray niche

#

@warm jackal want some fries?

quasi condor
warm jackal
winged hinge
#

I need to learn how to hold a chopstick

whole bear
#

halllo

winged hinge
#

henluuuu @whole bear

#

how is thy?

whole bear
vocal basin
quasi condor
#

@stray niche playing a board game called Fluxx if you want to join

quasi condor
#

you didn't miss out on much

stray niche
quasi condor
#

we did - it just wasn't a great game for playing online

rugged root
#

Thought you'd enjoy it

#

@quasi condor Quick and easy

#

The game is, too

gentle flint
#

I'd consider fluxx to be more of a card game than board game tbh

rugged root
#

It is

#

Charlie is just a silly goose

quasi condor
#

things like playing rock paper scissors, sliding your hands to your neighbour etc, just feel more fun in paper

#

I'm like 95% sure I'd enjoy playing it in person

somber heath
#

@atomic agate 👋

atomic agate
#

sorry i cant talk i don't have per

#

hi

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

Not like Betrayal where you have all those little cardboard tokens to pop out

robust lichen
sweet lodge
tulip plover
#

hi

cerulean crater
#

Lol how do I get to chat in VC?

tulip plover
#

#voice-verification

#

you see it

sweet lodge
wise cargoBOT
#

Voice verification

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

tulip plover
#

@cerulean crater

whole bear
#

ahallo

terse needle
#

mental outlaw is one of my favourite *nix channels

#

and cooking channel

cerulean crater
#

Hey sorry, I see it now yes.

cerulean crater
tulip plover
#

you dont

#

just spam !voice

cerulean crater
#

ahhh

#

even better

#

Thx

#

Where tho

tulip plover
#

you have mic now

cerulean crater
#

here or in the other channel

tulip plover
#

here

cerulean crater
#

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

tulip plover
#

spam it

cerulean crater
#

ahhh

tulip plover
#

that is what I had to do\

cerulean crater
#

i see what youre saying

wise cargoBOT
#

failmail :ok_hand: applied mute to @cerulean crater until <t:1672358598:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).

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

cerulean crater
#

im back from the dead

#

@tulip plover if i send those 50 msgs back n forth with you i can meet the requeirments

tulip plover
#

ok

lucid blade
molten bronze
#

hi need help

#

i want to execute my environment

vocal basin
#

or something

winged hinge
#

@lunar haven Mental outlaw is the only based content make on youtube after luke and muta. I like his content. His dwm patches used to be good.

winged hinge
molten bronze
#

no is solved

winged hinge
#

cool

vocal basin
#

imo, one of the main reasons why in C it takes more lines to do anything has in most cases to do with the worse module integration/composability
unlike Python/Rust, you can't "just install" a library to do things for you

p.s. it's probably more about semantic units not just lines; line are also affected by syntax, after all

#

C is 1970s

#

you can compose different parts written in C but only if those parts use same rule subset

vocal basin
#

50 years ago

#

at the start it didn't have structs

#

some don't come from C
there are still also lisp and algol-based languages

vocal basin
#

so added them

vocal basin
#

same year

#

1972

#

and development began in the same year as C (1969), allegedly

somber heath
#

@dark cairn 👋

dark cairn
#

hi hello i am getting an error can anyone help me with the codes i wrote

#

I do not know English much

#

wait bro

somber heath
#

What is the error?

dark cairn
#

import cv2
import numpy as np
import serial
import time

Myserial = serial.Serial('COM3',9600)

face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')

cap = cv2.VideoCapture(0)

while True:
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
for (x,y,w,h) in faces:
cv2.rectangle(img, (x,y), (x+w, y+h), (255,0,0), 2)
roi_gray = gray[y:y+h, x:x+w]
roi_color = img[y:y+h, x:x+w]
eyes = eye_cascade.detectMultiScale(roi_gray)
for(ex, ey, ew, eh) in eyes:
cv2.rectangle(roi_color, (ex, ey), (ex+ew, ey+eh), (0,255,0), 2)

cv2.imshow('img', img)

if (len(faces)) == 0:
Myserial.write(b'\x0101')
print ("No face is detected")
elif (len(faces)) == 1:
Myserial.write('1')
print ("Face is detected")

k = cv2.waitKey(1) & 0xFF == ord('q')
if k == 27:
break

cap.release()
cv2.destroyAllWindows()

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.

somber heath
#

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

vocal basin
#

you are using str instead of bytes apparently

#

at least that's what the error says

vocal basin
# dark cairn

you have the b in the first write but you are missing it in the second

dark cairn
#

thanks bro mission completed

#

❤️

vocal basin
#

@quaint oyster 👋

#

attended some CTFs

#

I have no use for ChatGPT

#

it itself can't innovate yet

#

like, it's made to replicate

#

you can't ask it for a new solution
but it can help you make one

#

also, important:
not only does it replicate the code, it also replicates the bugs

#

so in cybersecurity it's still extremely weak

#

ask it to do AES in python and you have a vulnerability already

#

because of timing attacks and memory usage tracing and all that

#

did anyone else use the PC?

#

do cookies info contain the session expiry or session start timestamp?

#

why would anyone login to gmail though?

#

may be some collision on Google's part

#

TCP VPN or HTTP Proxy?

#

some http proxies break the cookies

vocal basin
#

not all though

#

yes it's tcp/udp

#

based on OpenVPN

#

OpenVPN being the most popular opensource VPN

#

depends on where you connect from

#

if your legislation forces them to store, they may store logs

#

they're bound both by hosting location legislation and customer's legislation
first one is usually non-existent if they know what they're doing
the second one rarely matters

winged hinge
sharp idol
#

hi

#

@somber heathok I've done it

warped raft
#

Hello @somber heath

sharp idol
#

@somber heath

stray niche
#

Byeee

sharp idol
#

I've reset it that's fake

#

who can help me

#

I've done that but it didn't work

#

yes

#

I've been through this before

somber heath
#

The beagle is a breed of small scent hound, similar in appearance to the much larger foxhound. The beagle was developed primarily for hunting hare, known as beagling. Possessing a great sense of smell and superior tracking instincts, the beagle is the primary breed used as a detection dog for prohibited agricultural imports and foodstuffs in qu...

proud venture
#

why i'm suppresed ?

chrome pewter
#
            if main_url in link and any(condition not in link for condition in ('.css','.java','.jpg','.jpeg','.png','.gif','.webp')):
#

@somber heath

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.

proud venture
#

got it opal i'm not yet eligible

#

here people wear it for good marks, for making money, BS things

#

😂

vocal basin
#

(even if you reset it, don't send it; people don't usually expect it to be non-reset)

vocal basin
sharp idol
pallid hazel
#

im wasting to much time trying to stylize stuff.. must move on and complete functionality and then go back and make everything look pretty if possible..
got stuck on trying to do stripping in a textarea using a jinja for loop.. guess it doesnt work 😦

#

rather to be more clear.. i have a textarea being populated by a jinja for loop and it wouldnt let me stripe it

sharp idol
#

hi

#

py -m pip install discord.p

cinder dawn
#

opal

long quiver
#

hello @cinder dawn

cinder dawn
#

hello

#

literally jus came back from being afk

#

life

#

how many chuggas are there before the choo choo

#

u know

whole egret
cinder dawn
#

chugga chugga choo choo

#

or chugga chugga chugga chugga choo choo

#

idk man jus thinkinh

#

tf is gofek doing

vernal geode
#

!voiceverify

long quiver
#

hey

#

@vernal geode

vernal geode
#

I am lost

#

Hahaha

long quiver
#

voice verify is on voice verification chat

#

ok?

vernal geode
#

Error

#

You are not currently eligible to use voice inside Python Discord for the following reasons:

• You have sent less than 50 messages.

#

This is message

long quiver
#

you have to kepp going with the sent messages

vernal geode
#

1

#

2

#

3

#

4

#

5

#

In this channel?

#

6

#

7

#

8

#

9

#

10

#

11

#

12

#

13

#

14

#

15

#

16

#

17

#

18

#

19

#

20

#

21

#

22

#

23

#

24

#

25

#

26

#

27

#

28

#

29

cinder dawn
vernal geode
#

30

#

I need sent 50 messages

cinder dawn
#

fair enough

vernal geode
#

I cannt speak whit microphone

#

Thanks :3

rugged root
#

!tvmute 350454808265883652 2w Do not spam in order to get voice permissions. It is stated as much in #voice-verification

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @vernal geode until <t:1673647834:f> (14 days).

rugged root
#

If you want to get the message count do it with real conversation not with spam.

somber heath
#

@whole bear 👋

whole bear
#
#!pip install -q pyscbwrapper
from matplotlib import pyplot as plt
#Bibliotek som innehåller ett API för att hämta data från Statistiska Centralbyrån 
(SCB):

from pyscbwrapper import SCB
scb=SCB("sv")
scb_data['data']
   #Du skall skapa funktionens parameterlista:
def generateGraphFile(?, ?, ?...)
    #denna funktion skall du skriva koden till.
def generateGraphData(scb, valueIndex, keyIndex):
    scbData = []
    scbData = scb.get_data()
    #Filter out metadata:
    scbFetchData = scbData['data']
    xData = []
    yData = []
    for i in range(len(scbFetchData)):
        yData.append(float(scbFetchData[i]['values'][valueIndex]))
        xData.append(scbFetchData[i]['key'][keyIndex])
    return xData, yData
#Alternativ 1: Antal invånare i Sverige mellan 2010 och 2021
scb = SCB('en','BE','BE0101','BE0101C', 'BefArealTathetKon')
scb.set_query(observations=["Population"], year = 
["2010","2011","2012","2013","2014","2015","2016","2017","2018", "2019", "2020", 
"2021"])
xData, yData = generateGraphData(scb, 0, 0)
generateGraphFile(?, ?, ?,....) #här sker anropet till funktionen som du skriver 
färdigt ovan. 
#

dont know where to go from here. i have 2 functions that i need to define yet i dont know thier function

rugged root
#

Do they mean like.... saving it to an image or something?

somber heath
whole bear
#

You're quite good at explaining @somber heath :D

somber heath
#

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

print(type(func))```

wise cargoBOT
#

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

<class 'function'>
whole bear
#

😆

#

Apparently discord is fine with it

#

It does write code and it hasnt got prompt blocks about discord bots

#

So it should be good

#

yeah

#

it does

#

2 datasets are downloaded from (SCB) and read into your program.
From this data, a graph should be created for each of these datasets and saved as 2
separate images. The image format must be "Portable Graphics Format" (png). This for
that the images can later be presented in a graphical interface in a simple way.

#

you can say your error and it will try fix it btw its very cool!

#

yeah hes right

#

well done echo guy :D

#

haha

lavish rover
whole bear
#

this is what im trying to do

whole bear
#

and honestly. im not good at it

lavish rover
#

🤷‍♂️ if you want to sound like you're god I guess

whole bear
#

someone with a mic tell him you can upload your errors and it will attempt to fix them

#

@somber heath im relitively new to python but im very very lazy u got any good ways to try learn python?

#

ok

somber heath
#

Corey Schafer YouTuber.

#

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

whole bear
#

Thanks!

#

@somber heath this guy?

#

Imma go thanks for your help!

terse needle
cinder dawn
#

i have work at 5am tomorrow

#

why am i still here

lavish rover
sweet lodge
#

cargo
Python
yert

somber heath
#

@grim tendon 👋

lethal bloom
#

I have 1 question

#

I ___(begin) work as soon as I arrived

#

i should write "have begun" or "began" ;-;

somber heath
#

Began.

lethal bloom
#

Can you explain it ;-;

somber heath
#

I began work. It has begun.

#

I began to expect that the worst had not yet begun.

#

I don't know the rules well enough to explain effectively.

lethal bloom
#

I think he can still work in the present then we should use "have begun",
Where am I wrong? :<

somber heath
#

We have begun the work. We began the work.

sturdy panther
#

"Begin" describes the transition from "not working" to "working". The transition happened in the past.

lethal bloom
#

oh thanks

whole bear
#

lala

somber heath
#

@bleak path 👋

tulip plover
#

What is the difference between copy.copy() and copy.deepcopy()?

#

@somber heath

#

what do you mean create new objects?

grim ocean
#

hey

#

can someone help with django login

#

@civic zephyr

tulip plover
#

!e import copy
original = [1, 2, [3, 4]]
copied = copy.deepcopy(original)
copied[2][1] = 5
print(original)
print(copied)

wise cargoBOT
#

@tulip plover :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [1, 2, [3, 4]]
002 | [1, 2, [3, 5]]
somber heath
#

!e ```py
import copy
a = [[]]
b = copy.copy(a)

print(a)
print(b)

a[0].append(123)
print(a)
print(b)```

wise cargoBOT
#

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

001 | [[]]
002 | [[]]
003 | [[123]]
004 | [[123]]
tulip plover
#

what

#

you made a copy

somber heath
#
a[0] is b[0]```
#
a is not b```
tulip plover
#

true

somber heath
#

!e py import copy a = [] b = copy.copy(a) print(a is b)

wise cargoBOT
#

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

False
somber heath
#

!e ```py
import copy
a = [[]]
b = copy.deepcopy(a)

print(a)
print(b)

a[0].append(123)
print(a)
print(b)```

wise cargoBOT
#

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

001 | [[]]
002 | [[]]
003 | [[123]]
004 | [[]]
vocal basin
#

btw, how does copy.deepcopy even work?

vocal basin
#

__copy__/__deepcopy__

somber heath
#

Something something recursion?

vocal basin
somber heath
#

I haven't picked it apart.

#

Creates a bunch of new objects, vs copying the references.

vocal basin
#

it just seems like a bad idea the same way as pickle does

vocal basin
somber heath
#

It's mostly for if you're mutating in the nesting of the data structure.

vocal basin
#

imo, providing .copy() method is somewhat better
like, explicitly saying this can be copied

somber heath
#

Mm. list has one.

#

But that's shallow, I think.

vocal basin
#

the thing containing the dict/list is to be responsible for copying it because "copying a list/dict" is ambiguous

#

idk what Rust does, btw

#

I'd expect the default for Vecs to be deep copy

vocal basin
#

so, to get shallow copy behaviour that would require T being Rc or Arc

#

(reference counter or atomic reference counter)

#

it's Clone not Copy, I forgot

#

it also clones the allocator which may sound weird

#

but that's in most cases a reference to the allocator not the value

#

&T with T instance somewhere upstack

potent carbonBOT
#
Command not found

Command "T" is not found

vocal basin
vocal basin
#

I'm currently also working with video codec stuff
but, like, reading Wikipedia not actually programming

vocal basin
#

x265 (HEVC) has lossless compression for video

#

they are rendering a video and choosing what to render it into
(I'm just advising them on what format to use)
I may later do some conversion on my own to change the codec if they can't render in the appropriate format

#

so probably python won't be involved

vocal basin
#

no, never used MP4Box

#

I myself mostly work with audio (opus)

whole bear
#

@lunar haven bro you’ve been there for 6hrs man 😭

vocal basin
whole bear
#

loll u remember the guy with the echo? sounded like a god lmfao

#

is it good?

#

how long?

#

ight man

#

what’s the time for u btw

#

yooo

#

that’s the mindset

vocal basin
#

I'm trying to do lossless AV1 with ffmpeg
it's not having fun

frame=   59 fps=0.5 q=0.0 size=       5kB time=00:00:00.93 bitrate=  42.1kbits/s speed=0.00867x
#

it's even getting slower and slower

vocal basin
#

ffmpeg does 100% load on two cores currently

#

I'll also do x265 in parallel

#

it uses 400% cores

#

and is faster somewhat

#

roughly 15 times faster

#

the output is broken

#

regardless of whether the codec is lossy or not

#

apparently, the thing I originally rendered is broken

#

or VLC is doing something weird

#

yes, my VLC is broken somewhat

#

ffplay works fine

vocal basin
vocal basin
vocal basin
vocal basin
#

is the .outf file closed somewhere outside of A1Mp4 class?

#

A1Mp4.Sample

#

or maybe self.Sample

vocal basin
warped raft
#

yeah

winged hinge
#

hey @lavish rover

lavish rover
#

hello

#
pip install -r requirements.txt
winged hinge
#
python3 -m venv env
#
source env/bin/activate
#
django-admin startproject <project-name>
vocal basin
#

there are two messages somewhere on this server that contain the meaning of the acronym

vocal basin
vocal basin
#

will probably just sleep more or less the whole day

#

currently editing LinkedIn profile

#

voice issues mostly

#

and dyslalia

#

no, never

#

it's audible

vocal basin
#

rice with chicken, actually

whole egret
vocal basin
vocal basin
#

@somber heath
"stochastic", a sophisticated way to say "unpredictable"?

somber heath
#

Chaotic.

vocal basin
#

the interesting thing is, there are both chaotic non-stochastic and non-chaotic stochastic processes

#

if the advice is on a specific topic it may, depending on the topic, be more acceptable
i.e. specifying the topic may increase chance of receiving advice

vocal basin
winged hinge
#

bye @somber heath

vocal basin
vocal basin
vocal basin
vocal basin
#

@nova prawn
for bots, it's asyncio not multithreading

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 'happy birthday' in message.content.lower():
await message.channel.send('Happy Birthday! 🎈🎉')

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

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

client = discord.Client()

@client.event 
async def on_ready():
    print('Bot is now online')
@client.event
async def on_message(message):
    if 'happy birthday' in message.content.lower():
        await message.channel.send('Happy Birthday! 🎈🎉')


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

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

the client.run is missing

#

client.run()

#

at the end

#

with the token as an argument

#

client.run("your token here")

#

okay

#

okay, then fine

#

what's the error?

wise cargoBOT
#

Using intents in discord.py

Intents are a feature of Discord that tells the gateway exactly which events to send your bot. Various features of discord.py rely on having particular intents enabled, further detailed in its documentation. Since discord.py v2.0.0, it has become mandatory for developers to explicitly define the values of these intents in their code.

There are standard and privileged intents. To use privileged intents like Presences, Server Members, and Message Content, you have to first enable them in the Discord Developer Portal. In there, go to the Bot page of your application, scroll down to the Privileged Gateway Intents section, and enable the privileged intents that you need. Standard intents can be used without any changes in the developer portal.

Afterwards in your code, you need to set the intents you want to connect with in the bot's constructor using the intents keyword argument, like this:

from discord import Intents
from discord.ext import commands

# Enable all standard intents and message content
# (prefix commands generally require message content)
intents = Intents.default()
intents.message_content = True

bot = commands.Bot(command_prefix="!", intents=intents)

For more info about using intents, see discord.py's related guide, and for general information about them, see the Discord developer documentation on intents.

vocal basin
#

you don't have message_content intent

stuck sky
#

nice name

#

@peak ice

sharp idol
vocal basin
#

@nova prawn it's a constructor not a decorator

vocal basin
#

replace client = discord.Client()

#

it may fix it

#

now

#

go to developer page

#

go to your app

nova prawn
#

intents

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

vocal basin
#

then to bot tab

#

find message content there

#

turn it on

vocal basin
#

then look react on happy birthday

sharp idol
vocal basin
# sharp idol

you don't check whether the message is from your bot

#

bot replies to itself

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

(just add the if clause)

vocal basin
#

the song's music video that people asked me to host in lossless MOV contains a line that can be translated as "2022, go fuck yourself"

gloomy bramble
#

Please accept my request @vocal basin

vocal basin
gloomy bramble
#

I want to work together

vocal basin
#

on what?

gloomy bramble
#

Python robot or project

vocal basin
gloomy bramble
#

what ?

vocal basin
#

what will it do?

#

or what do you want it for?

#

just for learning?

gloomy bramble
#

for fun

#

I am almost considered a beginner user

#

@vocal basin

vocal basin
# gloomy bramble I want to work together

if you need help with python, you can ask it in #1035199133436354600
if you need help with vs code, you can ask it in #editors-ides
I usually don't directly collaborate on projects with anyone outside of my companies
I can provide some advice on coding but I'm not going to write the code myself a lot if you want to have anything more long-term than a single help forum thread

#

I miscounted the companies
it's 3~5 not 1

somber heath
#

!e py print(~5)

wise cargoBOT
#

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

-6
vocal basin
#

ranges syntax is weird

#

A..B is widespread somewhat

gloomy bramble
#

please

vocal basin
# gloomy bramble please

you can start a project and come to me for help/advice; I will try to help when I can;
I'm not opposed to that

vocal basin
#

in the spirit of ~=

somber heath
#

@sharp rampart 👋

#

@junior current 👋

vocal basin
#

and [A..B] being the range

#

@somber heath
there are ways to "almost control" them but it's very unhealthy

#

like, it's achievable but no one should really try it

vocal basin
forest zodiac
#

hello @somber heath @winged hinge @vocal basin

vocal basin
winged hinge
#

Yeah @vocal basin

forest zodiac
#

some sort of therapy session going on

vocal basin
#

@somber heath
some acknowledgements are actually counter-effective short-term
for example, thinking "I have a panic attack" is one of the main panic attack-prolonging factors in some people

#

from what I know

#

sources: none; don't believe me

vocal basin
#

"I have to do something" vs "let's do something"

winged hinge
#

@vocal basin i mean that’s à pretty good trick to overcome the emotional thoughts

vocal basin
#

for the past ~20 months I have not had a single day without a constant stress
but I managed to accept that and found out that I can do amazing and fascinating things even when my brain is half-dead in this way

#

also, fun fact

#

I can and do help people that I hate

#

same acceptance thing

junior current
#

im back

winged hinge
#

hello back

junior current
#

hello r*2

vocal basin
#

oh, thanks Clyde bot for blocking eye meme

#

there'll be no meme

vocal basin
#

there've been two temporary streams with one moderator in the call
moderator watching over the streams:
imagine a meme here

somber heath
#

@quaint peak 👋

vocal basin
#

there's New Zealand accent
there are so much /i/'s there

quaint peak
#

hello

junior current
#

new years coming soon

#

@somber heath is 2023 the end of the world, tell us what its like in 2023

vocal basin
#

there's apparently been an updated version from 2 years ago

junior current
#

not being able to talk is pain

#

i have to type 50 messages to talk

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.

junior current
#

and i have to wait 3 days

#

pain

#

i agree

#

better have a verification system than not to

vocal basin
junior current
#

keeps the mic screamers out

#

and trolls

vocal basin
#

I've left this server once

#

either in 2021 or 2020

#

there should be an option to get unbanned if you can explain what happened

junior current
#

ban appeals

#

yea when you're banned you cant find the server unless sent an invite link

#

and even then you cant rejoin

#

you can only see the link

#

mhm

vocal basin
#

so far, the list of names I've been called as:
As Fuck
Aaron/AarofF
AFK
Auto Focus
Auro Focus
Aurora F?ckers (contributed by x10an14)

vocal basin
#

there's a background to that and there's the deacronymisation of that somewhere;
(what's the word for deacronymisation?)

#

those are initials and both are closely related to cryptography

sharp urchin
#

what comes to your mind when someone says "indian" @somber heath (honest opinion )

whole bear
#

D

junior current
#

sorry audio issues

#

rejoined

sharp urchin
#

lol

#

its still a thing

#

agree!!!!

#

@somber heath on point sire

#

quite good imagination u have got there...lmao

#

😂

#

hmm...

vocal basin
#

Vishy Anand; Pragg (I don't remember the full name sorry)
ohno, I forgot other chess players

junior current
#

brb

sharp urchin
#

yeh can understand

#

wait your Eu ryt? if m not mistaken?

vocal basin
#

🇦🇹

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.

vocal basin
#

I've looking for a meme I made some time ago and found it

#

shift+del does cut text

#

does not work on files unfortunately

vocal basin
#

ctrl+v doesn't usually bind to anything that bad

#

ctrl+c interrupts a program

#

shift+del deletes a file without even sending it to recycle bin

#

ctrl+x detaches a progress in some terminals

#

(iirc)

#

I do consider detaching more dangerous for beginner users than interrupting

#

was just about to say "just respond with some random anime term"

#

O(1) i.e. not unlimited

verbal gulch
#

im not sure why my green ring is on

sharp urchin
#

i am a new learner!!!!

#

teach me!

#

:{

#

you got a particular channel/website?

verbal gulch
#

idk

#

I am about to leave the voice chat, can I do one thing quickly?

#

It will only take 3 seconds

vocal basin
#

go ahead

verbal gulch
#

sorry

#

No I am

vocal basin
#

!d json

wise cargoBOT
#

Source code: Lib/json/__init__.py

JSON (JavaScript Object Notation), specified by RFC 7159 (which obsoletes RFC 4627) and by ECMA-404, is a lightweight data interchange format inspired by JavaScript object literal syntax (although it is not a strict subset of JavaScript 1 ).

Warning

Be cautious when parsing JSON data from untrusted sources. A malicious JSON string may cause the decoder to consume considerable CPU and memory resources. Limiting the size of data to be parsed is recommended.

json exposes an API familiar to users of the standard library marshal and pickle modules.

Encoding basic Python object hierarchies:

vocal basin
#

wait why are there two RFCs

vocal basin
#

!d json.load

wise cargoBOT
#

json.load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)```
Deserialize *fp* (a `.read()`-supporting [text file](https://docs.python.org/3/glossary.html#term-text-file) or [binary file](https://docs.python.org/3/glossary.html#term-binary-file) containing a JSON document) to a Python object using this [conversion table](https://docs.python.org/3/library/json.html#json-to-py-table).

*object\_hook* is an optional function that will be called with the result of any object literal decoded (a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict")). The return value of *object\_hook* will be used instead of the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict"). This feature can be used to implement custom decoders (e.g. [JSON-RPC](https://www.jsonrpc.org) class hinting).

*object\_pairs\_hook* is an optional function that will be called with the result of any object literal decoded with an ordered list of pairs. The return value of *object\_pairs\_hook* will be used instead of the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict"). This feature can be used to implement custom decoders. If *object\_hook* is also defined, the *object\_pairs\_hook* takes priority.
vocal basin
#
with open('file.json', 'r') as file:
    data = json.load(file)
vocal basin
somber heath
#

Corey Schafer, Youtuber, playlists, Python for beginners.

vocal basin
#

small as in less than 1GB, I'd say

#
import pathlib
import json

data = json.load(pathlib.Path("file.json").read_text())
#

so no messing with open and close

#

!d pathlib.Path.open

wise cargoBOT
#

Path.open(mode='r', buffering=- 1, encoding=None, errors=None, newline=None)```
Open the file pointed to by the path, like the built-in [`open()`](https://docs.python.org/3/library/functions.html#open "open") function does:

```py
>>> p = Path('setup.py')
>>> with p.open() as f:
...     f.readline()
...
'#!/usr/bin/env python3\n'
warm jackal
#

Happy new year's everybody! =D

neon kindle
neon orbit
#

@somber heath Happy New Year man!!!

#

Aye you're awake

whole bear
#

@tidal shard friends came in

#

gotta run !

#

c ya later !

tidal shard
tulip plover
#

print(str(['apples', 'bananas', 'tofu', 'cats']))

somber heath
#

!d str.join

wise cargoBOT
#

str.join(iterable)```
Return a string which is the concatenation of the strings in *iterable*. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") will be raised if there are any non-string values in *iterable*, including [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes") objects. The separator between elements is the string providing this method.
somber heath
#

!e py result = "*".join("iterable") print(result)

wise cargoBOT
#

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

i*t*e*r*a*b*l*e
somber heath
#
print(...)```
and
```py
print(str(...))```Would be roughly equivalent.
#

Remembering that strings aren't the only things in Python that are iterable.

tulip plover
#

@somber heath

whole bear
#

s

sturdy flame
#

hi

#

@rugged root want to join the voice chat?

somber heath
#

@limber iron 👋

limber iron
#

hey @somber heath happy new year to you as well

#

sorry mic forcibly muted cuz i guess i havent sent 50 messages

#

thats true

#

people really do that on a python server?

#

yeah i guess that makes sense

#

are you a dev?

#

true i guess i meant do you like to just develop as a hobby or do you work in tech or are you in school

#

that's nice what stuff do you like creating when not helping others

#

sounds pretty interesting

#

oh no

#

I've personally never gotten a bad answer from chatGPT but I've been seeing some stuff more frequently

#

yeah I saw some undergrad professors talking about it on reddit recently and they said they could tell when some students were using chatGPT for written assignments lol

#

brb

somber heath
#

Give the voice gate another go.

tulip plover
#

Say you have a list value like this:

spam = ['apples', 'bananas', 'tofu', 'cats']

Write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous spam list to the function would return 'apples, bananas, tofu, and cats'. But your function should be able to work with any list value passed to it. Be sure to test the case where an empty list [] is passed to your function.

#

spam= ['apples', 'bananas', 'tofu', 'cats']
for i in spam:
print(i, end=',')

#

spam[0:-2]

somber heath
#

!e py spam = 'apples', 'bananas', 'tofu', 'cats' print(spam[:-2])

wise cargoBOT
#

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

('apples', 'bananas')
somber heath
#

@hushed grotto 👋

hushed grotto
#

Hi

#

Whered that kid learn to code

somber heath
#

Hm?

hushed grotto
#

For how long u been coding

#

Yt or a sitw

#

Sitw

#

Sitee

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
somber heath
#
print(5)```
#
def func():
    print(5)

func()```Antipattern.
lavish rover
#

happy new years frens

somber heath
#

@smoky fulcrum 👋

smoky fulcrum
#

hey

#

how are you?

somber heath
smoky fulcrum
smoky fulcrum
somber heath
#

!e ```py
class MyClass:
pass

my_instance = MyClass()
print(my_instance)```

wise cargoBOT
#

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

<__main__.MyClass object at 0x7f46bc797d50>
somber heath
#

!e py print(int('7f46bc797d50', base = 16))

wise cargoBOT
#

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

139941786516816
somber heath
#

!d int

wise cargoBOT
#
int

class int(x=0)``````py

class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines `__int__()`, `int(x)` returns `x.__int__()`. If *x* defines `__index__()`, it returns `x.__index__()`. If *x* defines `__trunc__()`, it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.
tulip plover
#

_

vocal basin
#

there are a lot of different _s in python

#

one is even almost becoming a keyword (like in C#/Rust)

#

contextual keyword like match currently

somber heath
#

@whole bear 👋

#

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

one sec

somber heath
#

@robust lichen Audio issues?

vocal basin
#

I've talked with someone who uses python in a more or less industrial environment (embedded systems; real-time image recognition)
they also use asyncio in some applications and may be interested in using the database I'm currently developing

#

so even more need for writing the docs
(explaining both the usage and the inner workings in depth)

verbal gulch
#

@somber heath how long have you been in this chat for????

vocal basin
#

some applications are just fine with using key-value stores with no extra features

#

(if you don't count reliability and durability as "extra")

verbal gulch
#

my bad

vocal basin
#

!d turtle

wise cargoBOT
vocal basin
#

wait when did I lose my funny powershell formatting

vocal basin
#

one of the easiest cryptography libraries is PyNaCl

acoustic sable
#

it's pseudo-random

vocal basin
#

all non-quantum hash functions and ciphers are pseudo-random

acoustic sable
#

Warning The pseudo-random generators of this module should not be used for security purposes. For security or cryptographic uses, see the secrets module.

vocal basin
#

this is random module

acoustic sable
#

yes

#

yes

vocal basin
#

!d secrets

wise cargoBOT
#

New in version 3.6.

Source code: Lib/secrets.py

The secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.

In particular, secrets should be used in preference to the default pseudo-random number generator in the random module, which is designed for modelling and simulation, not security or cryptography.

vocal basin
acoustic sable
#

just want to do

vocal basin
acoustic sable
#

from my os?

vocal basin
#

namely os.urandom, which is the same thing that secrets module uses

#

!d os.urandom

wise cargoBOT
#

os.urandom(size, /)```
Return a bytestring of *size* random bytes suitable for cryptographic use.

This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation.

On Linux, if the `getrandom()` syscall is available, it is used in blocking mode: block until the system urandom entropy pool is initialized (128 bits of entropy are collected by the kernel). See the [**PEP 524**](https://peps.python.org/pep-0524/) for the rationale. On Linux, the [`getrandom()`](https://docs.python.org/3/library/os.html#os.getrandom "os.getrandom") function can be used to get random bytes in non-blocking mode (using the [`GRND_NONBLOCK`](https://docs.python.org/3/library/os.html#os.GRND_NONBLOCK "os.GRND_NONBLOCK") flag) or to poll until the system urandom entropy pool is initialized.
vocal basin
#

suitable for cryptographic use.

acoustic sable
#

thanks

vocal basin
#

@robust lichen
there's some sense to it
mostly because reverse shells and cryptography are both security-related

#

so, like, by some association one leads to another

robust lichen
#

just weird he wanted to do it in python

#

mostly

vocal basin
#

python is fine for cryptography if you don't implement cryptography part yourself

#

bytes objects by themselves and their interface with C don't leak data

#

(i.e. timing attacks are not the issue usually)

#

and things other than timing attacks are also not dangerous

#

but implementing that all yourself will get you in trouble

robust lichen
#

i just think encrypting things with other stuff then python seems like a better a idea

vocal basin
robust lichen
#

knew it

#

nothings ever truly python 😏

vocal basin
#

most of the actual useful and performant python is just bindings to C/C++/Rust/Fortran
except for maybe high-level concepts like asyncio which you just can't implement correctly and easily in any of the above except for Rust

robust lichen
#

im learning it and love it so far

vocal basin
# robust lichen i love c

some people consider learning Rust as somewhat more useful
but Rust is quite heavy from the theoretical standpoint
imo, it's one of the best languages designed so far, but it's in almost no way easy for beginners

#

being able to learn Rust as the first language is somewhat great (because it teaches the right approach to building system software) but I doubt it's possible

#

though in Rust you would at least not have to suffer from constant segfaults

vocal basin
chilly depot
#

anyone can help with creating func of polynomial? for example: 2In+A-3A^3+2.5A^4
with matrix

acoustic sable
#

girls

nova prawn
#

solidity

#

under

acoustic sable
#

like boss

#

asking angry from specific things

#

agriculture

nova prawn
#

major religion

acoustic sable
#

catholic I guess

#

ram

#

you're a coold dude

#

dm me

vocal basin
#

sometimes you should read through the whole docs of a module

vocal basin
#

there are definitely cases when "learn only because it's needed" fails

tiny socket
vocal basin
#

I have too little understanding to configure swap correctly

#

it's just sitting there at .2% usage

#

well

#

there are guarantees

#

if done correctly

#

in that case reads are fasts

#

but writes are slow

#

I right now have a thing that is in main-memory and that's consistent with disk

vocal basin
#

I sometimes do need quite performant stuff that's used only by me

vocal basin
#

I think I may try to optimise that thing sometime in the future
it currently translates character-by-character which is quite slow
using numpy to generate bytes with char arithmetic could be faster... or could be even slower
#voice-chat-text-0 message

somber heath
#

@dim nymph 👋

vocal basin
somber heath
#

@pliant girder 👋

vocal basin
pliant girder
#

Can't talk.. suppressed

vocal basin
#

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

vocal basin
sharp urchin
#

hello sir

winged hinge
#

brb yall

pliant girder
sour willow
#

nice

junior current
#

hello

sour willow
#

i dont know where you got this info from

#

most likely from your self

#

bs

sharp urchin
#

so i mean its kinda cool for the guy

sharp urchin
sour willow
#

twitter atleast for me doesnt work

#

website sucks now

#

but im very sure there havent been any breaches lately

sharp urchin
#

but it does take a lot of work to breach into their systems

#

innit?

sharp urchin
somber heath
vocal basin
#

Computer Science? Counter-Strike?

sour willow
#

CES

sharp urchin
pliant girder
#

who takes twitter serious in 2023

somber heath
#

So if you're in the VC when you get the role, you have to leave and rejoin.

sharp urchin
sour willow
#

i mean should suck like last year

#

but i mean there are some cool stuff this year

vocal basin
#

@whole egret
<t:1672584387:R>

#
<t:1672584387:R>
#

user bots are against ToS

#

you can already say "midnight for me is ... for you"

sharp urchin
#

whats the use of it though? lmao

vocal basin
#

there is official reference

molten pewter
#

<t:1647780120:t>

#

~<t:1647780120:t>~

vocal basin
#

\

#

use \

molten pewter
#

<t:1647780120:t>

vocal basin
#

or that yes

molten pewter
#

this is the time stamp tool.

#

<t::t>

vocal basin
#

@molten pewter
*climate change denier

#

<t:1672520400:t>

molten pewter
sour willow
#

100,000 deaths per terawatt hour?

#

whats a terawaat

#

is it like 1T J?

#

1Tb of j/s*60^2 is a shitton

molten pewter
#

yes, a terawatt is a trillion watts

#

It is a tremendous amount of energy.

sour willow
#

tremendous would be an understatement

#

On today's interplanetary spacecraft, roughly between 300 W and 2.5 kW of electrical power is required to supply all the computers, radio transmitters and receivers, motors, valves, data storage devices, instruments, hosts of sensors, and other devices. Cassini uses roughly 1 kW.

#

you can destroy mars with that lmao

#

( depends on how big that rocket is · an ion or arc thruster requires something in the range of 40000W/N at least )

molten pewter
#

New York Uses about 8 TW in a month.

celest oar
#

guys how do i make like a bigger sign?

#

dosent seem to work for me

whole egret
#

magiс girl told them to leave

#

what is wrong

vocal basin
whole egret
#

why everyone leaving

#

this person trying to make everyone hate me

#

im trying to talk with people he leaves and everyone following him

vocal basin
whole egret
#

they trying to bully without buling

vocal basin
winged hinge
#

@somber heath how’s the weather there? Is it cold?

stray niche
somber heath
vocal basin
#

the place that has seen the most of me speaking English

stray niche
#

Aurofocus

#

Or Autofocus

azure rivet
#

"As fuck"

somber heath
#

Or toe focus.

whole bear
#

can anyone recommend any other tech/code servers that have active voice chats

#

i see

#

no worries then

#

I need to socialise with coders and tech savvy people

whole egret
#

ne too

#

me too

vocal basin
whole egret
#

@molten pewter sorry i asked something personal

vocal basin
#

I should clip the video bcantrill saying "I'm not a bro; I'm not a bruh"

vocal basin
stray niche
#

Rithik

#

Rithicccc

#

Rithick

somber heath
#

@tired oar 👋

pallid hazel
#

anyone know of any flask oriented discords?

vocal basin
#

that phrase in the context of twitter reminds me more of Russian Foreign Ministry or something

#

that account

whole bear
#

this conversation is missing some AT

vocal basin
#

anti tank

whole bear
#

they took his soul

vocal basin
broken aspen
winged hinge
#

hor+ [above text on the cap]

whole bear
#

what is going on

broken aspen
whole bear
#

tp?

broken aspen
whole bear
#

lol

stray niche
somber heath
#

For the while.

#

New phone, new approach.

whole bear
#

new phone who dis

stray niche
somber heath
#

@crude sky 👋

crude sky
winged hinge
winged hinge
stray niche
#

Oh

#

Thank

vocal basin
#

CSS can't animate vector graphics, afaik
maybe it can

azure rivet
#

brb

vocal basin
#

I helped people to do CSS animations recently

#

so I remember it's possible

winged hinge
vocal basin
ornate ore
#

greetings

gentle flint
#

what you've posted is just a separate r and comma

#

could you post the ligature?

timber lake
#

hi i'm going good

#

Sorry i couldn't hear you well

#

i see i just reading about some topics in python

#

And you? Are you doing something ?

whole bear
#

def App():

  #Code

wind raptor
#

Learning Django.. I've put it off for too long

timber lake
#

Have you ever use fastapi?

somber heath
#

@daring needle 👋

daring needle
#

hi

#

Cant use mic"?

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.

daring needle
#

haha ok