#voice-chat-text-0
1 messages · Page 762 of 1
im stuck at twitter
edge is keep trying to login its not stopping
its wrong password or something
import fastapi
import uvicorn
import threading
from api import images, words
from views import main
api = fastapi.FastAPI()
def configure():
api.include_router(main.router)
api.include_router(images.router)
api.include_router(words.router)
configure()
if __name__ == "__main__":
uvicorn.run(api, host="0.0.0.0", port=80)
@router.get("/", include_in_schema=False)
async def index(request: Request):
return templates.TemplateResponse("index.html", {
"request": request,
"word": await word_of_the_day(),
"image": await image_of_the_day(),
})
@router.get("/countdown", include_in_schema=False)
async def countdown(request: Request):
return templates.TemplateResponse("countdown.html", {
"request": request,
"image": await image_of_the_day(),
})
can anyone help me out i got a twitter issue i dont know where to ask for help
As someone who sucks at web design, my experience was more from observing and doing
@molten tinsel https://griff-site.herokuapp.com/docs
People like familiarity, it's not evil to take inspiration from things, just don't overdo it
edge is trying to login as me but its the wrong password or something but edge is not stopping its repeats to login again and again
and i closed and opened edge still its not stopping
I hope so, any suggestions for a starter
try a different browser
So each of the containers are a self-contained docker?
so this is image of the day
😄
well i cant cus chrome wont even barely run on my laptop
git clone git@github.com:Slushs/verificationbot.
Cloning into 'verificationbot.'...
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Try to familiarize yourself with common practices in the field. Learning CSS frameworks and different tooling works nicely as well
try on your phone
as w3.css looks easier
what is the error like incorrect password or ?
well yeah but i need to be able to use it in my laptop now
i cant even read it properly
its too quick
can you get a ss ?
This is more of personal preference but bare CSS is hell, something like tailwind makes designing things feel more human than hardcoding stylesheets themselves
tools ?
well that would be my most precise ss timing then
like are there modules or ??
No purring in voice chat 😄
so the site just reloads
for me its a nice feel to use bare css and explore what i can do
yeah
Tools shouldn't matter for now, but you'll come across them once you start to use npm
Well, for projects at least
👀
if you dont know what npm is its pip of js world
try clearing data of edge, other than that it's really hard to figure out
The amount of time I can spend browsing through Tailwind docs is about 99% less than me searching for bare CSS
yeah i think that is the way to go
I thought so
well i dont search for it i make it myself
I can't be bothered to set up editor integration nor am I interested in memorizing attribute names
HTML, I can excuse
It's markup
It has syntax
💯 , it's annoying the hell out of me
especially since I have been moving around in so many languages lately
Yeah I wasted too much time on that stuff @whole bear
But that's mostly because I'm useless at configuring software 
well it's been fun listening to you guys ✌️ ✌️
Adios 🙂
cogs/ -
|-> verification.py
main.py
.gitignore
salut Griff
Bonjour
Internet archive 😄
wayback machine inc
my fizzbuzz
Both, .cs is source, .dll is compiled
IT meeting, back in a bit
have fun
Probably will, honestly
@uncut meteor
Im making a twitter bot suggest a name pls hihi
what the seriously there is a name generator
imagine using that for finding a name for a baby
yeah
i could name my child google though
chittur bot
this is the name i came up with rn
oh no
i named mine ChwitterBot
!e print(ord("a"))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
97
!e print(chr(1))
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
97
lol
@sick cloud :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'char' is not defined
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
E
@rugged root https://aposymbiont.github.io/split-keyboards/
me too
are the code helpers mostly done for the night?
We have helpers across the globe! 😄
The sun doesn't set on PyDis.

^_^\
lol
@somber heath do u know about websocket shit
im tryna make an automated trade bot but dont understand the api im using
it does yes
but i cant find the specifics/put the pieces together
i wish i could screenshare u and talk to u what im tryna doi
but i dont have voice permissions
its web api
im trying to get historic data and apply that to create predictions
yes
basically
lotta math bs
but outside of the math is a basic websocket connection
to feed data into my python script
and i cannot figure out how to request specific data into my script
are you a cs major @somber heath
what made u want to learn coding then
im just curious
good for u
seriously
coding is the future
a big part
a part is an understatement lets be honestr
im not trying to be a motivational speaker but
i wouldve never learned coding being a finance major if i didnt feel it willl have relevance in the future
exponential growthj
@somber heath how many msgs do i need to use vc?
shit is bunk af
yeah dont understand that technical bs
import React from 'react';
import AddedTask from './AddedTask.js';
const getValue = () => {
let task = document.getElementById('taskinput');
console.log(task.value);
<AddedTask tasks={task.value}/>
}
const AddTask = () => {
return (
<div className="addtask">
<input type="text" id="taskinput" placeholder="what would you like to add?"></input>
<button id="addtask" onClick={getValue}>Add todo</button>
</div>
)
}
export default AddTask;
htop
sudo apt-get install -y docker
docker run -d --name=grafana -p 3000:3000 grafana/grafana
systemctl status docker
lines 1-21/21 (END)
sudo docker run -d --name=grafana -p 3000:3000 grafana/grafana
sudo docker ps -a
docker run -d --name graphite --restart=always -p 80:80 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 graphiteapp/graphite-statsd
sudo usermod -aG docker $USER
!paste
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.pydis.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.
you should try it @dense ibex 😛 try with linux mint
version: "3"
services:
# telegraf:
# image: telegraf
# restart: always
# environment:
# HOST_PROC: /rootfs/proc
# HOST_SYS: /rootfs/sys
# HOST_ETC: /rootfs/etc
# command: --config https://influxdb.yadamiel.com/api/v2/telegrafs/06b8fa042f2e7000
# networks:
# - internal
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro
# - /sys:/rootfs/sys:ro
# - /proc:/rootfs/proc:ro
# - /etc:/rootfs/etc:ro
# env_file:
# - telegraf.env
Derker cernterner!
environment:
- INFLUXD_CONFIG_PATH=/influxdbconfig/
killall -CONT nano
ps | grep nano
ps ugx | grep nano
Maybe we could ask Stelercus?
Ah, right 😄
what are you working on @dense ibex
ohhhh docker 😦 I have to get practice with that
Whats the name of the app?
Is it this? https://www.influxdata.com/
Vim! 😄
Nooo VIM, use gedit
VIM is great but its too much for the average guy
nano or gedit
Ok 😑
This guy does a whole conference with VIM https://www.youtube.com/watch?v=cKPlPJyQrt4
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and...
Freaking crazy how he cuts through this stuff working with python with VIM live
fucking crazy
Hey so back to my orginal question, why would you use InfluxDB?
my twitter bot is running now
I built a few bots for discord myself
PIL?
you can edit photos with PIL?
hmmmm, I thought it was only use to display images if needed
He might need a vpn right?
nope
Same Laundmo, I'm pretty sure I have a 25 hour body clock 😄
You need a daemon, or service.
Daemon is a cool word 😄
agree
how make a fake microphone input
FROM python:3.8
RUN mkdir /app
RUN pip install -r requirements.txt
COPY . /app
WORKDIR /app
CMD ["python", "main.py"]```
FROM python:3.8
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
COPY . /app
CMD ["python", "main.py"]
Dockerfile
version: '3'
services:
name:
image: my-project-name
build: .
restart: always
env_file:
- .env
discord.py==1.6
python-dotenv
he was giving u an idea
d
@faint ermine I ran into issues before attempting to push code to a prod server with github, the versions got screwed up. do you think this is best practice?
one of my OBS studio scenes
I have heard from more senior engineers that you should manually pull your main version from GIT and install manually
if git screws your versions, you have told it to.
hmmm, I thought this was a great idea, but when that happen I got nervous and started manually putting code onto the prod server
ahhhhhhhhhh, I see that was the part I screwed up on
sorry guys, my wife is listening to music so I have my mic off
its alright
But yeah, I have been doing a manual merge with "Meld" for my local environment. Its very basic but it works
i never hosted anything yet
so i have no idea what you talking about
and im bad at using github
@tall latch I never used it in conjunction with git yet, but just being able to have a copy on the prod server, and using an app like Meld to compare versions and push changes has been working for me...Since I'm running on Linux, I haven't figured out how to deal with permissions yet, but that's the only downfall to it
My goal is to be able to manage the code, and make updates with GIT, but when I roll code, just do it old school until I get more experience with how to manage GIT
Building name
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
Hire someone to setup CI/CD for you and you will no longer need to worry about deployment, only focus on development 
Continuous integration and continuous development/delivery. It's a DevOps practice.
@royal sphinx thanks for that, I never knew the short hand for it
I find it rough in my practice environment to keep upgrading things after I already have code running that I use everyday. I think this might hurt me in the long run though
Step 2/6 : WORKDIR /app
---> Running in 9e8e0975dead
Removing intermediate container 9e8e0975dead
---> b1703cd42fc5
Step 3/6 : COPY requirements.txt /app/requirements.txt
ERROR: Service 'name' failed to build: COPY failed: file not found in build context or excluded by .dockerignore: stat requirements.txt: file does not exist
that will do it
sorry guys, my wife is washing clothes lol
I can't win today lol
I am lol
just doing both
|ERROR: yaml.scanner.ScannerError: mapping values are not allowed here
in "./docker-compose.yml", line 4, column 10
@royal sphinx what are you talking about, i sent a few working docker-compose further up that map ports
My bad.
version: '3'
services:
name: verificationbot
image: verificationbot
build: .
restart: always
version: '3'
services:
verificationbot:
image: verificationbot
build: .
restart: always
@royal sphinx were you responding to voice? because you're in the chat for voice 0, but you are in voice 1
Nop
nice
alias dc='docker-compose'
alias dcl='dc logs -f --tail="100"'
alias dcb='dc build --parallel'
alias dcu='dc up -d'
alias dcx='dcb && dcu && dcl'
alias dcd='dc down'
alias dcr='dcd && dcu'
nano ~/.bash_aliases
source ~/.bash_aliases
docker-compose logs -f --tail="100"
doc
env_file:
- .env
Stopped now.
I just turned on my p2T feature, this is great 🙂
it's the little things
why don't you just use the noup command on with a bot.py file
your already neck deep into docker though
you're*
Laundmo, fasting has also been shown to help reset your body clock.
Just OD on melatonin
Oxygen slowly kills you over the course of your life.
Aww
American houses are huge 😄
What do they do? tech?
By UK standards 
version: '3'
services:
verificationbot:
image: verificationbot
build: .
restart: always
end_file:
- .env
Trust me, for a house in his general area that's like massive
Got a loud echo @zealous wave
Wait, no
!paste
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.pydis.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.
Hey Vester 😄
nice 🙂
Cya Laundmo 👋
Unless they have one weird rule to catch you out.
sorry guys, had to drop off, I have to get to adulting now lol
hey guys, quick question: is this the right syntax to use to check if the word inputed is in this list?```py
russian = ["apple", "juice", "something"]
elif text in russian:
print("This word is available")
not elif, just if
@tasks.loop(seconds=30)
async def activity():
await bot.change_presence(status=discord.Status.online, activity=discord.Game('WORK IN PROGRESS'))
await asyncio.sleep(15)
await bot.change_presence(status=discord.Status.online, activity=discord.Game('twitch.tv/stockimag3'))
hey @whole bear it's me bond
accept the request
^_^
why?
x
y
Hello
msgsdict = {input1: response1, input2, response2, etc}
while true:
wait for input
if input in msgsdict.keys then print(msgsdict[input]}
smth like that @thorny pulsar
Robots should only have rights if the robots start affecting our lives in negative ways as a result of them not having rights
is atom macos only?
no idea, sorry
pynput
hes using c++
windows has a hook function then
hunter2
I wish i had dual booted before i completely wiped windows from my system
How do manjaro differ from ubuntu? @graceful grail
Do messages here count towards the voice gate?
I'm not really super active outside of voice
Nice, thank you
Fork Yeah! The Rise and Development of illumos
Bryan M. Cantrill, Joyent
In August 2010, illumos, a new OpenSolaris derivative, was born. While not at the time intended to be a fork, Oracle sealed the fate of illumos when it elected to close OpenSolaris: by choosing to cease its contributions, Oracle promoted illumos from a downstream reposit...
are there any videos to go with it? @whole bear
would u say its help u develop ur understanding in python?
yeah
is it best to use one source to learn or multiple?
oh right okay
what stage of learning are u on?
imma head off
see you soon sharpie!
yeah thats fine
thanks again
!e
russian = ["apple", "juice", "something"]
if text in russian:
print("This word is available")
@fiery hearth :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | NameError: name 'text' is not defined
!e
russian = ["apple", "juice", "something"]
if juice in russian:
print("This word is available")
@fiery hearth :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | NameError: name 'juice' is not defined
make sure to put quotes around juice
like this
!e ```py
russian = ["apple", "juice", "something"]
if "juice" in russian:
print("This word is available")
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
This word is available
i need help someome
Tensorflow
I think its ok now @somber heath
??
hi
lo
lo
idk what i'm doing
P = Бx^2
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hello my master opalmist
which channel should i have to talk ! or send messagge
he is
in this or in which channel ?
is there is any specified channel !
oh i got
now
i am just new in this server
i am the beginner in the python
i am a web_dev !
nice
noone texting why ?
then why you put exclaimination mark?
The real question is, why not
That was my trick question .
check my website !
Prepare to be utterly annihilated

just visit the website and can you tell the icon are working or not ?
i dont know but the fontawesome icon are not working properly
Mr Hemlock : - I go to bed at 9 or 10.
Opalmist at midnight - that's good
are the fontawesome icon working ??
i dont know why noone texting !
how much chat i have got
its so shit that i am alone texting in the server
what the heck is going on !
Yep
actually !

!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
heyy
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
#voice-verification
yep
this one
indeed
just like the passenger movie i am alone in the space and talking alonne
what we do in here ?
crime
sms signal tip :
1, Download video with a youtube downloader
2, Cut with http://mp3cut.net (online cutter) verry good tool
3, Transfer to phone

lmao
LMAO
me
i dont know how much message i got
can you count how much times that i messaged in this server
55
57
what should i search ?
from:neeschal
yes
damn

lol
how
hawt number
dont swallow mic
Mic is tasty
with mayo
wtf?
check it and say are the fontawesome icon working or not ?
wha....?


nice you have made a bot but have you been simping for Hemlock
valorant eww
pew
see you later i am going to have my dinner !
XD
see you soon !
Imagine using Linux 
I use ClubPenguinOS
||u nerd||
this is not nsfw
Hypixel be like
im offended
is it funny tho

lmao
I prefer to do VoiceUnders
active chat
tell me about ur bot
It's not done, but currently it has all of the basic moderation commands and some more advanced
it has a fun command
mod mail is above all
and currently working on an automatic voice channel system
DON'T QUESTION THE ELEVATED ONE
✝️
dorime
lmao dorime meme

meth is hard
COLLEGE
Colgate
im unemployed
same here
I'm 14, can't really work 
Sooner or later, there'll be a gategate, then the madness can end.
what is going on, lol
crime
you didn't help me, No man i did

you tried to help me, but you didn't help me
The bot knows something...
bot supports obama
jeff bezos stuck in washing machine
JEFFINA
There was always an asian better than you
Mr hemlock - there are two countries with trillion people
Me as indian - Hehe china
Me again - wait wait a minute
is it just me or is hemlock sounding kinda....sultry
Someone's never read the old testament.
He's a god, can't judge him

where is :lemon_short:
stop making me hungary
i m potato
🥔
i m biscuit

Hemlock 


i m toxic
:sad_cat:
--
no emoji for me 
im a simp 
oh really
.
i am restarting my PC
The user bellow me is a simp
wow
hi leaving
see you 3 min later
im G++
windows 10 update oof
really
--
Coding on nintendo switch
k
coding on calculator

I'm legit :)
I like the fact that school is in zoom
because
I talk with my friends in discord
but
for the teachers
discord is much better
true
Like, you can mute, disconnect, lock channels, automate stuff, have several rooms and easy access
and a lot more
yea and no zoom bombing
yeah
but schools are dumb
Agreed
python should hv been an esoteric language ngl
my love c++
this tbh
👇 Eats tacos with mayo
just give the teachers role to the teachers, the student role to the students, and remove all perms for others, done
no matter who joins, the can't do anything
I do :)
@thorny pulsar https://www.youtube.com/user/schafer5
Welcome to my Channel. This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.
We've already released a wide variety of videos on to...
yea
if you need a free resource
Imagine if schools were using discord for everything they do online, (announcements and classes)
that would so much easier for them
for us, yes, for them no
Why?
imagine a 65-year-old teacher trying to use discord for the first time
Of course
but it's the same with zoom, teach it
zoom is significantly easier to use
@mild zephyr plz bro mute yourself
i luv my right hand
or maybe they should make discord--education
discord has a completely different interface from almost anything else
because it's based on irc, not web conferencing
although I know there are many schools which do use Discord atm
Fr ?
yeah
damn
but the majority uses either zoom or ms teams
yea
everyone hates ms teams
i seriously feel like if hemlock levs vc, the vc average iq will drop by 1000
without exception
hate is a strong word
true
rabbit would agree with you
it's the appropriate one
why is "hate" still in dictionary
If you and me leave then the average iq will increase
also true
the only light i follow = rgb
hi guys
hola
lmao
hello prime
you got me
so tempted to make a nsfw joke
me too XD
lmao
allow?
hîïíīįì
hēllō hārrȳ
Then you never forget your birthday
you have
i never had a brain
I don't
ebay it
Until the brain fairy visited?
can u sell urs
ok sell it
Biscuit loves tea
Hey @junior kayak!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
Then change your name to cookie
where is the coffee of my life 
in starbucks
so turned off
Guys! Opal is typing
opalmist is typing....
h͖͐͠ï͉͋
̓̇̋
OpalMist is typing...
lmao
!paste
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.pydis.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.
opal is typing shrek movie script
value = 546664
with open('value.txt', 'w') as file:
file.write(str(value))
with open('value.txt', 'r') as file:
value = int(file.read())```
ohh hehe
it doesn't even have to be a .txt file right?
i can't join the voice lobby what just happened
you are in it?
ok
zalgo bannn
Try to deafen yourself and undeafen yourself, for me it plays the same sound
ded

MAIN MENU
1. NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. ALL ACCOUNT HOLDER LIST
6. CLOSE AN ACCOUNT
7. MODIFY AN ACCOUNT
8. EXIT
Select Your Option (1-8)
4
Enter The account No. : 36987
Your account Balance is = 15900
Enter your choice : 2
MAIN MENU
1. NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. ALL ACCOUNT HOLDER LIST
6. CLOSE AN ACCOUNT
7. MODIFY AN ACCOUNT
8. EXIT
Select Your Option (1-8)
2
Enter The account No. : 36987
Enter the amount to deposit : 200
Your account is updted
Enter your choice : 4
MAIN MENU
1. NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. ALL ACCOUNT HOLDER LIST
6. CLOSE AN ACCOUNT
7. MODIFY AN ACCOUNT
8. EXIT
Select Your Option (1-8)
4
Enter The account No. : 36987
Your account Balance is = 16100
Enter your choice : \
!server
MAIN MENU
1. NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. ALL ACCOUNT HOLDER LIST
6. CLOSE AN ACCOUNT
7. MODIFY AN ACCOUNT
8. EXIT
Select Your Option (1-8)
4
Enter The account No. : 36987
Your account Balance is = 15900
Enter your choice : 2
MAIN MENU
1. NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. ALL ACCOUNT HOLDER LIST
6. CLOSE AN ACCOUNT
7. MODIFY AN ACCOUNT
8. EXIT
Select Your Option (1-8)
2
Enter The account No. : 36987
Enter the amount to deposit : 200
Your account is updted
Enter your choice : 4
MAIN MENU
1. NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. ALL ACCOUNT HOLDER LIST
6. CLOSE AN ACCOUNT
7. MODIFY AN ACCOUNT
8. EXIT
Select Your Option (1-8)
4
Enter The account No. : 36987
Your account Balance is = 16100
Enter your choice :
!e
from random import shuffle
suits = ["♠️","♣️","♦️","♥️"]
ranks = [r for r in range(2, 11)]+["J","Q","K","A"]
deck = [(r, s) for r in ranks for s in suits]
shuffle(deck)
print(deck)
@noble copper :white_check_mark: Your eval job has completed with return code 0.
[(5, '♣️'), (3, '♥️'), (4, '♦️'), (6, '♠️'), ('K', '♠️'), ('J', '♥️'), (5, '♦️'), ('J', '♠️'), ('A', '♣️'), (10, '♣️'), (5, '♥️'), ('K', '♥️'), (3, '♠️'), ('K', '♣️'), (4, '♣️'), ('Q', '♥️'), ('Q', '♦️'), (7, '♦️'), (7, '♠️'), ('Q', '♣️'), (7, '♥️'), (6, '♥️'), ('A', '♥️'), (8, '♥️'), (2, '♠️'), ('J', '♦️'), (9, '♠️'), ('K', '♦️'), (3, '♣️'), (6, '♦️'), (7, '♣️'), (9, '♥️'), ('Q', '♠️'), (2, '♦️'), ('A', '♦️'), (10, '♦️'), (8, '♣️'), (10, '♥️'), (2, '♣️'), (5, '♠️'), ('J', '♣️'), (6, '♣️'), (2, '♥️'), (9, '♦️'), (4, '♥️'), (8, '♠️'), (3, '♦️'), (10, '♠️'), ('A', '♠️'), (9, '♣️'), (4, '♠️'), (8, '♦️')]
woot!
objects = [...]
objects = sorted(objects, key=lambda object: object.index)
def func(object): #This function behaves the same as the lambda
return object.index
objects = sorted(objects, key=func)```
biscuit speaks
Hey 👋
Technically, concurrency not parallelism, due to the GIL.
Maybe just a function/callable?
Btw, there's also asyncio, which has coroutines and tasks.
Which is another way to do concurrency in Python.
Gtg to put dinner on. See ya 😄
@somber heath Did I scare you off? sorry.
No, a youtuber I follow is live.
ok
Python multiprocessing tutorial is an introductory
tutorial to process-based parallelism in Python. The multiprocessing module allows
the programmer to fully leverage multiple processors on a given machine.
import asyncio
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
# Python 3.7+
asyncio.run(main())
value = account.accno
with open('value.txt', 'w') as file:
file.write(str(value))
with open('value.txt', 'r') as file:
value = int(file.read())
!code
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.
value = account.accno
with open('value.txt', 'w') as file:
file.write(str(value))
with open('value.txt', 'r') as file:
value = int(file.read())
File "C:/Users/arshb/PycharmProjects/pythonProject/main.py", line 220, in <module>
value = account.accno
NameError: name 'account' is not defined
!paste
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.pydis.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.
!doc str
class str(object='')``````py
class str(object=b'', encoding='utf-8', errors='strict')```
Return a [string](#textseq) version of *object*. If *object* is not provided, returns the empty string. Otherwise, the behavior of `str()` depends on whether *encoding* or *errors* is given, as follows.
If neither *encoding* nor *errors* is given, `str(object)` returns [`object.__str__()`](../reference/datamodel.html#object.__str__ "object.__str__"), which is the “informal” or nicely printable string representation of *object*. For string objects, this is the string itself. If *object* does not have a [`__str__()`](../reference/datamodel.html#object.__str__ "object.__str__") method, then [`str()`](#str "str") falls back to returning [`repr(object)`](functions.html#repr "repr").... [read more](https://docs.python.org/3/library/stdtypes.html#str)
!e
my_string = "Testing 5 Cool"
print(all(char.isalpha() or char.isspace() for char in my_string))
my_string = "Testing Cool"
print(all(char.isalpha() or char.isspace() for char in my_string))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | False
002 | True
while account_number.is_integer() == False:
account_number = input("enter a number (no words):")
isdigit()
!e python account_number = "5667884asdf" try: int(account_number) except ValueError: print(false)
@amber raptor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | ValueError: invalid literal for int() with base 10: '5667884asdf'
004 |
005 | During handling of the above exception, another exception occurred:
006 |
007 | Traceback (most recent call last):
008 | File "<string>", line 5, in <module>
009 | NameError: name 'false' is not defined
108098.999
!e python account_number = "5556634asdfa5" if isinstance(int(account_number), int): print("Is Number") else: print("Is not")
OnlineSequencer.net is an online music sequencer. Make tunes in your browser and share them with friends!
@amber raptor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: invalid literal for int() with base 10: '5556634asdfa5'
why not split the input
!e
print(ord("0"), ord("9"))
print(ord("a"), ord("Z"))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 48 57
002 | 97 90
!e python a = 555.64354653 print(int(a))
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
555
!e
a = 555.64354653
print(isinstance(a, float))
@terse needle :white_check_mark: Your eval job has completed with return code 0.
True
um
i m trying to validate ```
def createAccount(self):
self.accNo = int(input("Enter Account number "))
self.name = input("Enter the name on this account : ")
self.type = input("Enter the type of account (Chequing or Saving): ")
self.deposit = int(input("Enter The Initial amount(>=500 for Saving and >=1000 for chequing "))
print("\n\n\nAccount Created")
!e
def is_number(s: str) -> bool:
return 48 * len(s) <= sum(ord(char) for char in s) <= 57 * len(s)
print(is_number("Test"))
print(is_number("123"))
print(is_number("Apple"))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | False
002 | True
003 | False
how would i valdate it
-> int
syntax looking like a magic spell
kek, its a funny way to check for a number
.split the users input and check
ar u talking to me
!e
o = [0,1,2,3,4,5,6]
print(o[1:3])
@terse needle :white_check_mark: Your eval job has completed with return code 0.
[1, 2]
[1:3]
!e
o = [0,1,2,3,4,5,6]
print(3 in o[1:3])
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
False
eval
!docs eval
eval(expression[, globals[, locals]])```
The arguments are a string and optional globals and locals. If provided, *globals* must be a dictionary. If provided, *locals* can be any mapping object.... [read more](https://docs.python.org/3/library/functions.html#eval)
@fast gyro ?
Alright
An introduction to computer and programming, Problem solving skills and software development methods, Data type operators and simple s, input/output statements and expressions, Selection structures and switch statements, Selection structures and switch statements continued, Repetition and loop statements, Functions and modular programming, Arrays applications, and Multidimensional arrays
!e
k = [[1,2],[3,4]]
print(k[0][1])
@terse needle :white_check_mark: Your eval job has completed with return code 0.
2
!e
my_list = [
[0.0, 0.1, 0.2],
[1.0, 1.1, 1.2],
[2.0, 2.1, 2.2],
]
for x in range(len(my_list)):
print(my_list[x][x])
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 0.0
002 | 1.1
003 | 2.2
this
no you
xd

how does this iterate diagonally ??
def createAccount(self):
self.accNo = int(input("Enter Account number "))
print("Invalid")
self.name = input("Enter the name on this account : ")
self.type = input("Enter the type of account (Chequing or Saving): ")
self.deposit = int(input("Enter The Initial amount(>=500 for Saving and >=1000 for chequing "))
print("\n\n\nAccount Created")
my_data = "Test"
def valid_data(data) -> bool:
...
@junior kayak replace my_data with example data
!e
class X:
k = 10
print(X.k)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
10
!e
class X:
k = 10
print(X.k)
@ocean panther :white_check_mark: Your eval job has completed with return code 0.
10
sooo what's better work with eel or electron !!
!e
x = 10
print(x << 2)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
40
!e
x = 1
print(x >> 1)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
0
!e x = 1
!e
test = bytes(1011)
print(test)
print(int(test))
@uncut meteor :x: Your eval job has completed with return code 1.
001 | b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
... (truncated - too long)
Full output: https://paste.pythondiscord.com/pilomerufa.txt

!e lambda x : x**2 (5)
so does that do And for each positional bit?
ah
just like bitwise adiditon
!e
x = 8
print(~x)
@terse needle :white_check_mark: Your eval job has completed with return code 0.
-9
hi again
@ocean panther FFmpeg
whats gtk?
exist.exe
Extant
this is what i want it to look ilke, its exactly like discord but just for prototyping
u mean ttk!!
btw u can use html css ans js with python with eel
@ocean panther can u show us the app !!
rnnoise
its really embarassing right now, has working voice channels but the gui is in tkinter ... you can imagine how that looks lol
XD brroh m working on a tkinter project to ik that feeling
just come privet let me show the app
i need help with a code guys
what lang !!
python
what with specifically?
what's the problem !
try having the input arguments empty
try it without write
ok ill try
try it empty
it is using Standard out
oh it worked
so the printing from input is being recorded
i removed the write
which is disgusting
!voiceverify
dang when someone joins the vc and see you muted then leaves
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
@uneven zenith :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | ModuleNotFoundError: No module named 'thread'
class Player():
def __init__(self,NAME,XP,LEVEL,GOLD,WEAPON,ARMOUR,INVENTORY):
self.NAME = NAME
self.XP = XP
self.LEVEL = LEVEL
self.GOLD = GOLD
self.WEAPON = WEAPON
self.ARMOUR = ARMOUR
self.INVENTORY = INVENTORY
def __attack__():
Player.WEAPON = "Wooden Sword"
Player.__attack__()
# TODO
# BLA BLA BLA
@whole bear whatsup, wyd
self.img_mic = SVGimage.CreateFromFile("graphics/mic.svg")
self.bmp_mic = self.img_mic.ConvertToScaledBitmap(self.icon_size)```
#!/usr/bin/env python3
import wx
import wx.svg
def main():
app = wx.App()
wx.ArtProvider.Push(ArtProvider())
window = Window(None)
window.Show()
app.MainLoop()
class Window(wx.Frame):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.MinSize = (240, 300)
self.Title = wx.App.Get().AppName
self.SetIcon(wx.ArtProvider.GetIcon('ICON'))
class ArtProvider(wx.ArtProvider):
def CreateBitmap(self, artId, _client, size):
if artId == 'ICON':
svg = wx.svg.SVGimage.CreateFromFile('mic.svg')
size = wx.Size(32, 32)
return svg.ConvertToScaledBitmap(size)
return wx.NullBitmap
if __name__ == '__main__':
main()
#!/usr/bin/env python3
import wx
import wx.svg
def main():
app = wx.App()
wx.ArtProvider.Push(ArtProvider())
window = Window(None)
window.Show()
app.MainLoop()
class Window(wx.Frame):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.MinSize = (240, 300)
self.Title = wx.App.Get().AppName
self.SetIcon(wx.ArtProvider.GetIcon('ICON'))
self.butt = wx.Button(self)
self.butt.SetBitmap(wx.ArtProvider.GetIcon('ICON'))
class ArtProvider(wx.ArtProvider):
def CreateBitmap(self, artId, _client, size):
if artId == 'ICON':
svg = wx.svg.SVGimage.CreateFromFile('mic.svg')
return svg.ConvertToScaledBitmap(wx.Size(32, 32))
return wx.NullBitmap
if __name__ == '__main__':
main()
how can i use my vim config on tmux?
#!/usr/bin/env python3
import wx
import wx.svg
def main():
app = wx.App()
wx.ArtProvider.Push(ArtProvider())
window = Window(None)
window.Show()
app.MainLoop()
class Window(wx.Frame):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.MinSize = (240, 300)
self.Title = wx.App.Get().AppName
self.SetIcon(wx.ArtProvider.GetIcon('ICON'))
self.butt = wx.Button(self)
self.butt.SetBitmap(wx.ArtProvider.GetBitmap('ICON'))
class ArtProvider(wx.ArtProvider):
def CreateBitmap(self, artId, _client, size):
if artId == 'ICON':
svg = wx.svg.SVGimage.CreateFromFile('mic.svg')
return svg.ConvertToScaledBitmap(wx.Size(32, 32))
return wx.NullBitmap
if __name__ == '__main__':
main()
self.mute_b.SetBitmap(wx.ArtProvider.GetBitmap(self.bmp_mic))```
self.img_mic = SVGimage.CreateFromFile("graphics/mic.svg")```
@graceful grail
How do I get permission to talk
In voice chay
Chat
@graceful grail
Never mind
!voiceverify
!voice verify
Did you fix it?
@rugged root I have bone to pick with you.
hello
hello
Cute froggy pixel art i made
wxwidgets?
using this https://github.com/ubbn/wxPython
so true
i live in poland, that counts?
!server
smh vco in voice
smh joe not in voice
😔
fact
😔
!voice @modest fulcrum
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
cashmonay
bonjour people !!
salut
does unnecessary white-spaces increase the overall file size after compilation?
not 500, kinda like millions
all the Kieper Belt stuff (spelling might be wrong)
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
no
:)
shouldve known not to click on that 😔
lmao
my dumbass
but, seriously, possibility of 9th planet is awesome
yikes reddit
According to Rick And Morty pluto is not a planet. lol
yikes how?
yeiks
?
??
why reddit yikes?
bc reddit users hurt me
poggers
@severe veldt mute yourself pls
^



40957
110476