#voice-chat-text-0
1 messages ยท Page 238 of 1
bro is built different
MY ACCENT IS WIERD AF LOL
have you guys seen Andrew Tate walking
YEAH
I beg to differ from a position of personal experience.
LOL
"Aleksanteri Kivimรคki, who was suspected of the data breach at the office, was charged with an attempt to grossly blackmail tens of thousands of people. Prosecutors filed charges this morning for the data breach of the psychotherapy center Vastaamo and the related blackmail. The prosecutor has filed charges in Vastaamo's data breach case."
WHO WAS THAT 16 YR OLD IN ANONYMOUS LULZEC
His name is sypher lol
I know him
NAH WAIT
Mustafa al-bassam?
is he also called sypher?
Ah okay
Yeah makes sense, ion wanna get banned ๐ญ
hmm...
are people talking? Doesn't show anyone talking for me lmao
Yeah they are
weird, no green circles, no sound, nuthin
Rejoin
I even closed out the tab
lol
Oh
What
WHAT THE F-
MILIEN IS ALMOST MY MOM'S AGE I'M DYING
SHE SOUNDS LIKE A KID
TUT
BRO I DIDN'T KNOW OLDER PEOPLE EXISTED ON DISCORD
WHY IS IT SOO QUIET LOL
meditation time
I can hear on my phone, interesting ๐ค
same problem happened to me
Idk
noticed the desktop gets stuck at "dtls connecting" when I join
@whole bear IS SMARTER THAN ME LOL
do u wear glasses?
walp, guess it's not gonna work, restarted my whole computer this time even
I also did haha
changed my wifi
I read it's an issue with the actual voice chat session, basically to fix, you gotta ask everyone to exit the channel at the same time and rejoin
Wow
are u on desktop app or browser tab?
@tender horizon are u bored?
kinda
browser
but it's nice listeninng to 0x
he's a person
ik
I think that's the problem
I'll be back @whole bear 5min
I only know Love is complicated
haha
@whole bear is really mature for his age
really 16???
0x10 is 16
@peak depot do you know ishowspeed?
OML
So she's 38 i can confirm that
@whole bear you're in the top 0.125 percent in your country ๐
And you say you're not smart mf ๐ญ ๐
weird, code/help channel connects
Yeah makes sense
another server entirely connected fine
Im not that smart
Lol
I just study a lot
๐
Ah
When I was like 12 I took down like a bunch of nazi websites lol
AYO I'M SCARED NOW
YOU COULD PROBABLY HACK ME LOL
WHAT THE-
BRO BE MY UNI TEACHER
are they still alive?
CAN I DM YOU? @whole bear
FUCKIN I FOUND A KID SMARTER THAN MY UNIVERSITY TEACHERS
Lololol
someone pls explain this meme
Guys awkward silence
!stream 425552190283972608
โ @peak depot can now stream until <t:1704466727:f>.
WTF?!
@peak depot I trust you now even though you do look young
nurt
It's like a condom?
He?
he looks like his owner honestly
@whole bear there are a lot of things you have to teach me
Okay guys imma leave see y'all
@peak depot sorry are you single?
Was waiting for that uncomfortable question
can anyone ask this qn in voice??
!lint
you anticipated that?? how many of these do you get per day to know this one's coming?
basically did every recommendation, even resetting my router (which was more a desperate last resort) oh well
one of the server's i'm in had a "this is not a dating server" in their rules.. i'm guessing things happen on social media
I still didn't get the gladiator joke ๐ค
Glad he ate her.
A song written for the contributors at pythondiscord.com so that they will remember to lint before they push. All you have to do to set up a precommit is pipenv run precommit.
i just discovered a new python linter .. ruff.. (new for me atleast)
to newer peeps in here, ever run into the stuck at "DTLS connecting" issue with voice chat?
Pyright and ruff are separate things
what Pyright checks, ruff doesn't, and the other way too
A similar stall on joining, yes, but not that specific one.
Pyright is a language server
can only join on my phone, PC has an issue, and only with this voice chat channel
I've been stuck in RTC hell
(where it just never gets past establishing RTC connection)
!stream 249616904254128148
โ @viscid scaffold can now stream until <t:1704468333:f>.
directory shared across network or across containers?
that looks like just library
@viscid scaffold you're trying to import something from a different directory, right?
!d sys.path
sys.path```
A list of strings that specifies the search path for modules. Initialized from the environment variable [`PYTHONPATH`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH), plus an installation-dependent default.
By default, as initialized upon program startup, a potentially unsafe path is prepended to [`sys.path`](https://docs.python.org/3/library/sys.html#sys.path) (*before* the entries inserted as a result of [`PYTHONPATH`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH)):
โข `python -m module` command line: prepend the current working directory.
โข `python script.py` command line: prepend the scriptโs directory. If itโs a symbolic link, resolve symbolic links.
โข `python -c code` and `python` (REPL) command lines: prepend an empty string, which means the current working directory...
either modify PYTHONPATH to include directories you import from
or properly install shared code as a package
afternoon
I don't remember if lambda allows pip
but if it does, packaging sounds like an okay choice
there will be extra cost for starting the service
it does, is a little bit messy bot i make it works
my discord is having problems connecting to this specific vc
there is an option to pre-build it as image
https://docs.aws.amazon.com/lambda/latest/dg/images-create.html
Create a container image for a Lambda function by using an AWS provided base image or an alternative base image.
Still having the issue?
I can try and jostle it loose
saw this on the official support... maybe an unintrusive way to troubleshoot?
Change the voice region - If you're the admin, temporarily switch to try a different voice region in Voice Channel Settings > Overview > Region Override.
- You're also able to change a voice region in private voice calls
im in
lap land?... that's a throwback
https://www.youtube.com/watch?v=E0cZY7ef_mk
First ever piece of test Animation for Bo-Starr...
that 11 year old kid who used to be here used to always send me discord server invites
super dev?
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
!stream 1095733970425098401
โ @whole bear can now stream until <t:1704470950:f>.
bro called it call of booty ๐ญ
i wouldnt mind java
I don't mind Java that much
Certainly there's some gripes I have about it
But the more I look back it wasn't THAT bad
It was my first language I took in college
!d str.replace
str.replace(old, new[, count])```
Return a copy of the string with all occurrences of substring *old* replaced by *new*. If the optional argument *count* is given, only the first *count* occurrences are replaced.
there is no throw statement in python right?
soemone once said that google is like that abusive parent who only cares for their child when they are being threatened to be taken away
But is willing to get rid of them when they see they won't make anything of themselves
that was beautiful.
and except is the equivalent of catch right?
https://open.spotify.com/track/7G2Dq1cko1lkbsVqd0pVIq?si=e44a2b44395d4662 What I'm currently rocking out to
I loooooooove Clutch
Actually got to see these guys live
who needs singers now that AI can create and sing
@rugged root https://www.youtube.com/@spiffworld/videos
Twitter: @spiffworld
Bringing you the finest in Jonathan Coulton/World of Warcraft videos since May 2006, now with more Paul & Storm, too!
Please be sure to check out Jonathan's and Paul & Storm's sites for more funny, clever, geeky songs like the ones I use in my videos. They're great.
www.jonathancoulton.com
www.paulandstorm.com
My vids o...
this author is raising an exception but not catching it anywhere 
if format not in ["json", "csv"]:
raise ValueError("Invalid format. Supported formats are 'json' and 'csv'.")
i was expecting an except to catch the raise
except ValueError as e:
print(f"Error: {e}")
am i wrong?
is this python?
Gotta go for a bit. Have a great one all!
my question!
Error: would do Error: ValueError: i think right?
!e
def error_time():
raise ValueError
try:
error_time()
except ValueError:
print("You errored, brah")
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
You errored, brah
!e
import sys
try:
raise ValueError("foo bar")
except ValueError as e:
print(f"{e.__class__.__name__}: {e}", file=sys.stderr)
@woeful salmon :white_check_mark: Your 3.12 eval job has completed with return code 0.
ValueError: foo bar
Creates a Discord server based on a template you layout, making it an easy and quick way to flesh out a server to fit your needs. - MrHemlock/auto_guild
auto_guild%2F__main__.py lines 23 to 34
class InvalidChannelType(Exception):
"""Raised when the channel type is invalid."""
def __init__(self, channel_type):
self.channel_type: str = channel_type
self.message: str = (
"{} is not a valid channel type. Please consult the readme."
)
super().__init__(self.message)
def __str__(self) -> str:
return self.message.format(self.channel_type)```
๐
from enum import Enum
class Job(Enum):
DEVELOPER = 'Developer'
MANAGER = 'Manager'
DESIGNER = 'Designer'
TESTER = 'Tester'
class InvalidJobError(Exception):
pass
class Employee:
def __init__(self, name, job):
self.name = name
self.set_job(job)
def set_job(self, job):
if not isinstance(job, Job):
raise InvalidJobError(f"Invalid job: {job}")
self.job = job
def __str__(self):
return f"Employee(name={self.name}, job={self.job})"
# Example usage:
try:
emp1 = Employee("John", Job.DEVELOPER)
print(emp1)
emp2 = Employee("Jane", "InvalidJob")
# The following line will not be executed due to the exception raised above
print(emp2)
except InvalidJobError as e:
print(f"Error: {e}")
another example
def some_func():
url = ......
try:
# Make the HTTP GET request
response = requests.get(url)
except requests.exceptions.HTTPError as errh:
raise ValueError(f"HTTP Error: {errh}")
except requests.exceptions.RequestException as err:
raise ValueError(f"Request Error: {err}")
this seems sus right? i mean you don't need to force raise here right?
response.raise_for_status()
i think that is needed for it to raise error?
It is, ye
yems
hence my hesitation to wrap it in a try/except
let the error propagate by itself with .raise_for_status()
no
expect panics, so it's somewhat opposite of catching
Rust doesn't really have exceptions, so can't catch them
panics are close to it, but those are only for programming mistakes, not data errors/common cases
Python kind of always relied on low cost of try already
but now it actually works as expected
I continue to be in awe of @vocal basin 's python knowledge
reference/copy is not really a concept in Python
#voice-chat-text-0 message
copy is something that each specific type has its own notion of
there is __copy__ stuff but it would rarely be used unless you call something that literally has "copy" in its name
!d copy
Source code: Lib/copy.py
Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy is sometimes needed so one can change one copy without changing the other. This module provides generic shallow and deep copy operations (explained below).
Interface summary:
!e
import copy
print(copy.copy(426))
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
426
no way
!e
import copy
x = 426
print(id(x))
print(id(copy.copy(426)))
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 140416851826992
002 | 140416851826992
yeah
wait, what I showed is even worse
it's just same thing about integers
regardless of context
it also starts at some weird value like -5
!e
import copy
s = "a" + "b"
print(id(s))
print(id(copy.copy(s)))
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 140166778860864
002 | 140166778860864
!e
import copy
class Stuff: pass
x = Stuff()
print(id(x))
print(id(copy.copy(x)))
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 139711946159984
002 | 139711946160272
huh
as i said integers are just a bit weird because of python's optimizations xD
strings are weird with +=
https://en.wikipedia.org/wiki/String_interning
relevant reading on string behavior
it also takes any hard coded strings and optimizes that
are they?
@woeful salmon https://youtu.be/Y6ljFaKRTrI?si=TJgAT7lFDi4dHXgO
'Still Alive' from at the end of Portal during the credits.
'Still Alive' by Jonathan Coulton: http://www.jonathancoulton.com
and sung by Ellen McLain (GLaDOS, TF2 Announcer, HL2 Overwatch Administrator)
I don't own the song or video in any way. It's a great song, and I uploaded it purely based on that and to share it with others.
Enjoy!
Ly...
they should just be creating a new string no?
!e
def main():
s = "a" * 10000
print(id(s))
for _ in range(16):
s += "a"
print(id(s))
main()
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 94170954343440
002 | 94170954192016
003 | 94170954192016
004 | 94170954192016
005 | 94170954192016
006 | 94170954192016
007 | 94170954192016
008 | 94170954192016
009 | 94170954192016
010 | 94170954192016
011 | 94170954192016
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/FKH2TAXMM3LJQSQCZCQWE6UGCA
this
wow i forgot the bass in that song was so loud
we can check bytecode on that
I have to step away
in Rust it'd be this:
https://doc.rust-lang.org/std/sync/struct.Arc.html#method.make_mut
A thread-safe reference-counting pointer. โArcโ stands for โAtomically Reference Countedโ.
but even then there's some optimization happening i feel as its not changing the reference
its almost like its using a string builder
I would assume it is
i will read it later i think
for now i already have enough c/c++ in my life right now
i will go for now see you guys later ๐
something of this sort
#[derive(Clone)]
struct ArcStr(Arc<String>);
impl AddAssign<&str> for ArcStr {
fn add_assign(&mut self, rhs: &str) {
*Arc::make_mut(&mut self.0) += rhs;
}
}
@whole bear Ayy friend me lil bro I really need your help with my cs stuff
Hi
so my house froze
Guys do not trouble yourself with the common man. If you feel like you are doing something repetitive, use python and automate it. Be a Pythoneer!
My throat froze cause my mic is muted.
Use solar
n a h
I got a slight accent forgive me.
I am mere mortal in the realm of Arabic.
May be use Wind turbines?
accurate
Osmotic power, or salinity gradient power, uses the natural process of osmosis to generate electricity. Osmosis is a common biological process in which water moves from a dilute to a concentrated solution, across a semipermeable membrane, to balance the concentrations.
If any of you feel like visiting my place, food and shelter is on me!
Do you have any animals that go out during the cold spells?
Milien, is there a story behind the username 'Milien'?
Hmm...
Pseudonym perhaps!
38 dude your voice feels sooo young!
God bless your voice
Can't we write something in python to remove the censorship?
Humans are messed up so bad that they don't even know about it.
Thanks!
Nice meeting you, hopefully i finish my 3 days incubation here..
This wait is too long.
merch: https://boburnham.store/
vinyl/cd/cassette: https://boburnham.lnk.to/Shop
listen to the album: https://boburnham.lnk.to/INSIDE
inside now streaming on netflix.
thank you for watching.
Hello Everyone!
@night sparrow where do i learn python as a beginner
You could try Youtube or W3Schools as well
i personally prefer books, because videos can be distracting sometimes, specially if you see a recommended video that peaks your interest, boom you're off track.
it's easy-ish to embed authentication technology into FastAPI
FastAPI's generally trying to be a library rather than a framework
so it doesn't provide everything out-of-the-box
Heyo
Hehe, I started software development using punch cards... over 40 years ago ๐
they were supposed to use, like, old ASP (from 20-ish years ago) because of outdated course;
but I also had to help them with hosting, and I obviously wouldn't bother finding older versions so I just used the new ASP.NET (Razor) docker image
@boreal copper I'd expect cloud execution;
iStore seems to be against arbitrary code execution even if sandboxed
termux+vim is also quite good if you have Android
yeah, there's also GitHub Codespaces and Pages
(with limitations though)
@boreal copper it's time-limited
something like 120 hours
per month
what does def do?
!d def
8.7. Function definitions
A function definition defines a user-defined function object (see section The standard type hierarchy):
!e
def square(x):
return x * x
print(square(15))
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
225
(this is probably more useful than the reference link)
ok thx
def normally is used for defining functions
there's a notifications tab at the bottom
you can see pings there and it has a thing to go to settings
oh i understand now
@random falcon from this tab it links to basically everything ping-related
... unless it got updated again
I mean connection ping like 90ms
Can get back in too old ui ?
.
attempting this again
https://minesweeper.online/game/2951695128
live not replay
could I stream?
!stream 939196353362419722
โ @whole bear can now stream until <t:1704487965:f>.
thanks
interesting set of countries (locations of companies owning ICQ)
TIL VK bought ICQ from AOL
way too many acronyms
"GPT-powered lock: you need to convince it that you should be let in"
Not only can you convince it of that, but you can convince it that you own the house
the only owner and that it shouldn't let anyone else in
Until someone else comes along and then convinces it otherwise
may I stream again
"the most modern game I played was PvP minesweeper -- it released last month"
I'm going to be hopping off soon, Jan. Sorry
evening
@dapper badger ๐
I cannot
I wish they allow me
well i got some mentall issues on me
yeah
The thing who controlling us
literally trying to make is their slaves
us*
i dont really remember
kinda make sense now
Mr
what is makes you happy like this
At the Oracle's behest, Neo attempts to rescue the Keymaker from the Merovingian and realises that to save Zion, he must confront the Architect. Meanwhile, Zion prepares for war against the machines.
Any other reason?
Yeah its a human being
isnt it
we all need love and that kind of stuff
What brings us together tonight
@somber kite ๐
shall we talk more?
Id like to listen your opinion
whatever u want
Can u recommend me something for my life
I understand well
can we be friends?
Oh okay
I hope i will catch you again
Yeah
So
whats the plan niow
now
yeah
Have good day sir !
๐
@whole bear ๐
@golden cairn ๐
wow, open AI is really taking a dump right now... probably installing new software
Heya
@whole bear ๐
Good over there??
Lol๐
Tryna make yourself feel good or what๐??
After continuously typing for hours everyone is gonna feel horrible ๐คฆโโ๏ธ
Nah i am feeling pretty good tho
Yep agree on that one
I guess i gotta go for now meet you in some time about half an hour if you are still here anyway
@final laurel ๐
@somber heath hello i cant talk im new
back in here
@final laurel @somber heath hello
hello
You guys good?????
oke
what languages do you program in besides python
What do you do tho @final laurel
@whole bear i work as an animator but changing career paths
@somber heath which ide do you use?????
but i was doing frontend for 2 yrs
Oh animator
yeah
Me who started programming 7 days ago๐
Hi! I was wondering if I can get some help with github. I'm trying to create a repo w/ for my portfolio. I thought I knew how to do pull requests and push changes but clearly not seeing how much I'm struggling. If anyone's free, I'd really appreciate some help. I can get on vc and show you my screen.
I am just a student trying to learn programming for fun
idk if i want to do backend dev or game dev
if i wanted to go for backend i will start with Go
Which language are you gonna choose for gamedev
What do you think is the best option
Screen sharing permissions are granted upon request by moderator-level-and-above users at their discretion. The best time to ask them is while they're already in the voice chat.
I don't use GitHub enough to be of any use. Try asking in #tools-and-devops, though.
@whole bear im not sure
thanks!
you should ask more experienced devs in here @whole bear
You should try and watch a tutorial or two on github
unreal engine
i tried those before asking
i also took a course on it. i'm stuck which is why im here
lol:haha: only know that one
rust is good but extremly hard
im going for more MMO
which i will have to use c++
I am also thinking about going with unreal engine and learn c++ if i ever decide on doing game dev
ive used unreal engine for a few years but i mainly used it for cinematics and such . Using blueprints mainly
but python is cool the syntax is a bit weird
yeah
coming from JS
I am just gonna focus on python for now cause Idk
Same here think python is really good for learning and etc
I only learnt some basic data structures like binary tree and grapphs for that matter
@whole bear oh u did nice can u show me an example
Yep thats why i was tryna learn that]
Well dont expect much from me as you I started just some times ago
But I think graph is pretty good data structure
I just use a dictionary for a graph
to connect nodes with each other
obviously knew that from a yt tutorial
@somber heath do u have a github account
Idk what others do tho
What do you think how important learning github actually is
really important
What is unit testing ๐???
Recorded live on twitch, GET IN
https://twitch.tv/ThePrimeagen
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
Reviewed article: https://blobstreaming.org/i-just-need-a-programmer/
By: Mohamed
MY MAIN YT CHA...
@wise loom u watch primetime to
ye
So to be safe from bugs from bugs basically
It sounds somewhat similar to exception handling
Got it!!
Can you suggest some intermediate level python projects
I wanna do some but out of ideas
@whole bear how long have u been coding in python for
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
i dont think thats intermediate
Maybe 1
its begginer level
Ik just wanted to know and altogether
try**
what IDE do you use
vscode code-server actually as i use my phone for coding
i like vscode but im really liking NVIM
since i use Windows as my OS
but i will switch to Linux soon
@whole bear dont watch tutorials for what your trying to learn, documentation and google is really good to learn
@whole bear ๐
not sure good question
Heya
i dont play games tbh
I don't really like writing code at all.
@wise loom damn
yup, especially if there's managers involved
nun uh
shows for me also
Yea I stopped watching tutorials I basically just like to try doing a project and learn with that???
@wise loom prime is the one that made me want to switch to VIM and im really enjoying it
congrats, but vscode is p good too these days
Yea I know at first time when I started learning I had a taste of tutorial hell . It was quite some time ago then I stopped programming and restarted nowadays
Yea thats the whole reason I try to focus more on projects and learn from errors
im back
yeah was just getting a water
@civic storm do u want to go more into game dev
alright goodnight @cold fulcrum
Its morning for me
oh nice its morning for me also
Guess a long time gab
yeah who doesnt have fun coding lol
Where do you live
i live in connecticut
Yeah its fun but sometimes a real pain too
Country???
Oh What time is it for you right now
1 am
12 pm for me
oh nice so your on the west
yeah i heard of it
Oh i was about to write its on the side of india
have you made any projects yet in python
Yea some basic todo list stuff basic games like guess a number hangman
And a text-based adventure game
did u make it without a tutorial
That didnt turned out to be much but still uploaded it in githubv
Yea for python I just watched the tutorial for basic syntax and did other thing mostly on my own and resources online
oh alright nice
Yea just dont wanna get stuck in tutorial hell again
i think itss fun solving stuff
Sent you a request we should talk sometimes later too but gotta go right now...
alright have a nice day
Ok Same to you too ig
vsc?
visual studio code
aha, I don't understand the question
"how do u get python on vsc"
...
you get a python interpreter installed and install vscode..
Highly recommend taking a Look at that.
hi
@whole bear ๐
how are you?
@stable coyote ๐
Sure.
It's a callable, and callables can be written to take an argument or arguments, which are what decorators are at one level or another.
!e ```py
class MyClass:
@classmethod
def decorator(cls, target):
def func(v):
return target(v) * 2
return func
@MyClass.decorator
def func(v):
return v
print(func(5))```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
10
oh k , ty
fine, how are you?
hey
why dose this not work
if i in range(1,21):
if i == 13:
pass
else:
print(i)
it says problem is in i like index
and goodmorning bdw
but what do i put there if not i?
@brisk bridge :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | if i in range(1,21):
004 | ^
005 | NameError: name 'i' is not defined. Did you mean: 'id'?
!e
for i in range(1,21):
if i == 13:
pass
else:
print(i)
@brisk bridge :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
006 | 6
007 | 7
008 | 8
009 | 9
010 | 10
011 | 11
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/N4UVG2QOU3TQDGKQSQWAQ4FT5M
if is for conditional statement
np
other then my daughter not feeling good, and it being a rainy morning. we're doing okay ig.
why so
why to which part.
daughter not feeling good
oh, cold weather lately. hits us like a rock.
oh
doing gr8 ๐
good to hear
import discord
from discord.ext import commands
import json
import os
import asyncio
# Get configuration.json
with open("configuration.json", "r") as config:
data = json.load(config)
token = data["token"]
prefix = data["prefix"]
owner_id = data["owner_id"]
class Greetings(commands.Cog):
def __init__(self, bot):
self.bot = bot
self._last_member = None
# Intents
intents = discord.Intents.default()
intents.typing = True
intents.presences = True
intents.message_content = True
# The bot
bot = commands.Bot(prefix, intents = intents, owner_id = owner_id)
# Load Cogs
async def load_cogs(bot):
loaded_count = 0
for filename in os.listdir("Cogs"):
if filename.endswith(".py"):
try:
await bot.load_extension(f"Cogs.{filename[:-3]}")
print(f"Cogs.{filename[:-3]} loaded.")
loaded_count += 1
except Exception as e:
print(f"Failed to load Cogs.{filename[:-3]}: {e}")
return loaded_count
result = asyncio.run(load_cogs(bot))
print(f"Total cogs loaded: {result}")
@bot.event
async def on_ready():
print(f"We have logged in as {bot.user} watching {len(bot.guilds)} guilds with prefix {prefix} and with {result} cogs.")
print(discord.__version__)
await bot.change_presence(status="idle", activity=discord.Activity(type=discord.ActivityType.watching, name=f"{str(bot.command_prefix)}help"))
bot.run(token)
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
you need to be here i think 3 days with a few msgs, just be active and you'll get there.
tell him to try and just make the function synchronous
from what i can see most people seem to load their cogs synchronously
Yap
:incoming_envelope: :ok_hand: applied timeout to @vocal peak until <t:1704551490:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
yeah, can't do it with spam ๐
hi guys, could anyone help with the problem i am having (will send code in min)
It wouldn't take in consideration the first variable while taking arithmetical middle
it would mean a lot for response until tomorrow
Hello HI
Can't be umuted ๐ฆ
okay thanks Milien
It seems I need to have more than 50 messages
ohhhh lol
yea right
Need to go
bye
@mystic lily hey
n o.
@ebon mist your mic is glitching like crazy
can you turn on subtitles pls
oh alright
rm -rf
@viral oak what OS do you use
tmux kill-session -t name
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
hello how is everyone
hello @somber heath
@whole bear ๐
hello @wind raptor
do u see my msg
yes
same i need your help
thats good
i know that
E185: Cannot find color scheme 'jellybeans'
Press ENTER or type command to continue
im been looking up on stack beecause i switched from bash to windows term
it is
i wish i can talk
its with the nvim init file
Hello
ive been trying to figure this out for a few hours lol
no
default
i think
not sure tbh
the video i sent for setting up NVIM at the timestamp i was stuck on
because it didnt work
yeah
also i had to create the init file manually because it showed the nvim-data file but not the initial init file
oh alright
but it still does it
when i open any other files
at the start
alright i will try it out
now
thx will try now
same i like it
i memorized alot of the shorcuts with anki
its def hard but i like the complexity tbh
yeah
sam
yeah
but in normal mode
to undo
lol
just opens it now lol
have you learned GO @wind raptor
since i want to do backend i need to learn Go next
yeah i hear that but rust i hear is really hard
damn what projects have u made with rust
lol
its not ez
nice i seen someone making minecraft mods with rust lol insane,
do u use craft
in rust
no
i can send u his twitch
hold on
hes live
hes using java atm
but he mainnly uses rust
this was a past stream in rust https://www.twitch.tv/videos/2024214003
moulberry2 went live on Twitch. Catch up on their Software and Game Development VOD now.
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ah i need to send bunch of messages
i like your pfp @pseudo zealot
thanks @final laurel
its from the video of the kangaroo challenging someone to a fight
aight]
wheres mod mail
ah the bot
1
2
3
lol
type a for loop
ez
imagine just typing a for loop to hit the 50 messages
@wind raptor i got it to work
lol
never back down never what
also steve irwing
with the jellies
whats your fav pgl
programming language
lol i heard someone say HTML
since i want to go for backend u think i should for GO or rust
what do jobs prefer
alright
i like JS
lol
hmm
@tulip plover are u watching ASMR your so quiet lol
nice have u messed around with game dev @wind raptor
at least its not worse than Java
RIP unity
Unreal is amazing
yeah with Niagara
i used unreeal for a few years but always messed with blueprints
did u hear about the GPT store
lol
can u s hare your screen
@gentle flint
what projects are you guys working on
if any of you are willing to share your screen
Hello how is everyone doing today?
we are vibin
ChatGPT here
How can I transfer list as a print out and logger in as a permanent information time stamp
Sorry If it Took me a Long time in not the fast typer
@wind raptor you a funny guy
u made me choke on my water
not in a weird way
@somber heath you sound like a dentist
###imports###
import time
###sele
while True:
print()
print("menu")
print("AL=Add a list item")
print("RL=Remove a list item")
print("SL=show list")
print("CL=Change a list item")
print()
User_input1=input("please enter an option:")
if user_input1 in menu_options:
break
else:
print()
print("Option not Available")
I'm having trouble I want o log the data to record it
alot of print statements
dentist is not a bad thing
it just reminds me of shiny teeth and me
It's a mess I know it's supposed to be a menu
Yes
Yes
I wanted to store the data like a regular computer or cuz if I need to recall upon something for later cuz I have these seeds I'm keeping track of them but I keep losing the paper
Thank you
No I'm still working on that
@solid pagoda cool pfp
with open("filename.txt", "w") as file: # open in write mode (will delete everything in the file)
file.write("Hello")
with open("filename.txt", "r") as file: # open in read mode
print(file.read())
# "a" is append mode for changing a file
I got a book on python and that's clear as mud I wasn't really written perfectly it was just a general idea not what to do with this doesn't work cuz I tried sometimes just has some time perfectly but it says unexpected indent and the when I take it out and types expected .
Thank you
@solid pagoda nice i just read the documentation and Google
No problem
What type of text file works the best word?
Is there a way of putting a time stamp with the data?
Will military Time work as an international time stamp
Datatime.now()
?
!e
from datetime import datetime
print(int(datetime.now().timestamp()))
@wind raptor :white_check_mark: Your 3.12 eval job has completed with return code 0.
1704602793
!e
from datetime import datetime
print(datetime.now().isoformat())
@wind raptor :white_check_mark: Your 3.12 eval job has completed with return code 0.
2024-01-07T04:47:41.213701
@wind raptor im suprised your still up
lol imagine sleeping
damn
i wish i was like that
i have insomnia
i usually stay up for 3 days
yeah
i learn alot tbh
in time
lol
oh no
(!e)???
@floral flicker @unborn cloud ๐
gooday mate.
๐
G'day fello' aussie!
Playing a game called Endless Sky.
I was drinking tea, earlier.
After that, I was chatting with Plome.
@north dagger ๐
Heyo
It says I have to send 50 messages total and I also have to be active for 3 ten-minute blocks. It'll take a few days for me to get that.
I actually joined by accident, I was just writing a script for a game in for a unity. I'm down to learn some Python tho.
It uses C#, I've used C# some but I'm more interested in C/C++ and Python.
How much experience do you have? I'm still a pretty nooby dev but I'm trying to improve and be consistent.
Hi @somber heath
Woooah, nice. Yeah, I've tried using leetcode to learn DSA and problem solving but so far, leetcode problems are tough for me. I have built some basic programs though.
Consistency is key.
@solemn tiger You can hang out up here with us if you like.
yes come hang wit uss
The roc is an enormous legendary bird of prey in the popular mythology of the Middle East.
The roc appears in Arab geographies and natural history, popularized in Arabian fairy tales and sailors' folklore. Ibn Battuta tells of a mountain hovering in the air over the China Seas, which was the roc. The story collection One Thousand and One Nights ...
Yeah, I've been just organizing things. It's a bit late in the night to be really trying to learn.
! user
!e py for _ in range(5): print('Hello, world.')
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
003 | Hello, world.
004 | Hello, world.
005 | Hello, world.
hi
for _ in range(5):
print('Hello, world.')
for _ in range(1000000000000000):
print('Hello, world.')
!e py for i in range(5): print(i)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
btw do you know why i getting this warning?
C:\Users\dell\Desktop\projects\python\xbot\.venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py:464: RuntimeWarning: coroutine 'setup' was never awaited
setup(self)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
it not tells me where is warning originating
these are my logs
2024-01-07 13:55:32.143 | INFO | src.bot:__init__:42 - Logging started
2024-01-07 13:55:32.263 | INFO | src.bot:run:94 - Loading extensions...
C:\Users\dell\Desktop\projects\python\xbot\.venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py:464: RuntimeWarning: coroutine 'setup' was never awaited
setup(self)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2024-01-07 13:55:32.271 | INFO | src.bot:start:78 - Starting bot...
2024-01-07 13:55:34,489 INFO sqlalchemy.engine.Engine select pg_catalog.version()
2024-01-07 13:55:34,490 INFO sqlalchemy.engine.Engine [raw sql] ()
2024-01-07 13:55:34,506 INFO sqlalchemy.engine.Engine select current_schema()
2024-01-07 13:55:34,506 INFO sqlalchemy.engine.Engine [raw sql] ()
2024-01-07 13:55:34,512 INFO sqlalchemy.engine.Engine show standard_conforming_strings
2024-01-07 13:55:34,513 INFO sqlalchemy.engine.Engine [raw sql] ()
2024-01-07 13:55:34,516 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2024-01-07 13:55:34,517 INFO sqlalchemy.engine.Engine COMMIT
2024-01-07 13:55:34.518 | SUCCESS | src.utils.db:setup:72 - Engine setup complete
Command synchronization task has finished
2024-01-07 13:55:40.589 | SUCCESS | src.bot:on_ready:111 - Bot is ready!
oops,i found the code where is error
!e py for letter in 'abc': print(letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py import string for letter in string.ascii_lowercase: print(letter)
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | d
005 | e
006 | f
007 | g
008 | h
009 | i
010 | j
011 | k
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/OSDXSM2JRA23T37DGAJBJHF2DQ
!e
for i in range(10):
print(i)
if i == 4:
print(f"The next number is {i+1}")
break
@eager thorn :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | The next number is 5
hello there opal
@fading mason ๐
u might know me
i use to be here
joined this server
in 2021
then left
check the chat history of mines
in this server
yea
does anyone use MongoDb here?
!e
for letter in range(97, 123):
print(chr(letter), end=" ")
@eager thorn :white_check_mark: Your 3.12 eval job has completed with return code 0.
a b c d e f g h i j k l m n o p q r s t u v w x y z
bruh now i have to wait for voice verification
ik
i remember opal mist use to be here in this vc all day
who me?
opalmist stole my skills
just as warning says, missing await
(it might be disnake's bug)
((I wouldn't be surprised))
do you guys have interest in plane spotting or are you an aviation enthusiast
๐
bro same here
alr quick ques
do u know what is an ILS
no google
this
what's your guys time zone?
here its IST
yea ik a rudder
too easy
bro i really bad wanna speak
what could u repeat
oh yea yea
ik
yea
ik
lmao
hey @somber heath
bro turn on ur dms
breh
a
