#dev-contrib
1 messages · Page 65 of 1
it also allows subcommands to bypass checks on the group
i.e. if the group is mods-only and you decorate it with invoke_without_command=True, subcommands will entirely bypass the group callback
it's documented but annoying
well, I found it annoying
Hmm, right
It does work, though. There was some other error I was experiencing
from typing import Union
from discord.ext.commands import Cog, group
class Emoji(Cog):
def __init__(self, bot):
self.bot = bot
@group(invoke_without_command=True)
async def emoji(self, ctx, emoji: str) -> None:
await ctx.send(f"Received {emoji}!")
@emoji.command(name="count")
async def count(self, ctx) -> None:
await ctx.send(f"count!")
bot.add_cog(Emoji(bot))
That has the desired API (.emoji <emoji> for emoji info and .emoji count for the count)
ctx.invoke bypass checks, right?
so if you annotate emoji as discord.Emoji, it won't try to convert it unless a non-subcommand was given
I like ves idea
Yeah, it doesn’t
I haven't looked into the command parser, but I imagine it tries to match the longest fully qualified command first
and then having leftovers as potential arguments
invoke_without_command: Indicates if the group callback should begin parsing and invocation only if no subcommand was found.
Sounds like it does
I'm all for a unified emoji cog
@neon garnet
waiting for your example embed is it ready
I'm busy with irl responsibilities, might not be able to work on it for a day or two
Please be patient, I'll get back to you as soon as I can
ok
i am really bad making things aesthetic, what can i do to make this better?
I think only the emoji name as title would be nice (capitalized)

Created: 2 years, 8 months and 4 hours ago
Profile: @green oriole
ID: 407110650217627658
Status: ⌛ After Hours!
Joined: 14 days, 20 hours and 34 minutes ago
Roles: <@&738794031160754249>, <@&463658397560995840>, <@&352427296948486144>, <@&295488872404484098>, <@&737249140966162473>, <@&737250302834638889>, <@&267630620367257601>, <@&587606783669829632>
Desktop
Web
Mobile
Total: 3
Active: 0
emoji_information.add_field(
name="General information",
value=textwrap.dedent(f"""
Emoji name: {emoji.name}
Emoji ID: {emoji.id}
Created at: {emoji.created_at}
Animated: {'Yes' if emoji.animated else "No"}
"""),
inline=False
)
The created date should preferably be a human readable format
pydis-bot has datetime to user readable but seasonalbot not
Well, you can just copy paste it
well, yeah
I will make it a staticmethod
You could put it in the utils tbh
Maybe “Created: X years Y months... ago” would be better for the date
Also, no need to repeat “Emoji” for every field
The general info header is probably overkill as well
Also, how are we doing with the emoji cdn link?
Alright
@green oriole considering that it’s in an embed and that admins+ manage emojis, I don’t think there’s really a need for code blocks
It is just for the look of it
In the title?
Yeah
I’m not sure that would look good. Unless we include something other than the emoji name
Like this:
Well, there’s already another text
Emoji info: lemon_xd
I was thinking about if we should remove the other text
Like just having the emoji name in the title
(ignore the ID, i fixed that)
!role Developers
352427296948486144
#000000
0.00 0.00 0
85627
67
104187968
i can't make the footer a clickable link though
You can click the image on mobile, can’t you?
nope
Sad
the only thing i could do is to make the title a clickable link
like emote
oh wait
actually...
I think something like “Emoji info: emoji_name” may be a better title
Maybe you should add a Source: [link](cdn_url) field
The idea of only including emoji name may be a bit odd, and I want capitalization
Is that CDN link clickable?
That’s good
no, sadly
Why not?
It's an embed right, you can use markdown
Although can you change the cdn link like I said?
or is it the footer?
footer
Is the thumbnail clickable?
Not on mobile, apparently
i got the solution
And I don’t think making mobile user copy the link by hand is a good idea
Maybe you should add a Source: [link](cdn_url) field
yeah i am doing that
@neon phoenix I think these keys in this embed (created, name, animated) should be bold.
i got the solution
Atie I think your issue will cover emojicount also
@cold moon yeah sure
So I think we don't need to recreate same thing again
No, they shouldn’t be bold, that’s not our embed style
don’t make it an actual link though
Use markdown
Like that [link](https://.../)
Add command which can search for groups also
I like this one ,it looks clean
CDN: Link to match the style
looks nice! just use dark theme instead
nah thanks
-_-
👀
Now remove the line break please
The CDN link was supposed to be the footer, but the footer didn't accept markdown, so that's why i made a newline there to recreate the footer :|
In footer we can't add link I think
@green mesa #dev-contrib message
Well, I understand, but it doesn’t work in the footer, so you gotta make it an actual field
One more thing people don't remember name like oh think and all
it will be great if u group them through category as functor said in pr
it is a group
@commands.group(invoke_without_command=True)
async def emoji(self, ctx: commands.Context, emoji: Emoji) -> None:
"""Returns relevant information about a Discord Emoji."""

you make a server thumbnail down or the person who asked thumbnail down

Here logo is category
So people can just search from category
And they can get list of emoji
And they can choose from it
Same like wiki command
And bot will show the embed
just an idea if u like
Actual mine and your pr is almost same
I like this embed
Mine is subcommand to your issue
I’m curious about what @obsidian patio think
imagine someday an emote gets deleted, but someone used the .emoji command prior its deletion
the thumbnail won't work anymore
sooo
why not convert quickly the asset into a stringio?
well it will happen once in a blue moon😅
Because you have to re-upload it and such
So I don't think we need to worry
Don’t think that’s necessary
Tomorrow I will start working on source command pr 🙂
Now it's look awsome
okay, annd
how would i invoke a command?
so both .emoji and .emoji info will work
same thing as !d and !d get
Yeah, that’s the goal atie
😁 py bot helps
Gg
i needed to add another file though (human readable timedelta)
Use union also
I’m curious about what @obsidian patio think
@green oriole what part?
So it will accept emoji+str
Use union also
@green mesa for what?
there is no need
Emoji will try to convert the parameter to emoji
@obsidian patio the embed format

Does it work if you directly use the emoji?
yes
I think the fields should be in this order
- Name
- Created
- ID
- Link
well, the linter is broken 🦀
i pipenv install --dev i swear
i get Passed even if i inserted 10 lines on the code
@neon phoenix what happens when you put default emoji?
It will not show date I think
And I think the last link should be something like this:
Image source
That would be one single link
And source also
can you see what happens ?
I think it will be passed as str not emoji
@short snow error
😛
So u can handle that and say default emoji or something
well, but why i should do that
@neon phoenix does that sound good to you?
if i detect if it's a string, what should i do? if i raise badargument there is no need because discord.py will already do that
@obsidian patio sorry, what? i wasn't looking at the chat
Check my last two messages
I think there is now way to detect it's an default emoji unless u write regex for that
I think having a single link for it would be better. Partially because “image source” or similar is clearer and partially because a single link seems to make more sense
@green oriole what’s your thoughts on this?
emoji source?
I agree
wish there was a way to detect the most abundant color on the emote so you can set a better embed color
for example, ohtnk is mostly yellow
but there is no way to detect that
Well, we have Pillow, you can take the median color
but >>>blocking and >>>>slow
Can't image images so small taking a considerable amount of time, and there's always threading
okay, so, how would i install packages without breaking something?
pipenv install pillow
Pillow is already included in SeasonalBot iirc
Which package? Pillow is already included
Oo yeah for 8bitify
ah PIL
.snake snakify hello
hhhhello
dunno man but in stackoverflow the snippets to get the medium color are quite large
If it's too much trouble bro implement, the embed color really isn't important imo
I think having a standard color would be totally reasonable
Use green then
What’s the usual default color for seasonal
Yeah our seasonal bot
For valentine I am going with pink
I think we may want to clean up the embed color use @green oriole
And have a convention
WoW
We need conventions in general for seasonal tbh
I’m thinking more per event. Errors are red, standard is green etc
so green or blurple???
Blurple
I like the colour of pydis core dev role
That seems to be what is used right now
Yep
so, grind hard to get it @green mesa
Hahah
Yes I am trying to contribute regularly to seasonal repo😁
I have way too many green rn
Core developer requires being a staff members, so being only contrib and core dev isn’t possible
Yeah, sure
My dream is getting mod role in this server... And core dev too
You should preferably commit atomic changes while you work on it
If you’re unsure about the term atomic, check out the latest ping by ves
This is little bit hard to make atomic commits for me, because I don't want to commit things that not work perfectly (or at least I think everything works well)
Oopsy wrong ping again vester
Read through the pin from ves. It’ll make things more clear
Same here ks
Making atomic commits is difficult. Writing good commit messages is difficult as well.
And things don’t have to work in every iteration. It’s about committing every atomic change
I wonder if you could consider https://github.com/python-discord/bot/commit/aeaa3dd75a96fb8e8f66556e17d7759be1d59631 as atomic
I don’t think spitting it more would have been a better idea though
I'm not familiar with code spaces, but it looks like you need everything in there to set up that feature
So, splitting it up would not really be a good idea
But say that you're working on our roles command and you want to do two things:
- Allow helpers to use it
- Introduce fuzzy matching
Those two things sound like two different features, two different sets of changes that go together
If you have to implement the fuzzy matching from scratch, you may even split that one up further
- implement fuzzy matching
- Add fuzzy matching to role command
(assuming that fuzzy matching is not an incredibly difficult and multifaceted feature in and of itself)
I really wnt to have one tag realted to atomic commits
I think it's something that is better captured by articles and it's subjective
A good start is by writing good commit messages
i readed the "how to write good commit messages" article from the CONTRIBUTING.md file
If your summary line suddenly needs to include multiple features all in one summary line, you're probably doing too much in that commit
Basically, can you summarise what you've done in one clear, 50 character sentence
With a more detailed body below that
Ok
how do you write bodies within the cli git?
i only know how to make messages, but not long descriptions
just do git commit and it will open up your configured editor
ah okay
So, without the -m flag
I’ll review the PR later today @neon phoenix
okay
It probably defaults to your default CLI text editor, but you can specify other editors
nano is my default editor
I used to use Sublime for mine, but I'm just lazily using nano now because I didn't bother changing the config after my latest fresh install of ubuntu
mine is vsc
It doesn't have to be a CLI editor
but still, cli is better (specially nano) because you write your message, and then ctrl x y
instead of a window opening up for a long time
I don't like Nano that much because it's more difficult to spot the current line length
(I also super recommend gitkraken for looking at and managing commits, although I do write my commits from VSCode directly)
I've got wrapping and warnings set up in PyCharm to make sure to keep my summary line within 50 chars and my body within 72 chars
Site gives json response?
I know this is a thing, but I’m not sure if it can be used here https://github.com/wimglenn/advent-of-code-data
One more question can we work on 3-4 issue at once?
At the same time? Not really..
I’d strongly recommend not doing that. If you can’t manage completing one, why open 3 more?
“Can’t manage” as in “haven’t completed yet”
Ohk I will try to get my 2 pr merge tomorrow
As emoji info can show info about emoji I think I should make emoji count it's subcommand
Ok so for emoji count I will wait for atie pr to get merged first
Then I will start working on that
Are you assigned to the emoji count issue?
Yeh
Adding it as its own command as a start wouldn’t be too bad, but I think it’s fine if we wait with it until Atie’s pr is merged
@green mesa the checks didn't even pass at all
fix your errors
bot/exts/valentines/valentine_zodiac.py:109:38: E999 SyntaxError: invalid syntax
Hah
@neon phoenix I know check the last commit
That I have accepted suggestion today
I have to fix that issue and do some cleaning of code
That's it
~~Why this is so hard to find issue to solve
~~
What would you say about doing some reviewing instead @cold moon?
It seems to be the current bottleneck in our development cycle, and I think you'd be perfectly capable of doing a proper review
Okay, I'll do it after I finish something I found: Cowboy lemoji (there is special issue about it)
@cold moon i think Xith was working on that. You can check it out in #dev-branding
@green oriole I don't like how it looks in a code block
Quotes are probably better
Yeah. I commented that already
What do you think about this compared to setting the attributes one by one? ```py
emoji_information = Embed(
title=f'Information about "{emoji.name}"',
description=textwrap.dedent(f"""
Name: {emoji.name}
Created: {time_since(emoji.created_at)}
ID: {emoji.id}
Emoji source image
"""),
color=Color.blurple()
)
I think setting them one by one is what caused the vertical embed issue on mobile, but I'm not sure
I need to bring over the sphinx license https://github.com/sphinx-doc/sphinx/blob/3.x/LICENSE but unsure how to handle it because it refers to the authors file. Also copying the authors file doesn't make much sense, but the license will be referring to something that doesn't exist in the scope of the project. Should it be copied over verbatim? Asked around on the sphinx IRC a few days ago but didn't get an answer
Hmm... strange
We redistribute sphinx in one of our project?
I'll need it for 1067
.issue 1067 bot
lol
legal
license legal is not my cup of tea really, so I don't know loads about it
I feel like you're the most legal related person in the whole team lol
I think it was @tawdry vapor who last looked at licenses for something similar? with the ipython stuff
hey @cold moon, thanks for the review on my site PR, can you also look at https://github.com/python-discord/bot/pull/1165
since its directly related to it
Im still kinda looking for suggestions on this
I can look into it tomorrow
okay 👍
a little confused with the reddit cog in @stable mountain
here we set the default amount to 25, and this function is being called only once from another function which also takes in an amount but the default there is 5
get_top_posts is the only function that calls the fetch_posts function
why do we have default values for amount in both the functions and of different values?
why don't we just have the default set in the get_top_posts function
that is a good Q lol
first star of forms-front iceman, congratulations
Python Discord Forms is the surveying system for the Python Discord server.
\o/
So jams will be not managed from site in future?
please tell me you have plans to change the landing page UI
this app is primarily for insights, which will be our version of jetbrains developer survey, digitalocean currents, etc.
of the forms website
lol, I mean
I'd really like to build jams system
colours are straight from Discord, open to altering them though
I think there should PyDis logo in header?
that was @celest charm, who very much liked the two curves lol
maybe the purple can be darker
better rounding?
lesser border-radius
that Sign in with Discord button will go btw
right, that is less, I was asking if it was better
or even less
ye this perfect
(I liked the better rounding? one more)
or even less
@patent pivot this
hmmm
better rounding? was 10px, then next was 5px and then 7.5px
5px
I think 5px is too small, 7.5x+ looks fine to me
better than the current one
also yes, a pydis logo would be nice, however I have no idea what font we use and whether we can put it on a webpage
the answer is probably
maybe
one sec
i really like the white and blurple on our main website, maybe we can try the same?
For the video we used Uni Sans, which should be fine to use
i really like the white and blurple on our main website, maybe we can try the same?
hm, we can, however my original goal was to try mimic discord colors a bit
uni sans does look fine to use, no CDN by the looks of things though
let me find a TTF
go we goin for a darkish theme?
Now bit out out of topic from current discussion but do we have any plans about jams implemention in site?
like forms, u mean?
Now bit out out of topic from current discussion but do we have any plans about jams implemention in site?
@cold moon not really, I think it is an admin task in need of claiming
like forms, u mean?
@eternal owl forms will probably not be used for code jams
kay
it might, depending on how exportable the data is and such
guess I will have to learn react to contribute to forms :/
I have some ideas for jams in site, should I make issue somewhere with prototype HTMLs?
guess I will have to learn react to contribute to forms :/
@eternal owl depends on what you want to contribute, styling is fairly straightforward providing you find the component
I have some ideas for jams in site, should I make issue somewhere with prototype HTMLs?
@cold moon let me get back to you on this one
by get back i mean like 3 minutes
i started learning vue a few days back, and thats my first framework, lol
I can help with styling, lemme see if I can come up with a design
sure thing
Okay, we have an internal issue for code jams and it is blocked right now while we figure out what we want codejams to be like. Wait until we've finished this jam and we'll pick that idea upp.
Okay
is this a go?
https://github.com/python-discord/bot/issues/1172
whats the font-family for python discord forms
uni sans in that screenshot
one second
I'm just going to open a PR and then I can get a staging deploy for you
okay, give netlify a second and it'll fire up a staging copy
Python Discord Forms is the surveying system for the Python Discord server.
lol so many PR checks
sad no one saw my awesome console work
mmmmmm Python Discord Forms is not centered vertically properly
in the console or the actual site
the thing you just posted
okay phew
file bug report with google lol
I have no idea why it is doing that
I could actually just spit out a banner image
It looks like it's taking the entire text (including the y dipping down) and centering that, vs centering based on characters that don't drop down below the baseline
this is how discord does the curves on their website
just 2 colors
they go from white -> dark in the starting and then dark->blurple in the end, looks good, we can do similar
we had that originally
and staff said they preferred the two colours
so you want dark to blurple instead of blurple to darkk?
blurple background will not be pleasant
how about centering?
we can also add some cool hover effects
scale() being one of my favorite
ignore the colour, but this is one wave
that is much better
Could you do two waves but keep it two colors?
ye that could work
remove the opacity?
ye, just 2 solid colors
i meant, centering the forms
and reducing the width
like I showed in the video example above
hmmm
we could? i think the left alignment is nicer considering this list could grow considerably
i'll try it, one sec
#available-forms {
height: 100vh;
padding-top: 20px;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
#available-forms h2 {
font-size: 40px;
font-weight: normal;
}
.form-indicator {
background-color: white;
color: black;
padding: 30px;
border-radius: 5px;
margin: 20px 0;
transition: 0.3s;
}
.form-indicator:hover{
transform: scale(1.1, 1.1);
}```
if u need it ☝️
#available-forms is the whole forms section and .form-indicator are the forms
kay
I like the side padding, but I don't think the header needs to be centered
can we have forms on a new line?
we can, but it won't scale very well responsively
hmm
maybe it will
one sec
no, the waves won't really work with that
k
mmm that looks nice
u say available forms and there is a closed form, lol
hmmm yeah
that probably wouldn't be there in prod, that is for the staff side of things
the green and white don't really go together, maybe a bit darker shade of green
but it does mean that the big green box may not be appropriate for the user facing thing
green is #43b581, I'll try darken it now
Is the green a general color for available ?
if you're using vscode, it can open a color palette which is really handy
lol, not from this it can't
Is the green a general color for available ?
@brazen charm yeah, I did have green and red but holy schmuck that was bright and colourful and hard to understand
maybe this
try this #2E8B57
hmmm
doesn't fit with the otherwise light colour palette imo, needs to be a touch softer
#349E62
Would a lighter greyish color be fitting? Light for active and muted for inactive
greyple is already registered in the colours file
bear in mind
users won't ever see the muted one
so I'll probably just use the darker colour and no tags
like this
the greens will only ever be displayed to staff member
so I think it's probably fine for now
pushing my changes
deploying
how simple is this
ignore the white color
the nav bar is actully blurple, idk why my ss changes it
deploy preview updated for my latest changes https://deploy-preview-9--pydis-forms.netlify.app/
Python Discord Forms is the surveying system for the Python Discord server.
I think that is a cool style but a little dull, this is a pretty small app and there is some freedom to explore things other than boxes
maybe a curve between the blurple and the dark background
merging that PR now
thanks for the feedback y'all
live now https://pydis-forms.netlify.app/
Python Discord Forms is the surveying system for the Python Discord server.
cool
I did add those hover animations as well in case you didn't notice :)
For the license, can the project have a non working revision without a license in the commits?
I added some transition effects to the forms app for going between pages https://pydis-forms.netlify.app/
Python Discord Forms is the surveying system for the Python Discord server.
AB of 50% for which effect you get, either the fade effect or the fade + scale effect, check your console to see which one you are on (a red branch with animation/scale-transition-effect means you are on the AB). Remove the nf_ab cookie and reload to try flip to the other AB.
also AB is cool and I'm kinda just fanboying over my deployment tool that I can actually do this
V 1.5.0 of d.py has been released
It has voice and allowed mention update
Should we update our pipfile and lock file?
Sounds like we'll need to anyways
yes, we were planning to update already
Ok
For seasonal bot help command we can add ℹ️which will show the info about reactions and 🔢 which will ask for page number
But this idea will collide with r.danny
Can we have this or we need something new 😅
Should we update our pipfile and lock file?
@green mesa
It's typically not that simple. We'll need to update the version, but also make sure the bots still work properly with the new versions. This specific release includes things we'll have to change (including the main thing, the intents) before we can update.
Ok
!source get
Sorry, an unexpected error occurred. Please let us know!
AttributeError: 'NoneType' object has no attribute 'callback'
bug found
Display information and a GitHub link to the source code of a command, tag, or cog.
@nocturne hare thinking of doing this way, any suggestion or idea about this, so others can know what all zodiac sign are compatible with which one
user can choose number from list and bot will show the info about this or if user dont give 4th parameter then, bot will choose random zodiac sign from list for compatiblity
• !docs => !docs get
• !get => !get group
• !tags => !tags get
• !exception => !tags get traceback
exception won't work either
What exactly does .zodiac virgo or .zodiac date september 15 give atm @green mesa ?
Aside from the Full form first letters looking kinda sketch with the underline (or the last one not having an underline) that's more or less the full scope of the issue you're working on.
I'd worry about polishing that before extending the scope of your pr.
Ultimately it's already feature creeped the issue by quite a bit, since the issue only wanted to be able to fetch zodiac from dates, or dates from zodiac.
(I'm not saying it's bad, what you've done. Just that you should finish it before starting something new)
Ok
Just out of curiousity. What does it look like without the in_line=false on the fields.
I think it might make embed look messy
May i see?
Actually I just closed my laptop 😅
Mkai, I'm just thinking that the embed is some what big
Hmm ok tomorrow I will try this
Maybe if you one line the fullform, but keep the bold/underline of the first characters?
I can try this
@green mesa I should be able to roll out an example in a few hours, stay tuned 😄
i think you've missed the point, Anubhav
Oopsy
we already know <> works, we're testing out []
when sending a POST request at snekbox, i get this error: ERROR | Couldn't launch the child process
the error code is 255 as well
why is this happening?
Interesting, NsJail is probably failing
i did sudo dockerd at the beginning
then, i ran sudo docker run --ipc=none --privileged -p 8060:8060 pythondiscord/snekbox
like the readme said
then, i ran ```py
x = requests.post("http://127.0.0.1:8060/eval", json={"input": "print('hello')"})
x.json()
{'stdout': '', 'returncode': 255}
Sorry, I was reading the source code, can you try lowering the logging level to debug and send us the log?
how would i do that?
i am running the image directly
if that's a problem
huh
now it works
did this happen because i ran it for the first time?
https://paste.pythondiscord.com/azokihamog.makefile when i ran it for the first time
https://paste.pythondiscord.com/xepunacize.cs when i ran it now
My best guess is that the cgroups weren't ready
Snekbox?
Weird
slim-buster can't be that big
Nah, there's no way, the codespace universal is 2Gb, and it is like Ubuntu plus 20 fully featured languages
Is snekbox coded by pydis people from scratch?
What would from scratch be here? snekbox's source isn't very big because there are good tools available to rely on, which were made by bigger groups
Is snekbox coded by pydis people from scratch?
@green mesa we use external tools, but yeah, we made snekbox
I am interested in working on this
https://github.com/python-discord/bot/issues/1172
and the related site issue too if its good to go.
I can assign you @eternal owl
Though am pretty sure site has to be done & merged before bot
Wait, I made a comment suggesting a few changes, I haven't heard back from the author
Joe liked your suggestion so thats fine by me
Kay even I thought the same, but just confirming
i like the idea as well
You can always ask @cold island before you actually start working
May you comment on the issue on site?
Cant assign non contribs
Or so github doesnt display you
Okay
You too, I'm heading to bed, gn
👍
.issue 1187 bot
@tawdry vapor now that 1.5.0 has been released, I think this issue should be reopened. Thoughts?
k is already working on it
ah
I'm too slow
Yes it has to be changed for 1.5 since it's a minor version change. The current specified only permits patch version changes
1 more day for hacktoberfest 👀
👀 epic
will the current open PRs count for hacktoberfest ?
Noice
will the current open PRs count for hacktoberfest ?
@eternal owl as long as they are merged during October I think they count for the Hactoberfest t-shirt
kay
only pull requests created during October count
PRs opened before Oct 1 do not count even if they're marked as ready for review or merged during the month
can anyone do a quick review of this, I implemented the changes suggested by @brazen charm, its a very small PR
!remind 1h 
Your reminder will arrive in 1 hour and will mention 0 other(s)!
ty kosa :p
@exotic ember
Here's your reminder: .
[Jump back to when you created the reminder](#dev-contrib message)

@exotic ember you mentioned that the error handling should take place within the get_top_posts method, then how can I identify if the error was due to connection problems or couldn't find any SFW posts? or did you mean same error message for both?
Using the same error messsage should be fine, the wording could be changed to Sorry! We were unable to get any SFW... to maybe? reflect that
alright
so I created an issue, do I need to wait for the owner to approve it before making a pull req?
issue in question https://github.com/python-discord/seasonalbot/issues/464#issue-712052602
well, not owner so to say, once anyone of the core devs/staff members accepts the issue you can work on it
okay, thanks
I can look into it bit later
that would be great, thanks!
Hello there! I've been looking for improving my (pretty basic) Python skills and I just stumbled upon your @stable mountain bot project.
I'm going through your contributing guide and I've got a question. Do you mind if I ask it here? Thank you in advance 🙂
(moreover, English is not my first language, thus do correct me if I mess up!)
this is a good place to ask
for English not being your first language you write it quite well
Great, thank you! I'm having trouble with this part here: https://pythondiscord.com/pages/contributing/bot/#server-setup. Do I need to match perfectly the IDs of all the channels, roles etc in order to just run 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.
Fact is I wanted to get my feet wet by working on the following issue..
.issue 1120 bot
@neon phoenix Thank you, much appreciated! 🙂
and yeah, you need to match perfectly the ids of channels and roles
otherwise your bot will throw exceptions like not found and etc
@neon phoenix ok, I know it sounds dumb but I just wanted to be sure 🙂
I think you could get away with missing out a few if you only needed it to work for a specific thing
@timid sentinel uhm I see. I just was looking to get the #reddit channel going
As to see if my changes were indeed working
If you don't mind whole lot of errors which might make debugging harder, you could get away with just configurating reddit part
@subtle kraken Oh ok. As a matter of fact, I've already got a whole lot of errors (that's why I decided to ask for help). But, among those I got, there is this one that worries me the most
asyncio | ERROR | Task exception was never retrieved
[..]
ConnectionRefusedError: [Errno 111] Connect call failed ('172.19.0.5', 8000)
and.. [..] aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.web:8000 ssl:default [Connect call failed ('172.19.0.5', 8000)]
I'm using docker btw
looks bit like as misconfiguration
can't say much as seasonal is quite bit inconsistent and I mainly look around /bot
I actually got the same error this weekend, but I have to admit I didn't looked into it
Oh ok, I thought that the @stable mountain bot was delegated to updating the posts feed of the #reddit channel
Anyway, I'll keep digging into it. Thank you guys!
Can anyone please help me approve changes (I need one more approval) it’s my first ever contribution to open source
Maybe I can have a look at it tomorrow, if it isn’t done already by then
Thank you!
!remind 18h Review PR above /\
Your reminder will arrive in 18 hours and will mention 0 other(s)!
Hey
So I opened an issue and got approval to work on it
and I'm done now
so like I can just open a pull request now?
I also noticed that someone made a commit to the repo while I had forked and cloned locally
Wanna share a screenshot here first, so I can have a look at how it looks?
here's the link to the issue @obsidian patio https://github.com/python-discord/seasonalbot/issues/464
Ohh
do you want a ss of the code?
I was the one who approved it. I mean how the embed currently looks
Oh okay
sec
@obsidian patio here it is
removed the full name and location, as discussed
What’s up with the syntax highlighting of the description?
oh
its css lol
I'll get rid of it, idr why I put it there I intended to remove it
thought it added some contrast
okay, thats done
I don’t think requested by is really nevessary
mhm so you want me to get rid of the entire author part?
Yes. I think that would be the most consistent with current commands
ah right
I also noticed that someone made a commit to the repo while I had forked and cloned locally
This shouldn't affect anything right? I'm sorry this is my first pull req on github
You don't need to do anything unless the commits affected the parts of code that you modified
ah perfect, I didn't modify any existing code, just added stuff
So I'm good to go now?
Wanna show another screenshot?
@obsidian patio
I’d much rather see “PRs opened last month” or “total PRs”, than starred repos
I looked and there isn't a direct way to get the PRs of a user. I opened the issue in the first place since I had this idea of making a quick little command to get me started on github. My idea was that the command gives me a brief overview of a github user, and starred repos doesn't sound as bad to me, and would definitely be something that a user's overview should have, although I do agree that PRs might be a better option but quite frankly that may be well beyond my scope right now, sorry about that @obsidian patio
Alright. Sounds fair to me
You may get reviews on your PR about it, but I think it should be fine
merged the transition changes on https://pydis-forms.netlify.app/ and also merged a PR to make the rendered forms dynamic https://github.com/python-discord/forms-frontend/blob/main/src/api/forms.ts
Feel free to open a PR. The process will take a bit of time, since we really want to ensure great quality on all code in the codebase, and you’ll probably get an unexpected amount detail checking. Just telling you so it doesn’t come as a surprise 😄
!remind 18h Review PR /\
Your reminder will arrive in 18 hours and will mention 0 other(s)!
@ruby pulsar I’ll try to review it tomorrow, if I find the time
Feel free to open a PR. The process will take a bit of time, since we really want to ensure great quality on all code in the codebase, and you’ll probably get an unexpected amount detail checking. Just telling you so it doesn’t come as a surprise 😄
@obsidian patio Ohhh oh yea sure absolutely, thanks for the heads up
👍
No problem. Good luck with your first PR
Hmmm
I'm getting this error
Error: the command flake8 could not be found within PATH or Pipfile's [scripts].
I'm on MacOS
Have you followed the contributing guide?
pip3 show -f flake8 shows that its installed in /Library/Python/3.8/lib/python/site-packages
yes I did
code works with flake8 linting
Including installing dependencies?
Not exactly sure what you mean by that, but I used the vs code command pallette and chose flake8 as the linter and fixed the formatting
I also did pre-commit install
Found a fix
Nice!
I'll check back in tomorrow, its 3am for me now. Thanks a lot Vester!
Sure thing. Glad to see you getting your first PR out there
https://github.com/python-discord/seasonalbot/pull/466 this is ready for a contrib review all done
cheers @brazen charm
hacktoberfest stats!!!
So all checks passed when I ran pre-commit against all files, but the checks by the bot failed anyways https://github.com/python-discord/seasonalbot/pull/465
are you sure you have all dev packages installed. the ones that got caught in the CI linting seem to be the extra packages, not plain flake8
you should have installed the pipenv packages with pipenv sync --dev
no
you never need to lock unless you change deps
if you get a prompt about needing to lock, it's likely you used pipenv install or pipenv upgrade instead of pipenv sync
if you don't get such a prompt, then don't worry
Oh no I didn't get a prompt to lock it
ok
How do I push a fix now? I tried to pushing the code to my fork but of course it said that everything's up to date. so like how do I commit to a pull request? Sorry this is my first PR
Do I need to make a change in my file so I can push?
what command r u using for push?
And yes whenever u make successful commits then only u can push
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.
these were the linting errors from your build @ruby pulsar https://dev.azure.com/python-discord/Python Discord/_build/results?buildId=8217&view=logs&j=5264e576-3c6f-51f6-f055-fab409685f20&t=70134e25-3a69-59fb-2ae4-55c2ab507b01
f1re linting error are addressed by pre commit right
yes
Then how he is able to push before passing check of pre commit?
are you sure you have all dev packages installed. the ones that got caught in the CI linting seem to be the extra packages, not plain flake8
this is why
how do I commit to a pull request?
@ruby pulsar you push updates to the branch your PR is attached to.
@glass pecan yes I just pushed, but the checks failed again
even after running pipenv sync --dev
what happens when you do pipenv run lint
hmmm, the last flake8 check failed on this one, weird because pre commit was working against all files
but the in built vs code flake8 linter doesn't point this stuff out
precommit only checks based on current diff pretty sure
might be why
anyhow, stick to using lint
check output and address each issue
then once it's clear, try again
on it
you can also cross-reference based on the link f1re sent above
since that link shows the output of CI results too
@nocturne hare this is how its looking when i written full form in one line
and with inline true like this
i think i like more inline true one more 
but inline true we have one problem we cannot see inline true on android
it shows like inline false only
i am thinking of skipping date and zodiac converter idea because my issue wnts me to make zodiac and date different command of partnerzodiac
.issue 414
@green mesa
I'm thinking setting the image on the top right to a random twemoji
no, it's the current time
ohk
@green mesa, alternatively, there's this as well
this looks epic
The image comes from the branding repository
Anyways, ping me if you have any other questions
Just noticed that invoking .cogs for @dusky shore doesn't bring up the fancy embed compared to !cogs for @stable mountain
@sullen phoenix Heya, mind if I make a quick PR?
we should probably get that fixed, yeah
that happens to all commands on seasonalbot
except for .issue and maybe a few others
okay, maybe not then? i just saw you test some things, pure
I assume this acts differently in @stable mountain right?
@group(name="extensions", aliases=("ext", "exts", "c", "cogs"), invoke_without_command=True)
async def extensions_group(self, ctx: Context) -> None:
"""Load, unload, reload, and list loaded extensions."""
await ctx.send_help(ctx.command)
yeah
i won't stop anyone from doing it, but i wouldn't really say it's a super necessary thing. just if you go there, please give it a truly nice user-facing upgrade lol
not to say you would, but I'm not sure we want to encourage things like single commands getting wrapped in discord.Embeds during hacktoberfest lol
bit of a low hanging fruit lol
Fair enough lol, how exactly does @stable mountain override the default behaviour though?
ah
seasonalbot hasn't migrated to the discord.py integrated HelpFormatter yet
that's totally something someone can work on if they want
it's a bit of a pain though because my help model (that seasonalbots was adapted from) wasn't exactly equal to HelpFormatter in api
I might have a go at it if I'm not busy for school, will have to study the inner workings a bit more though
sure thing
i have one quick fix to statuscat command, it will work after this, actually api provide the image of all status code but http module doesnt provide for 425 and such so if we add list of valid status code which are not mentioned in http module we can fix the error
@neon garnet can i use get emoji link from pydis server
like atie does
but my emoji will be random
okie
@glass pecan Should I start by looking into https://github.com/python-discord/bot/blob/403bb4940817002c75099a47eddfe48c5b279a76/bot/exts/info/help.py#L41?
What is it all about?
I'm thinking of porting it over to @dusky shore for a nicer ctx.send_help
Right, well, you can start there, sure
Should I expect any behavioural differences between the LinePaginator classes for the two bots?
It shouldn’t be any different, but a fix/change from one of the bot could have not been ported to the other
I'll go and write an issue later so we could track it there as well
@green mesa Use , as a seperator instead of |
__A__ssertive, __R__efreshing, ...
Can you add a space after the , ?
sure
I like the look of that
(with a space)
What does it look like with a longer zodiac
Like the longest one
It's not bad, and i'd imagine that would be huuuge with the previous version
yeh i also like this
Maybe rearrange them a bit? in the order of motto, strengths, weaknesses then the full form?
What do you think about that?
It would be nice if we could have some capitalization too
for strengths and weaknesses?
Yeah
ok
the G and P should be at least
Then you can push the version you like best, was just curious to the different formats
Am at work, can look at it if i find the time
ok
i think i need to make like this
https://media.discordapp.net/attachments/635950537262759947/761100312508629012/unknown.png
bcz user may wnt to give multiple names at once
@green mesa You can add a special case for it I guess, if the user requests just one then the thumbnail can probably be used
ok
what does Mock Members mean
i saw a class called mock member and also classes called mock scragly and mock hemlock
Unit testing related stuff
It probably also says what it is for
As well as you can judge by the files location
sorry but i couldn't, that's why I was askking. But thx for the asnwer
Quick suggestion, maybe you could do a fuzzy search and send a suggestion to the user who invoked the command?
Maybe it could include the date range on each zodiac, since you already have all that whitespace available?
Also, how did you ordered them?
that too would be a neat feature
date
Yeah, deffo include date then. Else it looks unordered
Unless it should sort by Name and be written as 1. Aries from - to?
But you didn't start by the one from the beginning of the year, did you?
ok let me order them by alphabetically
While you're at it, can you change the log.info("Making zodiac embed.") on line 63 to trace?
names are fetched from json directly
ok
one more thing i show the same error embed in partnerzodiac and zodiac
for zodiac date will look legit but for partnerzodiac?
Something like py error_comp = "\n".join( f"`{i}` {name}: {zodiac['start_at']} - {zodiac['end_at']}" for i, (name, zodiac) in enumerate(sorted(self.zodiac_fact.items()), start=1) ) would sort and show date.
You could have a parameter for the function that toggles date or not, but i dont see a harm in knowing the date when doing partnerzodiac?
isn't that your pr lol

