#dev-contrib
1 messages · Page 61 of 1
:ok_hand: Added hemlock’s-pipe-dreams to the names list.
I have to grow them in the field because I can't grow them on my face
Here we have a visual of what it could look like
This is built on square pieces (except for the face, but we'll fix that)
@mellow hare @crude gyro
this is fun, but it's simple
And this one assumes that we fill up the squares completely. There is an alternative, which could look better
I think more entropic and uneven tiles would look better
Something like a slight curve on the edges?
this looks like a dirty yellow centipede
MAKE IT STOP
😆
that's fun, though
This is just so confusing to the brain. I don't know if I love or hate it
Needs some work
I still think it should be the slight angle we're used to but it turns the beard directly to the right
Or whichever direction
I'll give that a try. It's probably a good idea
it seems the meme of this channel is lemon's beard
it appears my most excellent co-owner @hardy gorge has gone ahead and created #dev-branding for us to discuss lemojis, ducks, animated server icons, banners, and other pydis assets in, gentlemen.
so let's make sure we use that
lemon is tha you?
sure is
That's lemon's beard
such a long beard
Here's a concept for making it go sideways, but it would be a lot more difficult than having a 90° or 0° rotation
Aah, that's awesome!
you could make it smoother without the lines
They wouldn't be there when it's ready. We moved the conversation to #dev-branding, though
Look at the code if you wanna know
Umm ok but ......
But what?
https://github.com/python-discord/site/pull/378
this PR should be good for review now. All conflicts have been resolved.
@green mesa it changes daily, they are right
@crude gyro the non-repeating .topic command you suggested/requested is finished. See the PR here: https://github.com/python-discord/seasonalbot/pull/435
lemon's beard was so short lmao lmao https://www.youtube.com/watch?v=DIBXg8Qh7bA&ab_channel=PythonDiscord
To celebrate the Python Discord server reaching 15K members, one of the server owners, Lemon, and a moderator, Eivl, have teamed up to do a tribute to Hot Ones by First We Feast while answering questions from the community.
All credit goes to First We Feast for the hot sauce...
Sorry, but why are you posting this here? Seems off topic.
hi
This doesn’t seem to be the right channel for that. I’d recommend checking out #❓|how-to-get-help
i asked in python genral but no one responded
tried again in python genral and got help from wattle
now problem solved 😄
@long brook
nice
@tough imp Hey sorry to bug you. Do you think you'd have time to take care of the https://github.com/python-discord/bot/pull/1077 config changes when you get a chance? That seems to be the only thing stopping us from pushing it through
Hi I will work on it today
I made the changes a few days ago but I hated the way it turned out so I didnt push yet
going to give it another try
We won’t reach 100k any time soon, will we
I talked to Joe about that a few days back. We aren't planning on hitting it before "the purge"
we have a day and a bit
You always !int e the purge
huh?
You can use an internal eval to do the purge if the PR isn’t merged yet, using a little script
@tough imp No worries! I just appreciate you taking the time
i am waiting for one more check to pass only 1 check left on my pr at seasonal bot
😄
then wiki command will be added
On https://pythondiscord.com/pages/contributing/, I think links to the contributing guides would be great
I thought that would bring me to github
Maybe specify that it'll take you to the guide?
It isn't the first time that I hear about someone having issues figuring out how to access the guides tbh
I could open an issue about it on the site. Feels like something we should fix
Yup
Or if someone else could do it? I'm working on the ultimate lemoji beard right now
Is this channel for contribution to Python or Python?
Like CPython or @stable mountain?
Its about talks regarding contributions to our projects
Be it SeasonalBot, site, @stable mountain
@stiff marsh I think #internals-and-peps would be the place for discussing contributions to CPython. Read the description there
yeah we are aware the UX of the site is not great
Yeah hahah. I’ll just add the fact that the menu is hidden, while the social links are prominent
@ancient salmon please ask in #python-discussion or #❓|how-to-get-help
The bot seems to have been quite slow at closing help channels today. Takes a few seconds
Here’s a case when someone closed it twice, with two responses from @stable mountain
The verification process is running, so ratelimits will be tight for a few hours
Aah, alright. That explains things
A help channel just opened at the top of the list. Was that an admin moving it or was it an issue with @stable mountain?
We always have 2 help channels available so not sure whats wrong
Have a look at #help-peanut
When it was claimed, or sometime around there, it was at the top of the occupied category @subtle kraken
Interesting
Maybe it was an admin moving it. Otherwise, it’s very, very odd
I suppose it could be some issue on discord API side of things
How could that happen? Would Discord just place it somewhere other than instructed?
It could be accidental drag but in such case it shouldnt matter too much
Once the channel gets closed it should all be good again
ya it's most likely someone's misclick
Yeah
Could be
If it happens more frequently we could introduce a bit of logging of "position after the move" in that category
Or a check if it's in the correct position, just to make sure it's not a bug on our side somewhere
@hardy gorge Can't you see that in the audit log? At 12:30, the channel was opened, I believe
discord doesn't log moving of positions
Really? I thought it did
nope
removed the 30 minute lookback hack on https://stats.pythondiscord.com so you can now watch things in sort-of-realtime
Public statistics for the Python Discord server
(as in, 5 minute cache)
i'm surprised our member count is still moving up
It has actually started to decrease, it seems
I checked the count in #bot-commands a few minutes back
that would make more sense
Yep. This is the member count on https://stats.pydis.com as well
Public statistics for the Python Discord server
loll
It's going down for real
localStorage caught you out
This is officially bullying joe
i like grafana better
looks like it's going swell
I to agree grafana is better for stats
grafana will update faster yeah
no I mean it looks nicer
The 10k purge has started?
it'sa 15k purge lol
we are optimistic of 5000 people realising what is going on /s
so 15k ppl get kicked out? in this
could be miscalculation slash we got 5000 people out of nowhere
i dunno what is purge
we are kicking unverified people
we've grown a lot since then
we are kicking unverified people
@subtle kraken okh
but what about those who just got in?
if you stay in our server for 30d without verifying yourself you will be informed that you were kicked, why, invite link to join back
nothing happens to them
ok
we already evaluated who deserves what
after 3 days with no roles you are unverified
after 30d you are kicked if you still only have that role
you can read about it more in detail in the amazing PR @tough imp did
@sullen phoenix eeeh the issue said 10k lol
@green oriole lol
damn!
and here we
Quite insane to watch
I actually checked it out a few minutes back. Is there a bump in members that are joining, considering the invite DM?
and are they verifying this time?
there was like a 1:1 ratio of people joining and verifying
amazing
so it took us about 29 days to get 15k members, interesting
lol
last 7 hours
Do we have a graph of the amount of members that are joining? Not amount of members
That's quite a bit higher than usual, right?
yes it is
Those red blocks look like some admin had gone rouge hahaha
I like how that's not consistent
past 7 days
That's awesome. Seems like people join when being kicked and DMed
yeah, the DM on join has helped a lot as well i suspect
Aah, yeah
Hi. How do I make a contribution to python discord projects? I had gone through this site https://pythondiscord.com/pages/contributing/bot/. But if anyone can explain me from 'docker' section, it would be really helpful. Thanks!
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
@wintry trellis in guide everything is mention just follow it
U don't need to worry about docker
well, you kind of do have to worry about docker
Can we contribute to @viscid badge ?
it's open source https://git.pydis.com/metricity
Ty 🔥
there's not much that needs doing
Oooo
Yes joe told me it gives metrics
I thought we can also contribute 😅
But np I will contribute to seasonal and py bot🙂
@wintry trellis what were you confused about in the "docker" section?
people can contribute to metricity for refactors/optimisation, but there isn't much that needs adding as of now. long term goal is to replace some more graphite stuff
For the Python Bot, could you make it detect when anyone asks for instance "what is a while loop" or other newbie questions and have the bot post a link to something that tells the user all about it?
it's been considered, but so far no proposed implementation has covered everything
Couldn't you make the bot search for the answer at a certain website like Python.org? Then tag the user to the link? Or is that hard to do
We are adding more to it
It's simpler said than done 😄
Ok lol
How do you determine what a user is talking about? We'd need to invest in advanced natural language stuff or list off a bunch of buzzwords, some which may not be accurate
butu yeah, as Anubhav mentions we do have tags
for example
!f-strings
In Python, there are several ways to do string interpolation, including using %s's and by using the + operator to concatenate strings together. However, because some of these methods offer poor readability and require typecasting to prevent errors, you should for the most part be using a feature called format strings.
In Python 3.6 or later, we can use f-strings like this:
snake = "Pythons"
print(f"{snake} are some of the largest snakes in the world")
In earlier versions of Python or in projects where backwards compatibility is very important, use str.format() like this:
snake = "Pythons"
# With str.format() you can either use indexes
print("{0} are some of the largest snakes in the world".format(snake))
# Or keyword arguments
print("{family} are some of the largest snakes in the world".format(family=snake))
Like if statements. But I know that would be a lot of ifs. Could you have the bot get most of the simple functions (like certain links) from the website then have ifs that get what the user said and if they said something that relates most to a certain link? Would that be easier?
https://pythondiscord.com/pages/contributing/setting-test-server-and-bot-account/#setting-up-a-bot-account after following these steps what do i do? the bot is currently offline and doesn't repond
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
Like if statements. But I know that would be a lot of ifs. Could you have the bot get most of the simple functions (like certain links) from the website then have ifs that get what the user said and if they said something that relates most to a certain link? Would that be easier?
not really, we just can't programatically determine what a user is talking about, the tags system is closest to what you mean I think
@fierce willow py official documentation is not beginner friendly
@short snow continue on with the guide to the next section: https://pythondiscord.com/pages/contributing/bot/#configure-the-bot
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
@patent pivot ok. Thanks! Sorry for using up your time
no need to apologise!
@short snow continue on with the guide to the next section: https://pythondiscord.com/pages/contributing/bot/#configure-the-bot
@sullen phoenix in a forked repo?
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
@green mesa I was using it as an example. I couldn't think of another off the top of my head
Ok
@sullen phoenix in a forked repo?
@short snow you should have the repository locally
one more thing. I downloaded the python bot script. Is it supposed to look like this on some of the py files?
looks fine to me, you just have some odd syntax highlighting
If you’re referring to the large blocks of text, they’re simply docstrings. They’re worth learning about, if you don’t know about them already
Ok. Thanks. But where do I put a bot token for testing?
the code is very well documented
you'll want to look through this guide https://pythondiscord.com/pages/contributing/bot/
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
Ok. Thanks again!
@sullen phoenix Sorry to keep coming back but I'm a little confused about this step at the bottom https://pythondiscord.com/pages/contributing/installing-project-dependencies/#installing-dependencies-with-the-command-line
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
Do I make the env here or in the bot folder?
The project directory means the root of the repository you cloned
The bot is a subdirectory of the project, so no, it would not be in the bot folder.
Ok. Thank you Mark!
what all environment variables should be there in the .env file @green mesa ?
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
@f1re Sorry to keep coming back but I'm a little confused about this step at the bottom > <https://pythondiscord.com/pages/contributing/installing-project-dependencies/#installing-dependencies-with-the-command-line >
@fierce willow in your editor terminal run both command
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
Go to your profile then setting then developer option
for the .env
Not sure buddy😅
np @sullen phoenix sorry for the ping, do i need to install those plugins?
they were auto detected in the .env file
if you want to, sure
i have no idea what IDE you're using lol
it looks very unfamiliar to me
pycharm
just white theme
it came up like this
they are 3rd party that's why i asked
what should be put in CYCLE_FREQUENCY=? in the .env
cycle_frequency = int(environ.get("CYCLE_FREQUENCY", 3)) # 0: never, 1: every day, 2: every other day, ...
ValueError: invalid literal for int() with base 10: ''
``` since when doing `pipenv run start` i got this error in the `/PycharmProjects/seasonalbot/bot/constants.py` file
happened becuase here was nothing with the cycle freq
so what shold i put
(in the .env)
don't put anything
you can just use the default
remove CYCLE_FREQUENCY= from the .env file
ok
what does it mean btw
thanks, it is working now, i will start contributing the issues and a few games
discord.errors.HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji to overcome thi error what all emojis are needed?
@short snow yes last is dustbin emoji

In your server it's not there
So it's raising that error
what else?
ok
i added the transh emoji still not working
nvm i will start working on an issue or making a small game like hangman or mastermind
Ok
!reddit command doesn’t filter nsfw subreddits.
idk if i should submit this issue by making a format or something.
#bot-commands message
so
I thought we did have checks in place for this
but yeah, if you want to open an issue on https://github.com/python-discord/bot/issues that would be nice
I did think it was there already, but evidently not
peculiar
yeah i opened an issue.
I remember checking it out, and it did checked if the first post has the over_18 attribute set to true
Wait a minute
We have a reddit command on @dusky shore and @stable mountain

i used @stable mountain. !reddit
Yeah
But it is really weird, why do we have two commands doing basically the same thing?
Seems like we can get rid of the @dusky shore one, since @stable mountain needs it for #reddit
!reddit
View the top posts from various subreddits.
Subcommands:
!reddit daily [subreddit=r/Python]
Send the top posts of today from a given subreddit.
!reddit subreddits
Send a paginated embed of all the subreddits we're relaying.
!reddit top [subreddit=r/Python]
Send the top posts of all time from a given subreddit.
!reddit weekly [subreddit=r/Python]
Send the top posts of this week from a given subreddit.
huh

I remember checking it out, and it did checked if the first post has the
over_18attribute set to true
@green oriole perhaps the first post was not marked NSFW?
still does not make sense
Well, we have a reddit command on both bot, but one of them doesn't check if it is tagged as NSFW @rapid swallow
yeah I got that
it did checked if the first post has the over_18 attribute set to true
so the first post might no have had nsfw tag for some reason
I can use the trash can emote and close joe’s output of the reddit command using @dusky shore
i believe this shows the first post. I might be wrong.
my bot :3
where is the statuscat code of the seasonalbot, i think i have a better which has result for all errors, just will replace and test on my testserver
okie tthanks
https://github.com/python-discord/seasonalbot/issues/436 for this issue will numbers we given or only text alphabets? @obsidian patio
From the issue
Only alpha numerical or ASCII would be allowed as a start.
Using ascii would be the best IMO
this would be fun
It will depend on the font. If it’s a small font, alpha numerical + a few extra characters would be in place, while we could support much more of the ASCII range with a larger font
i will try it, just can you give me abcd..xyz in written emoji, so it will help me
I’ve already kind of made it
Didn’t expect me to do it, but it just seemed too fun not to
Good luck for the m
Hahahah that one wasn’t too hard. The characters can very in width, as long as the height is the same
That's easier then haha
I have one font that’s 3 characters heigh so far. I’ll link you a demo
@green oriole #ot2-never-nester’s-nightmare message
That's pretty cool haha
Hahah yeah. It’s super neat. Coming to seasonalbot, so that should be nice
@green oriole however, a K is kind of impossible in this font, so it looks more like an H
@wintry trellis what were you confused about in the "docker" section?
@sullen phoenix I had gone through the guide again and figured it out, thanks :)
What if you replace the top right by a lonely lemon @obsidian patio?
Mhh, not sure that'd even work
make the right stem one step shorter than the left stem @obsidian patio , it'll look more k-like then
Aah, the problem is that the top is only one block heigh
right.
And we don't have "half-blocks"
haha.
That's what I'm using on a 4 heigh font (not a complete font yet). Having it one step shorter
or make square with a break in middle K, like a groove in the square
We're discussing it in #ot1-perplexing-regexing now
@tough imp you working on this? https://github.com/python-discord/site/issues/366
or do you mind if i take a crack at it
hi
go for it
just so you know, we're planning some significant changes to the wiki pages, I'm not sure how much that would affect this issue
@crude gyro likely knows more about that
changes content-wise, or something to do with the backend/api?
I think a search bar will be great - but it is definitely blocked by the dewikification project.
@clever wraith
pythondiscord.com - A Django and Bulma web application. - python-discord/site
I think perhaps a search bar can be part of this project
ok, yep, i can see why this is a blocker
I'd welcome any contribution towards this project, though. But there are several tasks that will need to be completed first.
they are quite well specified, though, if you'd like to take a crack at any of them
sure, i'll have a look
I added https://github.com/python-discord/site/issues/366 to this project too now.
do we really have an issue for this?
astrology commands in a programming server feels kinda out of place to me.
I believe that's just an extension of an existing command
aries
libra
gemini
yes 👀
I see everything haha
!warn @green oriole please don't dox the owners
:incoming_envelope: :ok_hand: applied warning to @green oriole.
@crude gyro wait how did you change my issue description
well, imo your edit is better lol
Wait what. Was that an actual warning? Did I miss something?
wait how did you change my issue description
@neon phoenix github issues & comments can be edited by repository admins
:o
did he just warned that guy for that? ._.
@crude gyro wait how did you change my issue description
https://media1.tenor.com/images/e4fd8a1d27226ed0dfaa8380b77340c8/tenor.gif
I'm allowed to warn people for doxxing me, yes, even if they are akarys.
The previous iterations are always kept so it's really not an issue
yep
let's ban a core contributor yeah
yeah!
no
well, lemon warned him and that's all
there's nothing more what to discuss, I guess
roles do not provide infraction immunity. a warn was the correct response in this case. can we please maybe not discuss infractions in here
this is #dev-contrib not #peanut-gallery
ight
Did Akarys leave the server?
Why did Akarys leave though?
that's his business. let's not discuss it here.
Does resolve and close mean different things in github?
No
Does
resolveandclosemean different things in github?
@thorny obsidian
Sorry, I just edited that comment because I wanted the comment to actually link the ticket so it would auto-close when the PR was merged - but it turns out you can't do that.
So then I edited it into the actual PR description instead, and that worked
Aaaah, okay. That makes sense
how are API keys stored for @stable mountain ? looking to make my own
Environment variable
oh thanks, i didn't know that
This is an example .env file from the guide:
BOT_TOKEN=YourDiscordBotTokenHere
BOT_API_KEY=badbot13m0n8f570f942013fc818f234916ca531
REDDIT_CLIENT_ID=YourRedditClientIDHere
REDDIT_SECRET=YourRedditSecretHere
ty!
No problem
<@&267629731250176001> The server is being buggy. Every time I click on a help channel in occupied, it disappears until someone chats something then it reappears
@fierce willow the bots are down.
we're working on it
this affects the help channels.
Oh ok
what you're saying sounds more like you've collapsed the category though
just click the category and it'll stop doing that
Oh yeah... i feel dumb now XD
this could be a good issue, if approved tho
https://github.com/python-discord/seasonalbot/issues/348
Seems like the trash emoji isn’t available when testing out SeasonalBot on my test server
Do you know of a good solution?
change the constant to ❌
That would work with @stable mountain, but I’m testing @dusky shore? Is there some config file that I’ve missed?
https://github.com/python-discord/seasonalbot/blob/master/bot/constants.py#L108 the uses in the code should be using this
Alright. Isn’t that file tracked by git though, so I can’t really modify it?
Well, not without it being listed as a changed file
You can just not add/commit it, I'm not aware of an another way of changing what emoji it's using
Hmm, ok. Seems a bit finicky
git add . is typically a bad idea anyway, you should check what you are comitting
well, git add . is fine, just check git status to make sure nothing untoward is there
If I know exactly what I'm committing, I tend to git commit -am ... since that'll only add tracked files
As opposed to adding every file regardless of whether it's tracked
Alright. I'll just have to remember not to commit that file hahah
Ah I wasn't looking at context
Suppose you might be able to use something like git add . ':!seasonalbot/bot/constants.py'
But that's bordering on unnecessary if you're only working on a couple files
For a change I needed the docker file for the site I created a git filter to avoid accidentally commiting it and pycharm highlighting it. Probably not the best practice but it works
staging changes in a UI is wildly superior to any form of git add. staging individual chunks or lines is really painful in git cli
eh, I think git add --interactive is pretty nice
Gotta try that out next time
run git add --interactive and you can select things like viewing the diff, tracking files, reverting stuff
it's a great tool
oh that is quite nice
docs for it all here https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging
I got used to using git add --patch for chunks of code that I'd forgotten to add
but yeah, you can stage individual hunks super easy with that
yeah, git add --patch is a shortcut for git add --interactive and then selecting patch
yeah, you can often get away with just --patch but having interactive means you can pull up the diff and view status quickly as well
which makes is comparable to a GUI git client
you can see all files, tracked or untracked & stage individual hunks really easily. otherwise it would be painful
made a statuscat random command (which i know is useless, but just something new, now i need to understand the file structure and see how it works)
it works like this
then 😢
Create a copy of
config-default.ymlnamedconfig.ymlin the same directory.
?
yeah
it does not say add your bot token to config.yml
then 😭 ?
i'm not sure why you're crying
it's in the contrib docs https://pythondiscord.com/pages/contributing/bot/#environment-variables
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
yes, you also need the bot api key
where is that
in the developer portal
i'm dying for that
it says the api key right in the docs
i mean which section?
the section i linked
BOT_API_KEY
by default, it's badbot13m0n8f570f942013fc818f234916ca531
that's the default api key for site
we don't need to wrap the values with "/' ri8?
nope
okie
just make sure you change up the config values for your guild, and you're set
can i use invite link in guild as temp invite link or should i let that be like that?
you can change it to whatever you'd like, or you can keep it
are you trying to use this bot for your own guild, or are you setting up a dev environment to contribute?
this bot would not be good for your own guild
why?
it's very specialised for our guild
you can try, but it probably won't go so well
no i just want to manage help sections like you guys do
it does much more than that
then you probably don't want to use this bot
so what can i use?
because it does like 40 other things as well
that is awesome
i'd recommend extracting the help channel system code
and putting it into your own bot
so lemme know what file i can delete
you're giving yourself a lot more work by going the opposite route
adding this cog to a new bot would be much easier than deleting 60 other files
so only cog file i can work with
so i will take that folder to another workspace and delete the remaining project is that okie?
you would need to understand this bot structure before copy-pasting it
when i went to contribute towards some issues i really couldn't get the file structure so for now i just am seeing each feature and see what i can add to them to make it better. Then once i am done with the file structure i start working on the issues
@slender peak 
yes i know that, i just tld about me, since you can't just cut paste, you would need to understand the code and file strucutre
but i just wanna know cog is the only file handling the help channels and can i only get the cog folder and remove all other folders?
oh yeah okie
thank you so much everyone to helping me out
😉
may i know what should i install still?
shit did you guys say that i must work on cog folder?
i dleted all the other files and tried
XD
Can I get my pr reviewed 😅 only 1 check is left
1 check is passed
you are back? even akarys is back , good to see you
Not sure what's going on then
ok
Feel free to make an issue about it, maybe someone wants to have a bit of fun tracking it down and writing a patch for it
Are you familiar with making issues on GitHub?
yea I'll do that when I have time
probably by the end of the day
I'm in the middle of something currently
How can i contribute Python
I will give one month 9 hours everyday for contribution
@hollow orbit Do you mean the bot, this server or the language itself?
do we have a test server for @stable mountain so we can invite our own bots for development? (just to skip the whole config thing)
There isn't a public one
okay
yes i know
I found this while looking at the pins: #dev-contrib message
Oh wow @crude gyro. That’s the most hilarious and great song I’ve heard. Made me start the day in a good mood hahahh
haha, thanks
This is the greatest song ever related to open source development for sure haha
For sure. It should get an award
for sure it should
I'm surprised that this wasn't in the MTVs awards tbh
anyone over 18 years of age and having a reddit account can quciky test this draft PR.
reason is mentioned in the pending section of the PR description
https://github.com/python-discord/bot/pull/1157
Hey @subtle moss! This channel is intended for discussing the development of PyDis’ projects — like @stable mountain, @dusky shore and the site. Feel free to ask for a general code review in a help channel. Check out #❓|how-to-get-help is you need help claiming one
sorry about that.
No worries :)
Did crispy bulma got abandoned?
crispy bulma? I only knew about simple bulma
Django application to add 'django-crispy-forms' layout objects for Bulma.io - python-discord/django-crispy-bulma
It is for bulma crispy forms
But it is now archived
Never heard about it. Fun name though
yea why did it get archived
It has been archived as it has been no longer maintained
ok
That's a shame
any changes do i need to do in embed or i can make pr for it 🙂
both partnerzodiac date and partnerzodiac zodiac is done
suggestions will be helpful 🙂
is there a chance the embed description will cross the limit?
nope
okay
i am fetching data from json and its hardcoded
but still, you could add a check, then paginate the embed?
ohk
btw, an embed title would be handy
yep
any more thing i need to add?
in the last 2 sections, the sentences are missing a full stop .
maybe thats from the json
@green oriole nobody was interested in working on it.
Would appreciate a review for https://github.com/python-discord/bot/pull/927
Oh okay
https://github.com/python-discord/site/pull/378
this PR is also ready for review
i wnt to make different pull request for different command but when i pushed the changes it pushed my changes to same pr why?
now wiki is having partnerzodiac subcommand also 😅
You should push to two different branches, and open one PR from each branch
is there and docs how to do
Then, switch back to the old branch, and use git log to see the last commit you want to keep
I can walk you through, that’ll be faster 🙂
yes sure ty
this got messed up
😅
Okay, have you made a new branch and switched back to the old one?
Now you can run git reset 48a19c1 --hard
Although, that’s now too late, but you shoukd try to avoid working on master 🙂
It is the last wiki related commit, yeah
Yeah, that should do it
when i created pull request it has my old commit of wiki command also
how can i get rid of those
Oooh, right
Hmm
You’d probably have to cherrypick or rebase, but I never did one of those operations, so I can’t really help you sorry
np i will wait for someone else or ask in pygenral
Yes, there were two different feature on the same branch, we separated the first ones using a git reset, now we need to separate the last ones
I mean, if it's a single commit that you just want to undo, the easiest way is probably to create a revert commit on top of the branch.
22 commits 
Ok, so one feature consists of 22 commits? And how many commits does the other feature consist of?
I’ll let @green mesa answer, I don’t see that on gh
There are 26 commits in total
last two commits are new one
rest are old
So, which ones do you want to keep and which ones do you want to undo?
@green oriole Are you allowed to force push to feature branches?
I should be, but I’m not on my computer
I mean, are people in general allowed to force push to their own feature branches?
Yes it's fine but it looks like those commits are on the fork's master, it'd probably be best to first move them over to a separate branch, edit it locally, then push it and open a new PR
Oh yeah, they are on their own fork
@tough imp sorry for the ping but i have made new branch parterzodiac which has these commits
but still it shows all commit on either branch
so what are you trying to do? drop commits in the history of your branch?
I’m assuming you have pushed those branches already?
I can show you how to drop the commit using interactive rebase if you want to do that, but I don't know if that's what you want
vsc
ok, so when you do git log you can see the commit you want to drop?
and it's only in your branch, right?
so you want to throw away the other 21 commits in the branch?
probably better to just cherry pick these two
I think I know what you want to do but I don't want to mess up your history in case I'm wrong
😅
you have this PR open https://github.com/python-discord/seasonalbot/pull/430
from your master branch
so we cannot reset your master to the upstream one just yet
what you need to do is create a new branch that will be a copy of the upstream master, and then cherry pick those two commits into it, I think
that pr is waiting for review for more than 14 days
i think we should add this to detect same commit https://github.com/Bioconductor/bioc_git_transition/blob/master/misc/detect_duplicate_commits.py
I don't think we ever had any issues with duplicate commits yet
I don't think single mistake of single person warrants adding dependency for all our contribs
I'd list same reason as why we don't use auto formatters
you should be taking care of such things, it is a good way to learn how to use git in that case
ok
if you let some arbitrary program do it for you, you won't learn anything
i have seen one thing whenever i do changes in ext folder of seasonal bot it adds all old commit
i created new branch at github and as soon as i copied my code and tried to add which are in ext folder github added my old commits
@neon garnet o/ it's alright if you don't have the time for it now but just letting you know I can merge the casear cipher PR once you addressed the nested function thingy
Sure, I should be able to work on it once I'm free with irl stuff
righto, you can just ping me once it's ready whenever
@green mesa Hello, re: your PRs for the wiki and partnerzodiac commands, they seem to have overlapping commits, as in wiki has partnerzodiac stuff, and partnerzodiac has wiki stuff. Can you please address that?
@exotic ember yes I seen that thats y I commented on pr also
I tried to fix but it's detecting the commits again and again
When I try to create pull req at my own fork it shows 2 commit
But when I try at seasonal bot it shows old+new
Both are done same way but don't know y it's happening
hm, you have the wiki changes in your partnerzodiac branch, so when you try to PR from your partnerzodiac branch to our master branch, it takes the wiki additions too
But when I created pr at my own fork
It didn't detected the old commits
Only new one's it detected
But at seasonal bot it detected both
that's because at the point of your new commit pr to your own master branch, the wikipedia commits have already been merged into your master branch
you can see that here: https://github.com/Anubhav1603/seasonalbot/commits/master
So what should I do to fix this issue 😅
I am completely noob to git
Just know how to commit and push
I tried cherry pick method also of git that also didn't solved the problem😔
that's because at the point of your new commit pr to your own master branch, the wikipedia commits have > > already been merged into your master branch
I tried before merging the branch at my own fork also but that's also giving same result because of that I closed the previous pr
@exotic ember
hmm, one sec
@green mesa For the partnerzodiac branch + PR, I suggest following this https://stackoverflow.com/a/51400593 and dropping the wikipedia commits
@exotic ember but my master branch have wiki commits
Will it allow me to push?
New changes
your partnerzodiac PR is from your partnerzodiac branch right? it should not concern master at all
Ok
@exotic ember Do I need to resolve the merge conflicts if any of those arise?
Make sure your branch is up-to-date, and then yeah, you’ll have to resolve the conflicts (if they are still there)
@neon garnet yes, that would be ideal
Was anything agreed on for 3rd party licenses? The sphinx license is necessary for https://github.com/python-discord/bot/issues/1067; #886 creates a separate license file in the root dir of the third party licenses https://github.com/python-discord/bot/blob/899e5bf221dc74d62ef05ac6fbf4d8b34112e40d/LICENSE-THIRD-PARTY, should I follow that for the sphinx license?
This PR is required for the .roll command to work. Merging it as soon as possible would be optimal:
https://github.com/python-discord/seasonalbot/pull/441
Relevant Issues
Closes #440.
Description
Emojis in constants.py were replaced with the new emojis, following the dice redesign
.roll command was updated to use the new emoji names in constants....
Right now, the output looks like this:
@sullen phoenix What do you think about renaming the emojis on the server as well?
Yess, I was referring to you requesting that we change it to die in the code ahah. We need it to be consistent
Oh, I thought it was a matter of singular/plural
I'll fix the variable name now. To dice, to keep it consistent
awesome, sounds good
There we go. Should be ready to be merged once the checks are complete
@sullen phoenix It's ready to be merged now
needs 2 approvals to be merged, but you got my approval 😄
Alright, thanks :)
as a headsup @obsidian patio, it's generally better to do your work on a feature branch even if its on a fork, rather than opening a PR straight from master
there was another user here earlier today who ran into some git issues due to working on their fork's master
Aah, alright. I thought this was tiny enough on the fork that it didn't matter. Will make sure to do that in the future 😄





good job 
Aah, lovely. Thanks 😄
Maybe we should add some space between multiple ones
Maybe later
@sullen phoenix sorry for ping can u check wiki pr I need 1 more review so my check can pass actually I am requesting this cuz mistakly I did work on master branch of my fork and this wiki pr is not yet merged so whenever i try to pr with different branch it fetches old+new commits so if u have a look on my pr and if it's good then can u merge actually bcz of this dumb mistake my all pr is getting affected
This pr is on master now it's getting commits from every new pr of mine😔
sorry, i'm quite busy. i'll look over it when i can
Ok
now wiki command dont have any partnerzodiac commit if anyone wnts to check out ? any feedback will be helpful
is there any beginner's issue on the @dusky shore bot repo?
Yes!
all are already in progress
Welp
Is there anything you'd like to see and work on?
Preferably not a magnus opus feature
not currently, but i just started d.py, and am making a small bot , so something for my lvl
not too above me
You see, Seasonal Bot is for having a bit of fun with coding and for having a bit of fun playing with the feature you made
It doesn't have to be difficult, although it is important to note that other things become important when you're joining a collaborative project
It's not just about "making it work", but also about "making it readable" and "making it easy to maintain (including for others)"
👍 i saw the contributing guide, using the PEP8 and etc.
Those are interesting things to get into and experiment with, which is exactly what we used Seasonal Bot for in the past: An introduction to collaborative, open-source projects.
@nocturne hare sorry for ping, can u check my wiki pr only 1 check is pending 😁
My other pr is getting affected because of this pr becuase this pr is on my fork master
So if it get merged then my other pr will not fetch old+ new commit
.pr 430
i cloned the seasonal bot repo and hosted it but when i run the 8bitify command it came like this
Lol what
Weired
It looks like it... isn't resizing?
One thing happened with me ,I don't know y my bot don't know any games command even though branch master is upto date
When I use help game it gives None in log
I don't know y it happens¯_(ツ)_/¯
so i copied the command into another bot and it happened like this
i didn;t wanna mess the seasonal bot file up
.help 8bitify
.8bitify
Pixelates your avatar and changes the palette to an 8bit one.
why does mine happen like that?
no idea
from io import BytesIO
import discord
from PIL import Image
from discord.ext import commands
class EightBitify(commands.Cog):
"""Make your avatar 8bit!"""
def __init__(self, bot: commands.Bot) -> None:
self.bot = bot
@staticmethod
def pixelate(image: Image) -> Image:
"""Takes an image and pixelates it."""
return image.resize((32, 32)).resize((1024, 1024))
@staticmethod
def quantize(image: Image) -> Image:
"""Reduces colour palette to 256 colours."""
return image.quantize(colors=32)
@commands.command(name="8bitify")
async def eightbit_command(self, ctx: commands.Context) -> None:
"""Pixelates your avatar and changes the palette to an 8bit one."""
async with ctx.typing():
image_bytes = await ctx.author.avatar_url.read()
avatar = Image.open(BytesIO(image_bytes))
avatar = avatar.convert("RGBA").resize((1024, 1024))
eightbit = self.pixelate(avatar)
eightbit = self.quantize(eightbit)
bufferedio = BytesIO()
eightbit.save(bufferedio, format="PNG")
bufferedio.seek(0)
file = discord.File(bufferedio, filename="8bitavatar.png")
embed = discord.Embed(
title="Your 8-bit avatar",
description='Here is your avatar. I think it looks all cool and "retro"'
)
embed.set_image(url="attachment://8bitavatar.png")
embed.set_footer(text=f"Made by {ctx.author.display_name}", icon_url=ctx.author.avatar_url)
await ctx.send(file=file, embed=embed)
def setup(bot: commands.Bot) -> None:
"""Cog load."""
bot.add_cog(EightBitify(bot))
``` this code is correct right?
@short snow after you clone your fork, do the development on a feature branch. There’s no need to copy the command files over to another bot, if that’s what you did
No idea how strict the reviews are on seasonalbot, but you got mine @green mesa
Ty for your review I will make changes according to what u said 🙂 ty very much
Don't we have any command for reloading cogs in @dusky shore?
Yeah, for sure
We could probably borrow most of the logic from @stable mountain
I'll hopefully open an issue about it in a few hours, unless anyone is against the idea
i have opened one issue for source command also
Yep; that would be neat as well
i am happy i finally got review on my wiki issue hope soon it will get merged
partnerzodiac sub commands also ready in advance UwU
I'm curious about why we aren't using watchdog to auto reload with development bots
That would be so smooth
watchdog?
*watchman ooops
ooo
i dont know y but i am not able to request for review by chibli at github😅
is that normal?
Which PR?
The wiki command?
yeh
I think it's because Chibli reviewed using an accout that isn't in the org
o
ok i am excited because this is my first PR 😅 for seasonal bot
@nocturne hare sorry for ping ,i pinged u here cuz i am not able to request for review at github,I have made all changes according to what i am told. when u have time please have a look 😄
.pre-commit file only works in pipenv?
i wnt to use it without using pipenv,i tried at different repo and it not getting triggered at commit
Well, it is used by the precommit package
If you look at the Pipfile, in the scripts category you can see what this command is actually doing
Hmm
python: python3.7
fail_fast: true
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: master
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-pylint
rev: master
hooks:
- id: pylint
files: coc```
i have this, i am on rewrite branch of this repo
What am I looking at? 
If you updated the hooks, maybe you have to run it again?
That's interesting, you should ask #tools-and-devops
btw, its https://github.com/psf/black instead of https://github.com/ambv/black @green mesa
not gonna make a whole lot diff tho but just keepin it updated xD
the version, basically
ok
Can we have one list of cursed word which we wnt to filter?
So it can be used in wiki command,reddit command and it can be used in upcoming pr🙂
If it's required
maybe we can have a list of words stored in a file/permanent storage, so that we can add more words as we go along with a command?
i guess we prolly won't be able to find out all the cursed words also
But we can keep adding to list as we get to know
On my own pr or should I open one issue for it😅
the current one
as this is kinda related and can be implemented under the same topic
list of words hasn't changed much
current one is all dynamic but you can find old one in one of commits on bot repo
Under which pr?
https://github.com/python-discord/bot/issues/639 was the issue
@green mesa Ping me tomorrow and ill see if i can find time to go over it again
!remind 188735535169273858 20h do the thing
Your reminder will arrive in 20 hours and will mention 1 other(s)!
"Do the thing" hahah
Ty senjan and ok chibli🙂
And ty f1re
Why we have name mentioned
And when someone join how it's time will None so it will fail or I am misunderstanding 😅
I am new to unit test
that's just an example to show how 100% test coverage doesn't mean everything
in that example, although every line is tested, not every case is tested
Ok I will try to write one😅
Y we use salt+azure together 😅
@exotic ember I've addressed the needed changes for the caesar cipher command, feel free to take a look if you have some time
coolio
I'm trying to develop SeasonalBot in PyCharm (my first time using PyCharm seriously). When clicking Use pipenv interpreter, this is the error I'm getting
i actully setup in a different way which i find easier
that is to use the terminal
pipenv sync --dev
i also just sync --dev before opening the project and then pycharm autodetects the env
and then add a new project interpretor as pipenv, and it will detect it
is it just me, or is that attempting to run the .lock file as a py file though wat
wait no, it's thinking the .lock is the python executable
Do you know why pipenv sync --dev would be needed?
it's not, there's a way to get it working without it, but i'm thinking you're in the wrong section to do it
but it's easier
wait no, it's thinking the .lock is the python executable
Is your IDE drunk?
Do you know why
pipenv sync --devwould be needed?
@obsidian patioits an alternative method, it will create the virtual env for u using the pipfile and the dev dependencies mentioned
You need it to fetch development tools
but you can do that in pycharm too pretty sure
Pycharm uses it by default
I mean why the Use pipenv interpreter won't set it up?
how about this @obsidian patio i'll setup my seasonalbot env at the same time as you and we can go through it step by step
since i need to do it anyway
Because well, if you open it in PC, you are developing it
I mean why the
Use pipenv interpreterwon't set it up?
@obsidian patio PC creates a new pipenv interpreter everytime, even with this option afaik
I've already set it up using VSC, but it's just the PyCharm part that's now working quite yet
I believe so
what do you get when u do pipenv shell
pipenv --venv
will show location
then point pycharm to the python bin in it by going through venv interpreter setting
But that won’t activate the PC pipenv integration
Aah, alright
honestly, if you're needing multiple editors ak, it's better to not have pycharm take over control of pipenv
it'll still be capable of running pipenv commands in app/run configs though
Well, pycharm doesn’t do anything by itself, it will always ask you like to relock or sync
But yeah
This is my first time with PyCharm. What would you recommend that I do this time?
Do what scrag said, it will probably be easier 🙂
im doing mine too atm and gonna see if pycharm picks up the venv still like it used to
Not entirely sure how you mean
I'm always running pipenv manually and just selecting the interpreter in PyCharm (adding the interpreter/selecting it)
i'll explain after my check
okay, so this is what i'm doing.
clone git repo to local
pipenv sync --dev
open directory in pycharm as project
wait for pycharm to index project
pycharm now has pipenv interpreter after a minute loaded
and i'm going to remove that autodetected one and go through the steps of me adding it back in manually
That sounds really convenient. Sure didn't do that for me
What I do is git clone, pipenv sync --dev from the command line. Open the folder as a project in PyCharm, when it asks for the interpreter, select existing interpreter and add the venv interpreter pipenv created
I'm getting this error when trying that out @glass pecan
use bin/python