#voice-chat-text-0
1 messages Β· Page 837 of 1
ctx.guild.created_at.format("%A %-d%t of %B %Y %I:%M:%S %p")
Yeah. It's not a thing. I don't know re off the top of my head and it was an educated guess. group should be it. Did you figure it out?
You thanked.
aaa=re.search("[0-9]+",'Screenshot (851).png')
print(aaa.group())
``` this works fine
but
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.
for x in a:
aaa=re.search("[0-9]+",x)
print(aaa.group())
``` BUIT THIS IS NOT WRKING
What's the output?
print(aaa.group())
AttributeError: 'NoneType' object has no attribute 'group'
x is of kind Screenshot (881).png
So re.search is giving you None. The question now is: Under what circumstances does this happen?
Print out each x as you loop.
Or a as a whole.
What's everyone up to today?
Digesting.
@stuck furnace if i copy code from online ( like i write it line by line my self, is it considered practice ?
Erm, I mean looking at other people's code can be a valid way to learn, but usually only after attempting to solve the problem yourself.
and yes im am understanding and asking questions from others of the line i cant understand

One hazard is that it's easy to convince yourself that you've understood it when you haven't.
Without an element of self-test.
i mean i did learn a lot about list and how i can use them when i tried making a tic tac toe game using online avaliable code
π
Screenshot (881).png
Sound garbled.
Nah, not really used it myself.
This seems like a pretty good tutorial: https://tkdocs.com
TkDocs features tutorials and other material for modern Tk GUI development, using Python/Tkinter, Tcl, Ruby, and Perl/Tkx.
brb
@stuck furnace , @somber heath
If i want to make a random password generator with GUI which lib should i use to make the GUI
a new and easy one for beg
I wouldn't try to do both at the same time.
i made the random password gen, in a command line
I'd say do the password gen first, then, once you've worked out that side of things and debugged it, then look at doing the same thing within an event looped (gui) environment.
i used random and string to make it
As to the choice of gui library, I'd say explore and experiment.
See what appeals to you.
will do
@gentle flint wud?
@novel karma
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Thankyouu
@whole bear should you be wondering why you're unable to speak
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yeah I saw
although I doubt it'll help you 'cuz you haven't been in server for 3 days
alack, alas
What does that mean
it's an old-fashioned poetic way of bemoaning a sad situation
Oh alright.
however, don't feel obliged to stay; I'm just hanging 'round in the hope that someone who can speak will join
and someone does that very instant
Now that happend
and he leaves again
that was short but sweet
"Hey. Eurghhh." boo-doop
Lmao
you can be in them but not speak
counts for all of them
Yeah
rip
Why do they have this voice thing.
because we had people who thought it was funny to join and yell random curse words
Oh yes
this tends to act discouragingly to those people
waiting three days and sending 50 messages takes the edge off them
Yeah
Nope
not quite
the thing is
svg is a special type of image format called a vector image
vector images don't work by having coloured dots
instead they have equations which represent lines, and curves, and boxes, etc
So you draw so-called "nodes"
hang on
Oh so inkscape isn't vector based.
back again
Ok
that is literally a vector
Ok
a vector is an equation line thing like that
so vector images are images consisting of those
Hence, it's easy to draw out those equations and convert them to so-called bitmap images, which consist of coloured dots
but other way around isn't really possible
Yeah
so I have this png
and I want to draw some vectors over the top of it to make an SVG
trying to figure out how to do it
Hm
Well isnt there a clipping mask option?
Yeah
it's bumpy
I want perfect curves
so I'll just have to manually draw over it
just need to find out how to use this program
yes, I can
hi
so this is the imported png
I can't talk because of some kinda voice system
I wanna draw over it
yes
Hm well I never used that program so I cant help that much :((
Lol um
or whatever thing adobe makes for vectors
Oh ok
Oh ok
Oh oke
Great π
If the only copies you have for your logo are rasterized formats like PNG and JPG, then you won't be able to reap the benefits of having a vector SVG file, like infinite scaling and being able to edit your logo in the future. In that case, you'll need to generate a vector copy of your logo using vector design software, and that's what I'll be de...
time to watch it
I'll be back later 'cuz I want both screens (one for video one for inkscape) so I can't also watch text chat
see ya
and everyone went in staff
Cya. Hell its much people in staff
@whole bearback again
Yes
Najs :()
Hi again
I want to talk this shit is making me mad
Why is javascript involved in this challange π
not really rn
unless it's short
@plush willow
I'm terrible at that
so I'm the wrong guy to ask
I may be able to help
hello
Avoid it where you can, is my advice. It's okay if you know you're not going to be going too far down in recursion depth, but there are other ways of achieving what recursion does in a more extensible fashion.
There's a heap approach which can be applied.
Ew.
One moment.
heap = [...]
while heap: #while len(heap) > 0
item_to_be_processed = heap.pop()
... #Process. Maybe append another item to your heap, maybe not```
Not a working example, but it could look something like this.
I think anyway.
I've done a similar thing when doing a depth first search algorithm.
vs
def func(v):
... #maybe call #func, maybe...
return processed_v```
Like, whatever you're wanting to return for that level of the recursion.
!or gotcha
When checking if something is equal to one thing or another, you might think that this is possible:
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")
!e print(bool('B'))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
True
assert 'my text string'.split(' ') == ['my', 'text', 'string']```
hi griff, I need you to be a bit less orange today, it is offending our user base
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
from kivy.app import App
from kivy.uix.label import *
from kivy import Config
Config.set('graphics', 'multisamples', '0')
class DemoApp(App):
def build(self):
return Label(
text="Hello world"
)
demo = DemoApp()
demo.run()
looks neat
it can join the Griff Family of Avatars
hellow
!stream 30M @faint smelt
Member "30M" not found.
!stream <member> [duration]
Can also use: streaming
*Temporarily grant streaming permissions to a member for a given duration.
A unit of time should be appended to the duration.
Units (βcase-sensitive):
βy - years
βm - monthsβ
βw - weeks
βd - days
βh - hours
βM - minutesβ
βs - seconds
Alternatively, an ISO 8601 timestamp can be provided for the duration.*
!stream @faint smelt 30M
@faint smelt
β @faint smelt can now stream.
data = list(map(str.strip, data))
thank you Griff, have a good rest of the day
np u2!
!e
from __future__ import annotations
class Basket:
def __init__(self):
self._data: list[Item] = []
def add_item(self, item: Item) -> None:
self._data.append(item)
def __repr__(self) -> str:
return "Basket [\n" + ',\n'.join(self._data) + "\n]"
class Item:
def __init__(self, name: str):
self.name = name
def __repr__(self) -> str:
return f"< Item {self.name} >"
basket = Basket()
apple = Item("Apple")
car = Item("Car")
basket.add_item(apple)
basket.add_item(car)
print(basket)
!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.
@inland turret
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 28, in <module>
003 | File "<string>", line 10, in __repr__
004 | TypeError: sequence item 0: expected str instance, Item found
!e
from __future__ import annotations
class Basket:
def __init__(self):
self._data: list[Item] = []
def add_item(self, item: Item) -> None:
self._data.append(item)
def __repr__(self) -> str:
return "Basket [\n" + ',\n'.join('\t' + str(item) for item in self._data) + "\n]"
class Item:
def __init__(self, name: str):
self.name = name
def __repr__(self) -> str:
return f"Item: {self.name}"
basket = Basket()
apple = Item("Apple")
car = Item("Car")
basket.add_item(apple)
basket.add_item(car)
print(basket)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | Basket [
002 | Item: Apple,
003 | Item: Car
004 | ]
lotteryObject = LotterySystemClass(commands.Cog)
Bot.get_cog(name)
lotteryObject = self.client.get_cog("LotterySystemClass")
lotteryObject.playersEntered
!e
class Example:
def __init__(self, data):
self.data = data
e1 = Example(1)
e2 = Example(2)
print(e1.data)
print(e2.data)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
lotteryObject = self.client.get_cog("LotterySystemClass")
print(lotteryObject.playersEntered)
except Exception as e:
print("[LOTTERY] values were empty:", e)
except IndexError:
print("[LOTTERY] values were empty:")
embed.set_author(name=self.client.get_user(randomChosen).name, icon_url=self.client.get_user(randomChosen).avatar_url)
if (user := self.client.get_user(randomChosen)) is None:
user = await self.client.fetch_user(randomChosen)
user = self.client.get_user(randomChosen) or await self.client.fetch_user(randomChosen)
^
!e
test = None
x = test or 5
print(5)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
5
!e
test = None
x = test or 5
print(x)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
5
user = self.client.get_user(randomChosen) or await self.client.fetch_user(randomChosen)
from dispair import Router
from dispair.models import Interaction, Option, Member
from dispair.utils import Embed
router = Router()
@router.interaction(name="embed", description="Embed your message.")
async def embed(
inter: Interaction,
title: str = Option(desc="Title for the embed"),
description: str = Option(desc="Embed Description", required=False)
):
return Embed(title=title, description=description)
dispair marketing on point π
@severe pulsar should I do this?
from dispair import Router
from dispair.models import Interaction, Option, Member
from dispair.utils import Embed
router = Router()
@router.interaction(name="embed", description="Embed your message.")
async def embed(
inter: Interaction,
title: str = Option(desc="Title for the embed"),
description: Optional[str] = Option(desc="Embed Description")
):
return Embed(title=title, description=description)
so its typed as Optional rather than having a kwarg for description
i'll swap it over
@ashen rapids sudo yum βy install httpd
yumdownloader httpd

currently doing async exception handling for assigning the handlers
never done it before
π¬
yumdownloader httpd
rpm -qpi httpd-*rpm
rpm -qpc httpd-*rpm
yum groupinstall "Web Sesrver"
this doesnt really look scared, more frustrated/nervous
me irl
yep
tt
Chris Heria breaks down how to Muscle Up the best way in 3 easy steps!
For more workout routines & programs by Chris Heria visit heriapro.com and download the HERIA Pro App in the App Store!
Follow us:
@chrisheria
https://www.instagram.com/chrisheria/
Instagram: @chrisheria
@weightvest
@heria.shop
...
the "free" version
you don't know pycharm at all?
It's a work environment for py
highly recommended
vim?
oh lol
if i do full stack and work with a few langs i prefer vscode
better option
oh wait i can talk
sec
Isn't it a holywar?
hlo
Good morning @rugged root
!voice @hearty wyvern
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
We should make that embed color blurple ^^
will join vc in ~30 :P
!ytdl
Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders as their usage violates YouTube's Terms of Service.
For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:
The following restrictions apply to your use of the Service. You are not allowed to:
1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service; (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;
3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTubeβs robots.txt file; (b) with YouTubeβs prior written permission; or (c) as permitted by applicable law;
9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
Player accounts (as of October 2020, with at least one game)
391 mln
Yearly active players
171 mln
PlayStation Plus subscribers in October 2020
48.5 mln
!e print(32 * 32)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
1024
!e print(1024 * 120)
Average age of playstation player is: 28
!e
secs = 122880
mins = secs / 60
hours = mins / 60
print(f"{hours} Hours")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
34.13333333333333 Hours
This is a list of the most-played video games ordered by their estimated player count, which include downloads, registered accounts, and/or monthly active users. This list does not include games with official sales figures; those are located at the list of best-selling video games page instead. This list is also not comprehensive, because player...
PlayerUnknown's Battlegrounds #!
Wait, seriously?
#1 with 1,037 million active users
!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!*
I forgot to say this before but Hello everyone in vc :()
!tvban 780449492620935168 2w You've had issues with joining the voice chat and either making loud noises, blowing into the mic, etc. If this continues after this temporary voice ban, you will lose voice permissions entirely.
:incoming_envelope: :ok_hand: applied voice ban to @clear shadow until 2021-06-07 14:37 (13 days and 23 hours).
Really not in the mood to have our folks subjected to it
@paper tendon If I have to get on people for interrupting conversations, you also will catch flak for it
It's rude and disrespectful
later kidos. Have a work to do.
What is this?
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.
We all know it's pastebin, but I mean "what's this you're making on pastebin".
Okay
> ck.
Server: one.one.one.one
Address: 1.1.1.1
Non-authoritative answer:
ck nameserver = parau.oyster.net.ck
ck nameserver = poiparau.oyster.net.ck
ck nameserver = downstage.mcs.vuw.ac.nz
ck nameserver = circa.mcs.vuw.ac.nz```
;-;
On the topic of Cook: https://www.youtube.com/watch?v=Df-uemc-e3w
Some clips from Mitchell and Webb
This is as close to the movie version of "Hearts on Fire" as it gets.
This track has both the double-electric guitar solo (which most download versions lack) and the extended ending.
Song: Hearts on Fire
Artist: John Cafferty
From the Rocky IV (1985) Soundtrack
My no 1 running montage music: Runrig Abhainn an t-Sluaigh (The Crowded River)
it exist : https://www.furaffinity.net/view/24013936/
π
hi?
:incoming_envelope: :ok_hand: applied mute to @short gate until 2021-05-24 15:48 (9 minutes and 59 seconds) (reason: mentions rule: sent 6 mentions in 10s).
Well
why are so many people muted o_0
nothing to say π
as being from a none software stream, what are some good tips to keep in mind while trying out programming?
ill unmute when i have something to say lol
Why are you?
big sus π
Because
hmm...
does voice chats have rules (except stuff like not being an assh0le)
Provided to YouTube by The Orchard Enterprises
They're Coming to Take Me Away, Ha-Haaa! Β· Napoleon XIV
They're Coming to Take Me Away, Ha-Haaa!
β 1966 Wise Brothers Music
Released on: 1966-05-23
Music Publisher: Wise Brothers Music LLC
Auto-generated by YouTube.
That's good
Music video and lyrics - letras - testo of 'We Will All Go Together When We Go' by Tom Lehrer. SongsTube provides all the best Tom Lehrer songs, oldies but goldies tunes and legendary hits.
!e
print("hello vc!")
@slender turret :white_check_mark: Your eval job has completed with return code 0.
hello vc!
wait who said hi to me
stonks
hello hemlock
hey :P
Just talking about random stuff at this point
@ Rabbit whats your favorite database
Whatever works
alright cool
Find waldo
there
Where's Wally? is what it's called in Australia.
I like Azure Cosmos DB but it being only in the cloud sucks
ill have a look at that
god my 2012 mac pro gets hot randomly
aah its a serverless database
There is a local emulator but Python get mad at it
thats nice
π
willy what
google showed me a picture of sausages
have you seen the new Dataless databases?
that gives me an idea
oh no
questionable vc
im gonna make a database
which accepts data
woah that sounds really cool. very open to checking it out. Do you know about the feature where it just drops all your tables?
pastebin but literally
i'm literally out of the loop of every topic in this vc
dont worry ive been in vc for a couple hours a day for a few months
and im still out of the loop
Hi always here I'm @slender turret
you stole my joke
Hi "you stole my joke", i'm @uncut meteor
this discord is great
I'm glad you think so
big dolphins orca swimming
interesting
anyways
I have like one month until I have to prepare for high school entry exams
fuck.
i technically have one more year but preps start from now
we fish cods and build weeds?
what
oh seaweed
Link is abducted?
abducted?
Zelda.
is
you guys ever build plastic models>
?
o_0
not plastic?
well
i'm mostly referring to those plastic model kits like
erm
gundam>
?
yeah that counts
this vc is so awkward
chinese is a hard language man
what.
flight sim?
holy shit
hmm
hi be back
lloll
What's up?
@commands.command(name="help", aliases=["h", "H", "Halp"])
async def help_command(self, ctx):
"""Helps the person that runs this command."""
dababy_commands = []
rickastley_commands = []
amogus_commands = []
hellp = discord.Embed(title="HELP!", color=discord.Colour.random())
usage = lambda cmd: f"{cmd.name} {command.signature}"
for command in self.bot.commands:
if command.cog == "dababy_commands":
dababy_commands.append((f"{ctx.prefix}{usage(command)}", command.short_doc))
elif command.cog == "rickastley_commands":
rickastley_commands.append((f"{ctx.prefix}{usage(command)}", command.short_doc))
elif command.cog == "amogus_commands":
amogus_commands.append((f"{ctx.prefix}{usage(command)}", command.short_doc))
dababy_help_string = "".join([f"`{pair[0]}`\n{pair[1]}\n\n" for pair in dababy_commands])
rickastley_help_string = "".join([f"`{pair[0]}`\n{pair[1]}\n\n" for pair in rickastley_commands])
amogus_help_string = "".join([f"`{pair[0]}`\n{pair[1]}\n\n" for pair in amogus_commands])
hellp.description = "This is the dababy bot help menu" +\
f"\n**Dababy Commands**\n\n{dababy_help_string}" +\
f"\n***Rick Astley Commands***\n\n{rickastley_help_string}"+\
f"\n****Amogus Commands****\n\n{amogus_help_string}"
await ctx.reply(embed=hellp, mention_author=False)
Code
The last r/help output is what I am getting.
There is no error but it can't find my cogs for some reason I think.
I'm looking
Thanks.
use the cog_name attrubite on Command
where?
I will send you an invite to my test server can you try this there?
@frigid panther
cog_help = defaultdict(list)
for command in self.bot.commands:
cog_help[command.cog_name].append((f"{ctx.prefix}{usage(command)}", command.short_doc))```
this shouldn't mess up cog names
wait
Cause I have written this in dababy_commands.
Just another thing I want to point out.
@commands.command(name="help", aliases=["h", "H", "Halp"])
async def help_command(self, ctx):
"""Helps the person that runs this command."""
hellp = discord.Embed(title="HELP!", color=discord.Colour.random())
hellp.description = "This is the dababy bot help menu\n"
usage = lambda cmd: f"{cmd.name} {command.signature}"
cog_help = defaultdict(list)
for command in self.bot.commands:
cog_help[command.cog_name].append((f"{ctx.prefix}{usage(command)}", command.short_doc))
for cog_name, commands_desc in cog_help.values():
help_string = "".join([f"`{pair[0]}`\n{pair[1]}\n\n" for pair in commands_desc])
hellp.description += f"**{cog_name}**\n\n{help_string}\n"
await ctx.reply(embed=hellp, mention_author=False)```
you can import defaultdict from from collections import defaultdict
So should I just write this instead of this?\
Yes.
Ignoring exception in command help:
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/runner/Memes-bot/bots_memes/dababy_commands.py", line 19, in help_command
for cog_name, commands_desc in cog_help.values():
ValueError: too many values to unpack (expected 2)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ValueError: too many values to unpack (expected 2)
!rule 6
!rules
The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.
!rule 9
Edgelord Hemlock
@rugged root Hallo! Can't talk, mic does not cooperate with my Linux unless you like very dodgy audio
Decent, rushing around 7 deadlines at once because finals are drawing near, but decent
Rocket League... "Soccar"?
@icy axle Did the gurkan have to generate a histogram today?
Such a bummer
mmm
Hey @frigid panther
Yep, same
what time is it there
who is having numbness
can u tell me where
u getting in?
little finger or
thumb?
if u getting numbness in ur little finger or ring finger
i suggest u to give rest to your hand
I've become so numb I can't feel you there
it may lead to permanent nerve damage
it happens when u press your funny bone near ur joint
get compressed by
it happens becoz of ulnar nerver compression
come to my home i will give u best feeling
:lenny:
gtg o/, time to sleep
Night!
sleep time for me too
In the United States and Canada, Mexican Coca-Cola, Mexican Coke (Spanish: Coca Cola de Vidrio (English: Glass Coca Cola, or Coca Cola in a glass bottle)) or, informally, "Mexicoke," refers to Coca-Cola produced in and imported from Mexico. Mexican Coca-Cola has become popular in the United States due to its characteristic flavor that results fr...
harlequin ichthyosis
much worse
I'll rue the day that I will have to update the firmware on my toaster π
Internet of Shit Twitter account is always a thing
They were "free" headphones
and apparently they are 299 so I guess I can't complain
Β―_(γ)_/Β―
I am not cut out for this modern world, especially one where touchscreens have replaced the reliable technology of a βhandleβ in bathroomsβand where you canβt wash your hands because βinternal storage running outβ means βapplications & system functions may not work wellβ
1564
5396
wanna vc but my seat is occupied
function add ($num1, $num2) {
5 + 3
return $num1 + $num2
}
$b = add -num1 10 -num2 10
$b
$b.gettype()```
Traceback (most recent call last):
File "main.py", line 31, in <module>
bot.load_extension(f"hubs.{cog}")
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 676, in load_extension
raise errors.ExtensionNotFound(name)
discord.ext.commands.errors.ExtensionNotFound: Extension 'hubs.h' could not be loaded.
!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.
function add ($num1, $num2) {5 + 3;return $num1 + $num2};$b = add -num1 10 -num2 10;$b;$b.gettype()```
It is 1:30 am and I am still working on it.
Yeah.
Can someone help me?
Traceback (most recent call last):
File "main.py", line 31, in <module>
bot.load_extension(f"hubs.{cog}")
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 676, in load_extension
raise errors.ExtensionNotFound(name)
discord.ext.commands.errors.ExtensionNotFound: Extension 'hubs.h' could not be loaded.
#Import Discord library!
import discord
#Importing commands
from discord.ext import commands
# This is the variable that will define
# an instance of dababy bot.
from dotenv import load_dotenv
#importing getenv to run the token
from os import getenv
#importing env
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix = "!",
intents = intents)
@bot.event
async def on_ready():
"""Tells the owner if the bot is running and ready to go."""
print(f"\n======================\nBot is now on standby\n======================")
bot.remove_command('help')
cogs = ("hub")
for cog in cogs:
bot.load_extension(f"hubs.{cog}")
@bot.command()
async def restart(ctx):
for cog in cogs:
bot.reload_extension(f"hubs.{cog}")
await ctx.message.add_reaction(":check:")
@bot.command()
async def reload(ctx, extension):
bot.reload_extension(f"hubs.{cog}")
await ctx.message.add_reaction(":check:")
load_dotenv()
TOKEN = getenv('TOKEN')
#Run commmand
bot.run(TOKEN)
Traceback (most recent call last):
File "main.py", line 49, in <module>
bot.run(TOKEN)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 723, in run
return future.result()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 702, in runner
await self.start(*args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 666, in start
await self.connect(reconnect=reconnect)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 601, in connect
raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
I mean, error message is pretty clear
So you should go to the bot tab in your application and enable these
@flint skiff You mean like this?
@hollow haven Wait, you stopped being cringe?
policticts
go then
Bye π
Sleep calls me.

@rancid oyster Please don't just come in the chat in interrupt a current conversation. If you need help #βο½how-to-get-help check out this channel.
Or check out the topical channels if your problem apply's to one of them.
Alright I am gonna head out π
oh
@amber raptor here's a pic of my arsenal
Mind what you do with that image, it's classified
Must be a French arsenal
Dutch, actually
A Venezuelan man confessed to killing Dutch cop Ferry BakxΒ after the officerΒ caught him and others in the act of a robbery on Bonaire in August last year. The confession was made on the first day of a three-day trial against six Venezuelans and one man from Bonaire for Bakx's murder, RTL Nieuws reports.
Traceback (most recent call last):
File "C:\Users\IvanV\PycharmProjects\pythonProject2\refresh_token.py", line 69, in <module>
sys.exit(main())
File "C:\Users\IvanV\PycharmProjects\pythonProject2\refresh_token.py", line 25, in main
data = client.recv(1024).decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 8: invalid start byte
Op Schiphol is vandaag 300 kilo cocaΓ―ne onderschept en in beslag genomen. Het CargoHarc-team Schiphol, een samenwerking van Marechaussee met @FIOD en @Douane doet verder onderzoek. https://t.co/JrEFQJfptk
American cops during traffic stop
it implies that the traffic is the helicopter
!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.
Traceback (most recent call last):
File "C:\Users\IvanV\PycharmProjects\pythonProject2\refresh_token.py", line 69, in <module>
sys.exit(main())
File "C:\Users\IvanV\PycharmProjects\pythonProject2\refresh_token.py", line 25, in main
data = client.recv(1024).decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 8: invalid start byte
\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03P\x99\x87\xa1>\xf4hl\xae\xcb=\x96\xa4\xe1\xa8{\x1ej\xb8\xe6&\x96\x88y\xd06\xe7E\xd2\xcb\x7f\xf4 1^\xf07\xf3-\x9b\x90\xb4\xf7\x85\xf3>\x10\x8a\xad\x93\xa8;-\xe1\xa08\xb9\x87\x90\xc7\x0b\x0f4;\x8a\x00 \xba\xba\x13\x01\x13\x02\x13\x03\xc0+\xc0/\xc0,\xc00\xcc\xa9\xcc\xa8\xc0\x13\xc0\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x01\x93\xca\xca\x00\x00\x00\x00\x00\x0e\x00\x0c\x00\x00\tlocalhost\x00\x17\x00\x00\xff\x01\x00\x01\x00\x00\n\x00\n\x00\x08::\x00\x1d\x00\x17\x00\x18\x00\x0b\x00\x02\x01\x00\x00#\x00\x00\x00\x10\x00\x0e\x00\x0c\x02h2\x08http/1.1\x00\x05\x00\x05\x01\x00\x00\x00\x00\x00\r\x00\x12\x00\x10\x04\x03\x08\x04\x04\x01\x05\x03\x08\x05\x05\x01\x08\x06\x06\x01\x00\x12\x00\x00\x003\x00+\x00)::\x00\x01\x00\x00\x1d\x00 \x15Xo\xde2\xfa\xff4\xfb\x98\n\xd4\x11>\x8e\xe08\x1e\x1dKuO\xca.\xc4\xe8s\x01p\x8e/\x00-\x00\x02\x01\x01\x00+\x00\x0b\n\xfa\xfa\x03\x04\x03\x03\x03\x02\x03\x01\x00\x1b\x00\x03\x02\x00\x02::\x00\x01\x00\x00\x15\x00\xd3\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
No Idea what's wrong with my mic, but I could hear it myself in test mode. Sorry for that.. ehm... electronic music
Not worth it. Going to go anyway. Just waiting one more minute to get something off my chest
alright
So, minute's over. I am leaving, but before: Happy Towel Day everyone!
u2
the horror.
What is the staff meeting about? Has someone proposed a ridicule campaign to be funded in perpetuity by people tired of wasting vertical space on "}"?
I'd kick in a cool $20 on that
@tomayac @LaurenGoode @GoogleARCore I'm still convinced pyodide is the future https://t.co/N82aTipU0A
Right, sudo apt dist-upgrade running with hirsute's repo on KDE neon
Nothing breaks so far
perhaps they were discussing the relative merits of jam and peanut butter
π
beautiful
shouldn't this be originalet
where is this from
his pdf
does anyone know about schedulers in python?
i have a function which needs to run continuosly from 10:am to 3:00pm
so i tried using schedulers
self.completeness = completeness or {i: {j: False for j, _ in row.items()} for i, row in data.items()}
just got past 100 commits π₯³
int m=Ξ±;
for (i=1; i<=2; i++)
{
m=m+2;
for (j=1; j<=3; j++)
m=m-1;
}printf(βm=%d i=%d j=%d\nβ, m,i,j);```
i know its a C problem
but the print of i, j is 1 right?
!rule 8
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
int m=Ξ±;
for (i=1; i<=2; i++)
{
m=m+2;
for (j=1; j<=3; j++)
m=m-1;
}printf(βm=%d i=%d j=%d\nβ, m,i,j);```
What does it print?
Yep
Because i and j are just inside for loops scope
Sorry repeat your question?
No
int m=Ξ±;
for (i=1; i<=2; i++)
{
m=m+2;
}
for (j=1; j<=3; j++) {
m=m-1;
printf(βm=%d i=%d j=%d\nβ, m,i,j);
}
thats the same
printf was outside
What exactly do you want to acheive?
?
Oh I see
so the problem was initial wrong
Makes sense
Morning π
Why is "Careless Whispers" going through my head
What is Careless Whispers?
by george michael I think
Yep
yep
"Careless Whisper" is a song by the English singer George Michael. It was written by Michael and Andrew Ridgeley of Wham! and was released on 24 July 1984 on the Wham! album Make It Big.
The song features a prominent saxophone riff, and has been covered by a number of artists since its first release. It was released as a single and became a huge...
I thought it was the name of a book, film or something.
You guys should check #help-lemon.
@rugged root I just wanted to say
I broke Manjaro again
Itβs good itβs good
:D
Brokejaro
Lol
welcome to my club
Damnjaro
At least this time I didnβt delete Python!
How luck you are
Don't feel bad I dropped 2 databases on accident within 5 minutes of each other
Python is just bloatware
Omg shsggsgs
Mhmmmmmm
UX++
I broke my computer by deleting the ISO file before installing the OS
Tell me I'm laughing.
Suddenly I have no OS
hello, there does anyone knows about schedulers in python?
It's been like a few hours and someone's already done amogus
@severe pulsar
hey!
(ping me) was mostly for people in help channels lol
in case they needed more help
I need help
its harder for me to go through all help channels to see where ive helped previously
with what lol
What do you need help with?
life
π¬
You need some life advice
wait are you not Jake
Who's jake?
ok
Ooo life advice
:ok_hand: Added anti-monke-pixels to the names list.
abeigh abiegh
Ameiva Amieva
backspeir backspier
beild bield
beinly bienly
beinness bienness
beseige besiege
Ceil Ciel
clupein clupien
cruzeiro cruziero
cruzeiros cruzieros
deil diel
Deina Diena
Deirdre Dierdre
deities dieties
disheir dishier
dreich driech
dreigh driegh
eir ier
enceinte enciente
fantaseid fantasied
fei fie
feif fief
feint fient
Freida Frieda
freir frier
gein gien
Geiss Giess
glabreity glabriety
Greig Grieg
greige griege
hei hie
heild hield
inconceivable inconcievable
Issei Issie
Keifer Kiefer
Keil Kiel
Keir Kier
keirs kiers
keisters kiesters
Keita Kieta
kleig klieg
Kreis Kries
Leibman Liebman
Leif Lief
leiger lieger
Leitman Lietman
Lorelei Lorelie
manei manie
mein mien
Mireille Mirielle
Mureil Muriel
Neil Niel
Neila Niela
Neils Niels
Neilson Nielson
pein pien
Peirce Pierce
pleis plies
poleis polies
refreid refried
reim riem
Reis Ries
Reisman Riesman
Reiss Riess
Reith Rieth
reiver riever
reivers rievers
releivo relievo
releivos relievos
Seiber Sieber
seige siege
Seigel Siegel
Seigler Siegler
sheiling shieling
skeich skiech
skeigh skiegh
speil spiel
speiled spieled
speiling spieling
speils spiels
speir spier
speired spiered
speiring spiering
steid stied
vei vie
Veit Viet
Wei Wie
Wein Wien
Weiner Wiener
weiners wieners
Weir Wier
weirangle wierangle
weird wierd
Zeigler Ziegler
Ceil Ciel
You had a good luck
I can't even hear in the voice channel π’
Why is it like that?
hello guys
Hello :))
I'm new here
I can't think, and I'm blaming the fact that the floor seems to be lava.
where are you guys from?
According to the chanting kid any way.
I'm from india
@plush prawn nice im also from sweden :))
brb
A parody of 'You Give Love a Bad Name' - about hypermedia APIs. No, really.
lol
m.2?
LMAO
device.......................................................................................................................................
Buy: https://burialgroundforbutterflies.bandcamp.com/releases
Genre: Post-Rock, Instrumental
Artist: Burial Ground for Butterflies
Track: Do you mind if I wear it when you're gone? (March 4, 2021)
Country: Portugal
Follow Burial Ground for Butterflies
Post-Pedia profile: http://bit.ly/3rx9DYr
Instagram: https://www.instagram.com/burial.ground....
which is it?
fsh
Utah Division of Wildlife Resources drops hundreds of thousands of fish out of airplanes into their mountain lakes every summer to restock them for fishing and hiking season. Without these aerial fish dumps, the state's high-altitude southern and central lakes would be fishless.
Find out more about the Utah Division of Wildlife Resources at htt...
70,000 fish were stocked in alpine lakes via helicopter in August.
Subscribe for more: http://bit.ly/2jwNfv0
Watch other fish hatchery videos: http://bit.ly/2q07xnb
We stock over 5 million fish each year into Wyoming waters. That's nearly 10 times the population of Wyoming (in fish) stocked every year.
About 70,000 of those fish are stocked in...
Paratroopers from the 82nd and 101st Airborne Division perform static line jumps from C-17 Globemaster III aircraft over Sicily Drop Zone at Fort Bragg, North Carolina.
AiirSource Military covers events and missions from the United States Armed Forces: Army, Navy, Marine Corps, Air Force, and Coast Guard.
Visit our channel for more military vi...
Fish sUpport Nuclearreactor
i propose: "Fish SuN"
I like it here. The first time i am in the Vc you guys are talking about fish canons XD
It's always an adventure here
yeah :D
oh god the nostalgia https://www.strandedonline.de/s2/screens/screen5.jpg
Got to go and represent Python in a game dev server, see you later. π
Looks like Runescape but with more trees
well its more of a survival
Sure sure
!voice Yeah, here's the details about it
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Techniclauncher is pretty cool to create easy modpacks and play with friends ig
MultiMC >>>> anything else
especially twitch/curse or whatever that launcher is named now
I don't know this so i can't say anything about it ^^
thx
Theres always that one guy at the workplace
"Hey officer jim going out to deface some child's remains today?"
sata, unfortunately
Still damn fast
Guido van Rossum is a Dutch programmer best known as the creator of the Python programming language, for which he was the "Benevolent dictator for life" (BDFL) . Come join us for an open Q/A "Ask me Anything" to get to know how PyCon was born and Guido's amazing journey
If you are interested in joining PyCon click here: https://us.pycon.org/20...
me
I remember using that JandJ shampoo as a kid
A command line tool which allows you to run the code in your
markdown files to ensure that readers always have access to working code.
docrunner python --markdown-path README.md --multi-file
async def run_code(lang, code):
async with bot.http.HTTPClient_session.post("https://emkc.org/api/v1/piston/execute", json={ 'language': lang, 'source': code}) as x:
return (await x.json())['stdout']
!e ```py
from ctypes import py_object
class NoMore:
def str(self):
return "baby don't hurt me"
py_object.from_address(id(True)+8).value = NoMore
what = love = object()
print(what is love)
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
baby don't hurt me
@zealous wave send me that application/link you belive is malicious
I do reverse engineering
what language are you using @severe pulsar
Sorry?
ignore me
Oh fair enough
Word: Procrastination
Definition: Idk ill fill this in later.
LMAO
@rugged swift Sorry, I typically don't accept friend requests until I get to know people more
That's totally fineπ , I hope we'll get to know eachother soon
Still cant get over the fact that bestpy has 85 commits, tests , and 3 github workflows π π
I love this @ Vestergurkan
Hahahhahah
Haha thanks
A public sandbox for learning web scraping
F-strings
Always f-strings
Okay, NOW I'll be right back
alright π
For lessons yes
this and context managers
But just using it as a testing ground is more what I was referring to
@whole bear if you want a video tutorial
Buy Me a Coffee? https://www.paypal.me/jiejenn/5
Your donation will help me to continue to make more tutorial videos!
Web Scraping is a very useful skill for anyone who works in the data analytics industry. In this video I am going to show you how to scrape the largest manufacturing companies by revenue table from a Wikipedia page using Python ...
I think Automate the Boring Stuff has a section on it as well
Okay, now for reals being of the right back
!e ```py
print(ord('a'))
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
97
@dense ibex you know you've reached peak python discord clout when you have an off-topic channel named after you
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
Hello world!
h
h
Why you bully me chili π¦
Maybe I'll write it some day
aah
call the manager looking ass people
lmao
In pygen π
Why did it respond with that emoji π€
Hi LX π
π
!u

Created: 1 year, 3 months and 29 days ago
Profile: @dense ibex
ID: 670802831678373908
Joined: 4 months, 21 days and 3 hours ago
Roles: <@&463658397560995840>, <@&764802720779337729>, <@&764245844798079016>, <@&585529568383860737>, <@&267630620367257601>, <@&787816728474288181>
Total: 1
Active: 0
π
lol
!u
You are not allowed to use that command here. Please use the #bot-commands channel instead.
π¬
Jake flexing his helper permissions 
I wish I was helper π¦
Tbh, I didn't know you can't do !u in this channel.
Yeah ig you can't
help out in help channels and stuff, help in code help vc sometimes?
Only because the embed is so large
I see a wild Vestergurkan on the pixels canvas π
;))
Can we get
on there somewhere...
π₯
π
damn is that actually hemlock
thats amazing
What I think would be cool is a script that reacts to what is on the canvas somehow π€
π
I've been thinking about making a game of life thing... should we join computing power and create an area for it soonβ’οΈ?
The European , always throws me π
soonβ’οΈ
is it new?
Thats actually a great idea π
if you want to save storage while programming in javascript/typescript
Are you a JS developer with a full hard drive? Learn a powerful command π₯ to analyze and delete all your "node modules" folders quickly.
#js #webdev #shorts
Official docs https://npkill.js.org/
@wind cobalt thought I recognised that voice lol
indeed
I remember when macbooks had removable batteries with built-in power indicators 
Yeah flameshot is pretty epic
uhhh, audio borke
ChainMap
!d str.translate
str.translate(table)```
Return a copy of the string in which each character has been mapped through the given translation table. The table must be an object that implements indexing via [`__getitem__()`](https://docs.python.org/3/reference/datamodel.html#object.__getitem__ "object.__getitem__"), typically a [mapping](https://docs.python.org/3/glossary.html#term-mapping) or [sequence](https://docs.python.org/3/glossary.html#term-sequence). When indexed by a Unicode ordinal (an integer), the table object can do any of the following: return a Unicode ordinal or a string, to map the character to one or more other characters; return `None`, to delete the character from the return string; or raise a [`LookupError`](https://docs.python.org/3/library/exceptions.html#LookupError "LookupError") exception, to map the character to itself.
You can use [`str.maketrans()`](https://docs.python.org/3/library/stdtypes.html#str.maketrans "str.maketrans") to create a translation map from character-to-character mappings in different formats.
See also the [`codecs`](https://docs.python.org/3/library/codecs.html#module-codecs "codecs: Encode and decode data and streams.") module for a more flexible approach to custom character mappings.




