#dev-contrib
1 messages ยท Page 63 of 1
oh yea, grats @obsidian patio
congo for core dev akrays
The callback isnโt valid anymore
You can just open a new webpage, and it should work again
Thanks, guys!
Alright. I tried to reload the page a couple of times before and it didnโt do anything @green oriole
Btw, that blue role actually looks good on you
yeh
thanks!
Got it working by opening a new tab, but is there anything that could be done about this issue?
Maybe we could redirect onto the main page, assuming it is supported by the library, Iโll take a look at it 
Alright, thanks
@green oriole Woah, you are now Core Dev... Congratulations! ๐ ||I want to be too core dev and staff||
Thanks!
ks|| I wnt to be contributor and core dev no need of staff role||
@green oriole Woah, you are now Core Dev... Congratulations! ๐ ||I want to be too core dev and staff||
@cold moon me2 haha
@green mesa i commented a few more changes on ur PR
no hurry ๐
@green oriole I see. Thank you for this info!
@sullen phoenix Could you elaborate on this comment?
https://github.com/python-discord/seasonalbot/pull/449#discussion_r492434403
I don't quite understand what you mean
hey can anyone help me with setting up the modmail
i asked in it's orginal server but no resonse
and what is meant by py dis core developers?
hey can anyone help me with setting up the modmail
@polar path not really, we just run the docker image, we don't maintain the application
@sullen phoenix Could you elaborate on this comment?
https://github.com/python-discord/seasonalbot/pull/449#discussion_r492434403
@obsidian patio i can elaborate in a little over an hour, after class
Alright. I may not be able to fix it toady, then (time zones, you know), but we'll see
Aah, perfect
basically, all you need to do is move the extensions util file contents to the __init__.py
and replace the walk_extensions func
it should be relatively simple
So the walk_extensions should be removed completely? (old one)
yeah, the new one should work with the extension loading
And the ext utils file should be deleted?
yeah exactly
Alright. I'll have a look at it now
awesome, thanks
Seems like we have a from bot import exts statement that's causing some trouble
That will import the file itself
Someone doing a fix for it?
@mellow hare For what?
The import issue you just mentioned
Ah, I missed that, sorry
F1re asked me to the contents of a file in a pr review
Yep. Not sure about the reasoning behind it
I have a hard time keeping tabs on whose Github name goes with which Discord person
I need to make a like... print out or something
we could probably handle it through site
Aah, yeah. Mine is linked in my discord fyi
Yeah I just don't want to have to keep going elsewhere to figure it out
yeah
Yeah, reasonable
Would be easier to just have a piece of paper in front of me where I can go "Oh, that's f1re"
Hahah yeah. You could always make a terminal command
.pr 453
Hemlock this pr is waiting for your review
ghuser gustavwilliam -> @obsidian patio
I have changed 1 thing only
I'll check it out
Ok tnx
we could probably handle it through site
Yeh we can have option same as discord for GitHub
maybe we should use our github names as nick?
Eh, I don't want to force everyone to change just because I'm grumpy
That will be good but some has 2 id
in my case, the names are different but the profile pic is the same
That will cause issue
Yeah, and that helps me out a lot, Ice
I think it's mainly that a lot of people just have the default
Mine profile pic is also same
what are the odds of this, lol, same number of additions
Due to bad weather ss is not loading my net eh๐
Spooky
@sullen phoenix this is giving me an issue. Since the __init__ file is part of the ext module, it'll be run when importing ext. Moving the code would result in the __init__ file trying to import itself in an endless loop, I believe. Is there anything in particular that you're trying to solve by moving it, or would it be fine to let it be in the original file? That didn't give me any issues
Ty for approving hemlock๐
thank you @mellow hare for taking up the review for my PR ๐
No problem, might take me a little bit to go through it
np, lemme know if u need any help understanding
I really felt like continuing the "thank you hem... ๐" chain
Next part of Dewikification PR opened
Not at the moment
okay
Now I am waiting for my pr to get merged๐
I'll spin it up on my local machine and go from there. Does it rely on any changes to site?
oh i see, i didn't realize it imported the module, interesting
@green mesa Yep, just waiting on it to finish doing its checks
Ok
I'll spin it up on my local machine and go from there. Does it rely on any changes to site?
@mellow hare what do you mean?
Like were there any API changes that were made on the site to make this work
@cold moon that'd be nice if you could include more infos in your PR description, it is a pretty important change, and you don't say what are the changes and how the new setup work
Yeah hahah. We could probably solve it some other way, while getting the logic into the __init__, but I think leaving it in the original sounds best
@mellow hare for seasonal? No, you don't need the site
At least if it isn't causing any issues
No no no
Oh my god I'm an idiot
This is a Site pr
I thought it was a bot one
Doy
Oh haha
wait no, it shouldn't be a circular import
because it shouldn't try to import itself
hm wait
nvm
confusing myself lol
There is a new endpoint, its bot/users/bulk_patch to patch users in bulk
and my PR removes the drf-bulk package and implements bulk-create too (independent of the drf-bulk package)
@eternal owl Ignore me, I'm speaking the crazy talk
Yeah I see that now
I was confused as to which repo this was on
Importing a module should run its __init__.py file, from what I'm aware
@obsidian patio Not necessarily
https://paste.pythondiscord.com/fayeqoxufa.py
take this test code, if u need it later
Oh well yes it'll do that
no, it runs it once in the beginning
Hmm, alright
Well, yeah, modules are cached
But in it's __all__ it's just loading the two functions within the __init__ file
So there's no worries there
Or am I misunderstanding?
Why wouldn't we just keep it in the separate file?
that's probably fine too
That's what we do on the Python bot
Ty Akarys
Hem apparently didn't want to merge it
We really should overhaul Seasonal to conform more to @stable mountain's style
Dude...
I'm easily distracted
Blame the ADHD
@dusky shore has a lot of technical debt
That's fiiiiine
technical debt
Huh, first time I've heard that phrase
Personally I don't like putting actual code in __init__ files, it feels pretty unorganized
Each file should have its own purpose
I'm not opposed to making it a utility
Let's keep it in utils
Although, I have to admit, no idea what we are talking about 
@green oriole Is this now better? I'm not very good writer in english.
and move the other function over to utils
but anyways, my brain is all jumbled up now lol, back to class
Right
Study hard, study well
I'm curious how we handle it in @stable mountain
Utils everywhere
Oh right, and we have a separate cog loader anyway
Is this now better? I'm not very good writer in english.
@cold moon yeah much better, don't worry, as long as you do your best to speak English, you're fine
I think the code currently in __init__.py should be fine
And we can merge the pr instead
@cold moon are u planning on working on this
https://github.com/python-discord/site/issues/385
@mellow hare True. We are surprisingly many Swedes and Norwegians
We only have two functions, so for now I'm guessing that it is fine, although if we add more, we should definitely move to an utils file I think
Told you, we are being invaded by the north of Europe haha
.wiki bacon
1 Bacon
2 Francis Bacon
3 Back bacon
4 Kevin Bacon
5 Six Degrees of Kevin Bacon
6 Sosie Bacon
7 Francis Bacon (artist)
8 Roger Bacon
9 Vegetarian bacon
10 Bacon sandwich
When I tested the code locally by tagging channel it worked
Enter number to choose
.wiki @mellow hare
Sorry, we could not find a wikipedia article using that search term
Seems fine to me
It's probably searching for this: @mellow hare. How often would there be results for that?
Isn't that a perm issue?
Can u search .wiki #dev-contrib
No, definitely not the right one haha
It's not reading error
.wiki #dev-contrib
Sorry, we could not find a wikipedia article using that search term
Wow
Yeah, that's a perm issue
It worked for u
Staff have special permission
Sorry, we could not find a wikipedia article using that search term
Yeah, everything's fine, nothing in sentry
@eternal owl No, currently I try to migrate resources (guides, books etc.). But these wait for both of my current PRs
okay
.issue 449
This should be fully ready to merge whenever ready
Nice ping command
0.000 ms
12.276 ms
101.374 ms
Noice
0.000
very fast lol
Nice @vocal wolf
Ah yes, thanks discord
Thanks, it took much longer than it should have
aioping didn't want to work

alright next issue
This issue tracker will be empty soon with that attitude hahah
and reviewing will pile up
True
And 1 partnerzodiac needs some updation
I need to kick some rears to get more reviews going
I know people don't like to do them but they're vital
Once codespaces is setup, I'll try to do more reviews as I won't have to be in on my computer to launch the bot 
Fair point
Hadn't thought about that
I mean honestly even if I manage to get people just looking for syntax, logic or efficiency stuff I'll be happy
https://github.com/python-discord/bot/pull/1157
this PR is ready for review
very small one
I just now updated my branch
and im geting redis error
socket.gaierror: [Errno -3] Temporary failure in name resolution
seems to be working with docker tho
i went back to my last commit when the bot was working
I get the same error even now but the bot doesn't stop the execution there, and continues
but when i update the branch with the latest changes, and run, it stops at that error and exits
https://paste.pythondiscord.com/exofanixun.coffeescript
this is the complete error
@eternal owl Have you made sure to set the use_fakeredis flag to true in the config.yml?
Or are you running redis locally
@sullen phoenix whenever youโre free, Iโd love to see the extensions command merged into master
Nope. Isnโt that one supposed to be there any longer?
@sullen phoenix if this is the last thing needed before we merge, I could get up and do that as the last thing before going to bed
There's really no rush for anything that's not critical
Yeah. Would still be nice to get it merged. Just feels good to have it done, instead of waiting another day or two
no no, you should go to bed instead. like Numerlor said, no rush
well, you'd need 2 approvals anyway
Hahah yeah, fair enough
.pr 456
@eternal owl in subcommand for date of partnerzodiac i am only taking date and month from user so it's hard to map with zodiac sign ,I can't touch the zodiac_explantion json file it will not help in this scenario I think
Any recommendations how should I tackle
๐
I am taking this 2 input only
And have json like this
as I said, have a dict to store all the information about the zodiac signs
in the json file, also include and starting date and ending date for each zodiac sign
then when u load the json, convert that to a datetime object
Hey @obsidian patio, after investigation your issue a little, it seems like a monkey patch is causing this, the issue for replacing it is here https://github.com/python-discord/site/issues/341 
.pr 456
Aah, alright. Thanks for showing me Akarys. I donโt quite understand how it happens, but Iโm glad you found the issue. Maybe move the issue from low to normal?
Was about to do that, but I ran out of time 
Hahah, no worries
You shouldn't need to change anything in docker for the installation at least
but you probably need to add ffmpeg to the environment with docker
ffmpeg violates Youtube TOS right ๐
No
No
yt-dl does
ooo
ffmpeg is an audio driver
youtube-dl is what downloads content from youtube, and uses ffmpeg to stream it to discord.
oo
You'll need to remove git from the the image, so you just have to change this line to ffmpeg https://github.com/python-discord/seasonalbot/blob/master/Dockerfile#L12
yt-dl also relies on ffmpeg internally I think
ok
I don't think it is available on pypi
RUN apt-get -y update \
&& apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
this way
Looks like it
ok
IDK if this is the right channel but i am trying to add the python bot to mi server as well, but if i need help setting it up should I ask here.
pls ping me
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.
just follow steps and u r set
oh ok thx
well when following that I already get an error from the code
Unable to import 'discord.ext'
Unable to import 'coloredlogs'
@late wolf < https://pythondiscord.com/pages/contributing/bot/#contribution>
@green mesa That's For Contirbutors
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.
yeh and for contributing we first run the bot on our test server
just dont contribute
If you mean to invite the bot like a public bot to your server, it's not possible.
It's only possible to selfhost it
And even then, it's created quite strictly to our requirements and community structure, so it may not suit what you want.
If you need something from the bot it'd be abetter idea to extract that part of it instead of trying to set it up whole
We are unable to support third party usage really on a formal level, but if you have troubles with things you could probably ask questions when needed.
If it's generally about discord.py, #discord-bots will be able to help. If it's specific to something about our bot, it's likely the above contributor guide has info on it.
wdym by 3rd party usage
outside of our own community
hope it goes well!
interval: 5
max: 3_000```
What the hell does 3_000 mean?
Found this in `config-default.yml`
@late wolf sure can, but i can't promise solutions
@queen dawn it means 3000
the _ is a thousands seperator format
it's supported in both yml and newer versions of python
oh really
!eval print(3_000)
Python lets you place them anywhere within a numbers.
@glass pecan :white_check_mark: Your eval job has completed with return code 0.
3000
np
You are not allowed to use that command here. Please use the #bot-commands channel instead.
oh sec
that would work, yep
in python, like grote mentioned, it'll just ignore any underscores you use no matter where
If running the webserver in Docker, set it to "web:8000".
If the site container is running separately (i.e. started from a clone of the site repository), then COMPOSE_PROJECT_NAME has to be set to use this domain. If you choose not to set it, the domain in the following step can be used instead.
If running the webserver locally and the hosts file has been configured, set it to "pythondiscord.local:8000".
Otherwise, use whatever domain corresponds to the server where the site is being hosted.```
Can someone help me understand this?
I do not know to specifics what is a docker
and I don't know what to use
Well, how are you running the bot, using docker or pipenv?
Windows
what deos filtering lists do
Have you added the entry in C:\Windows\System32\Drivers\etc\hosts?
what deos filtering lists do
@late wolf where?
in github
What entry?
127.0.0.1 pythondiscord.local
127.0.0.1 api.pythondiscord.local
127.0.0.1 staff.pythondiscord.local
127.0.0.1 admin.pythondiscord.local```this
How do I add this?
@late wolf I mean, in which file?
@queen dawn open notepad as admin, open the file, and add those lines at the bottom
bot folder fileters folder
notepad++ workls too?
Yeah, sure
inside the bot folders and inside the filters folders
https://prnt.sc/umfw6t Here I should add all of these?
At the bottom of the file
https://prnt.sc/umfxr4 Like that?
@late wolf well, as written in the docstring, it is used to manage the whitelists and blacklists of the bot, such as the watchlist trigger or the invite list
@queen dawn no, no # before those lines
Oh
only on the ones you told me to add right?
and what about the spaces? I should remove them too?
(talking about the spaces between hashtag and the ip address
idk what whitelists and black lists are @green oriole
@queen dawn you can but it isnโt mandatory
Okay I added these
@late wolf a whitelist is a list of autorized stuff, a blacklist is a list of forbidden stuff
so if I understand corretly now I need to use pythondiscord.local:"8000
ofc without the typing mistakes
i see, so incase of python bot what are some white lists and black lists could u give me an example
exactly!
Great! Thank you so much Akarys! I would have never even got close to do this
@late wolf well, as I said, thereโs the watchlist triggers (list of forbidden words/regexes which ping mods when used), and the server list (the servers you are allowed to post invites to)
@queen dawn any time! 
thx
I got to creating the .env file, just a quick question, when they mean the project root they mean the folder that contains the config-default.yml the config.yml, the readme.md and such right?
Thatโs the one, yeah
Great
it doesn't matter if I use touch .env or type nul > \path\to\project\.env if I launch Git Bash in the project root
right?
Ilove that emoji !
Haha, we have quite a few of those 
Yeah
I'm dying

do I need to run the .env file? I've always changed env variables through cmd...
The .env file is just here to add more env vars, you donโt have to explicitly run it
pipenv will load it for you
Great!
because i'm not using docker I need to use this "PostgreSQL"?
What is "The site" and why do I need it?>
Yeah, you need postgres and our website to run on your machine
The bot communicates with the site in order to store data
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.
so just follow this tutorial too?
Yup
I'd recommend using Docker, if you can. It even works well on Windows 10 Home now, assuming that you're on a fairly up to date version
You have to be on a preview though, donโt you?
No
Not any more
You just need to meet the requirements: For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For WSL2
And then you can install Docker with a WSL2 back-end
It's easy and works out of the box
hey it says this in the tutorial what does this mean??
config-default.yml
there should be a file with that name when u clone the repo
u need to create a new file called config.yml and paste its contents in it
do u have any idea which folder that might be in?
??
idk what that is
line 136
oh i found it thx bro
what is meant by categories?
and what is the change log channel?
ohh i see thx but when we add a topic then why is it yellow but otheres are red?
the server has many categories- Bot Commands, Events, Help, etc
ohh i see thx but when we add a topic then why is it yellow but otheres are red?
@late wolf ?
also, check the pins, there is a server template u can use
I'd recommend using Docker, if you can. It even works well on Windows 10 Home now, assuming that you're on a fairly up to date version
@hardy gorge Why?
It makes life a lot easier. Normally you'd have to set up the individual services like the database and the server hosting. Docker handles all of that for you
Okay not server hosting
But in general it's as simple as docker-compose up and you're up and running
@eternal owl
@staticmethod
def zodiac_date() -> List[dict]:
zodiac_date = {"Aries": (datetime(year, 3, 21), datetime(year, 4, 19)),
"Taurus": (datetime(year, 4, 20), datetime(year, 5, 20)),
"Gemini": (datetime(year, 5, 21), datetime(year, 6, 20)),
"Cancer": (datetime(year, 6, 21), datetime(year, 7, 22)),
"Leo": (datetime(year, 7, 23), datetime(year, 8, 22)),
"Virgo": (datetime(year, 8, 23), datetime(year, 9, 22)),
"Libra": (datetime(year, 9, 23), datetime(year, 10, 22)),
"Scorpio": (datetime(year, 10, 23), datetime(year, 11, 21)),
"Sagittarius": (datetime(year, 11, 22), datetime(year, 12, 21)),
"Capricorn": (datetime(year, 12, 22), datetime(year, 1, 19)),
"Aquarius": (datetime(year, 1, 20), datetime(year, 2, 18)),
"Pisces": (datetime(year, 2, 19), datetime(year, 3, 20))
}
return zodiac_date
i have converted this into static method
is it right
bcz in json its getting messy
๐
u don't need a method for this
have that variable outside the class
i meant to have the loading of json date for zodiac info inside
like the description, etc
hmmm
have u included the starting and ending date for each zodiac in the json?
as induvidual keys
add the dates in the json
then in the Cog, write a script to extract all the data including those dates
lemme show u
add the dates in zodiac_explanation.json
in json we can keep tuples right
"Aries":{
"start": "iso date format for aries starting date",
"end": "iso date format for aries ending date",
...
},```
and 2 for month
actually i have defined year like this -> year = datetime.now().year
so we dont need to change again and again every year
ok then i will put leap year as year
2020 is leap year :p
so others can check for 29 also
noice
then i will hardcode it
json accept tuples?
looks like json dont like ๐
[]
ok list done
okay so
once u have added the dates in the json
it will be loaded here in ur script
with open(Path("bot/resources/valentines/zodiac_explanation.json"), "r", encoding="utf8") as file:
"""Load zodiac zodiac explanation from static JSON resource."""
zodiac_fact = load(file)```
so zodiac_fact will hold all that data
as we saved the dates in JSON as string, we want to convert them into datetime objects, so loop over zodiac_facts and convert the string representation to datetime objects
u can do that by using fromisoformat() method
ty
i have made this static method
@staticmethod
def load_exp_json() -> dict:
p = Path("bot/resources/valentines/zodiac_explanation.json")
with p.open(encoding="utf8") as json_data:
zodiac_fact = load(json_data)
return zodiac_fact
perform the creation of datetime objects in that itself
can u show me the way u stored the dates in ur json
yeh sure
{
"Aries":{
"start_at": "2020-03-21",
"end_at": "2020-04-19",
"About":"Amazing people born between **March 21** to **April 19**. Aries loves to be number one, so itโs no surprise that these audacious rams are the first sign of the zodiac. Bold and ambitious, Aries dives headfirst into even the most challenging situations.",
"Motto":"***โWhen you know yourself, you're empowered. When you accept yourself, you're invincible.โ***",
"Strengths":"courageous, determined, confident, enthusiastic, optimistic, honest, passionate.",
"Weaknesses":"impatient, moody, short-tempered, impulsive, aggressive.",
"full_form":"**A** for assertive\n**R** for refreshing\n **I** for independent\n**E** for energetic\n**S** for sexy",
"url":"https://www.horoscope.com/images-US/signs/profile-aries.png"
},
okay
so
for fact in zodiac_fact:
fact["start_at"] = datetime.fromisoformat(fact["start_at"])
fact["end_at"] = datetime.fromisoformat(fact["end_at"])```
nd dont forget to import datetime
from datetime import datetime
okay
in static method i have add this right
i have made this static method
@staticmethod def load_exp_json() -> dict: p = Path("bot/resources/valentines/zodiac_explanation.json") with p.open(encoding="utf8") as json_data: zodiac_fact = load(json_data) return zodiac_fact
@green mesa in this
yeh saying for this only
also
return
we dont need 2 methods to load json, u can merge the 2 methods
ok
Setting up the test server sure is tedious
Yeah. It really is
Soonโข
Are you working on a setup script?
i tried to make a setup script once, but the &ENV and other things stopped me
@eternal owl I haven't forgotten your PR, I just got caught up in work. I'll have it done by the end of the day. I need to see who else I can rope into checking it over
no hurry, and thanks @mellow hare ๐
Are you working on a setup script?
@obsidian patio something like that
Still at the design stage though
Is there issue about dewikification of Contributing pages, FAQ page, Rules, Code of Conduct, Privacy?
iirc there were talks about a bot that allows for bootstrapping that process
Okay after some break I got back to working on the code, and I don't know if to use the site with a docker or not... what's the quickest and easiest way
Pff, no fun pure
Wait if I did the bot without a docker does it mean I have to do the site also in a docker?
The easiest way is to setup the bot with docker
You won't even need a local copy of the site
Thatโs awesome Akarys. The current setup is... monstrous
Btw, is there anything shorter I can call you? Like โAkโ or something
@green oriole Wait so you think I should do the bot again but using a docker?
and then what should I do the site in?
Btw, is there anything shorter I can call you? Like โAkโ or something
@obsidian patio I'm fine with "ak", yeah
@queen dawn forgot to ask you something, are you on windows home or pro
Yeah it does
Well, docker will be faster then
You don't really have to change a lot of things on your already setup bot
The only thing is that the site url is now web:8000
You won't need to, that's the magic of docker
OOOO
So just follow the guide of the bot again and just change the things that are related to the docker?]
Well, the only thing you need to change is the url
Alright, nice
The docker engine, yeah
for fact in zodiac_fact:
fact["start_at"] = datetime.fromisoformat(fact["start_at"])
fact["end_at"] = datetime.fromisoformat(fact["end_at"])
@eternal owl its raising error
What error
fact["start_at"] = datetime.fromisoformat(fact["start_at"])
TypeError: tuple indices must be integers or slices, not str
i dont know y its taking as tuple
can you link me the PR?
.pr 456
oops
for val in zodiac_fact.values():
val["start_at"] = datetime.fromisoformat(val["start_at"])
val["end_at"] = datetime.fromisoformat(val["end_at"])```
.pr 455
this one kwzrd
try that code
cheers
i should check the format again
yep, i got it right this time
what happened before is that it was looping for the keys and expects an index instead of a string
https://github.com/python-discord/bot/issues/553 should be updated to follow new cogs schema.
@sullen phoenix It's fixed now. I really hope this is ready to merge this time around
Okay I don't know if it's connected but after restarting fo rtthe download of the Docker I was asked to download a linux something and now I can't launch discord on my PC and I get an error form the docker installer (auto opens on startup)
I can send the crash report from the docker installer
I assume you're on Windows?
and form discord I can take a screen shot
Yep WIndows
Discord:
A fatal Javascript error occured Error: Cannot find module 'discord_desktop_core' Require Stack: and then a lot of paths that go to appdata\local
What error does Docker say exactly?
Hey @queen dawn!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
Do you have WSL2 enabled/installed?
Right, just checking an edge case as well
Maybe hyperv isn't enabled though
I know I had to disable a setting in my bios to allow docker to use hyperv
What setting?
Maybe you could try this https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
it was something about virtualization under advanced settings
let me see if I can find the SO for it
Oh I know that
Let me try a sec
I think it worked 
Oh
Nope
But discord is fixed if it's sopme how related
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Don't know y I got this
For windows pro and windows home u have to enable visualisation differently
in windows pro when u boot pc just press 2-3 time F2 and in setting enable visualisation
And then boot the pc
Yesterday I enabled visualisation of my windows pro for docker
With this method
Ok then where r u stuck in installing docker?
wym
I started the installer
then restarted when askled
then it wanted me to seperatly install linux something something
then I installed
restarted
and now when ever I start the PC I get the error message linked above
I don't have experience with docker, sorry ๐
u need 03 instead of 3 @green mesa
its not taking that 0
also, take it as a string instead of an int
Thinking of doing this way
Ok
stop being so pure
Pure's bot doesn't have access to the emoji apparently
emote used to say that bot failed to send the DM with infraction
but the emoji uses id right?
and there is no need for that
someone had told me this earlier
I like that reason ๐
the bot must be in same server as the emoji to be able to use it
pretty sure majority if not all mod emojis are used in <:name:ID> format so they can be used cacheless
ok
Can someone help me?
https://pastebin.com/xQ358cQp I'm trying to install Docker
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
and jsut nothing f***ing works
What windows version are you on?
10 enterprise
To confirm, virtualization in the BIOS is turned on and HyperV is also enabled?
HyperV and SVM
Do you have a fresh download of the docker desktop to install?
Yeah let's go for it
Okay
Let me just recheck in the BIOPS
Im now checking the bios
And I don't see hyperV
Only see SVM Mode
HyperV won't be in the BIOS settings, it's a windows feature
Okay after a couple of times trying to install hyper V it always gets stuck in the same place
what can I do?
What is it getting stuck on?
on the download
at about 20%?
I used power shell
not trying on cmd
but I don't see it getting any better...
do you mean enabling hyperV? It shouldn't be a download
Download?
I found on docs.microsoft.com that I should do it throught powershell or cmd
well, you can try enabling it through the settings and see if that works
Yeah I think you have to do it via the Windows Features thing
Could it be because the docker installer is running
Possibly
okay I pressed quit should I try now?
Go to your Programs and Features Window (where you would go to uninstall stuff)
Then on the left hand side you'll select Turn Windows Features on or off
And then you'll click the check next to Hyper-V. It'll start downloading stuff and probably ask you to restart your machine
Yeppers
I had to go through the same process when I tried to get Docker up and running
Still doesn't work 
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I'll try top reinstall
but even since I downloaded the docker I've had a problem with my PC
sometimes it just doesn't boot to windows
Anyone? I'm really tried of this.. been on this for a few hours with no progress
I've been told it's not a good idea to use a docker on Windows
so I should go back to not use a docker?
I haven't had any issue with docker on Windows. Honestly I would start from scratch and delete and of the docker files you have so far and double check your settings for both HyperV and WSL 2 and go through the install instructions again.
That error messages suggest something funky with the WSL 2 engine, so maybe disabling wsl2 and just using hyperV might be the way to go?
approved! @obsidian patio
Aah awesome! Thanks ๐
no problem
Could someone else review it as well?
That error messages suggest something funky with the WSL 2 engine, so maybe disabling wsl2 and just using hyperV might be the way to go?
@thorny obsidian how do I do that
now found some windows files were corruped
Trying again
.issue 432
Is installing ffmpeg necessary here for the Dockerfile? I don't really see it on the blame for said file.
Either way, I'll launch it after I grab lunch.
https://github.com/python-discord/site/pull/378
One more review to go!
Building containers does sure take a while
@green mesa I've successfully built your PR using Docker but discord.py seems to error out with the following traceback:
seasonalbot | 09/24/20 04:41:12 - bot.exts.evergreen.error_handler ERROR: Unhandled command error: 'NoneType' object has no attribute 'connect'
seasonalbot | Traceback (most recent call last):
seasonalbot | File "/usr/local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
seasonalbot | ret = await coro(*args, **kwargs)
seasonalbot | File "/bot/bot/exts/halloween/spookysound.py", line 37, in spookysound
seasonalbot | voice = await self.channel.connect()
seasonalbot | AttributeError: 'NoneType' object has no attribute 'connect'
Might have something to do with my test server
It probably "gets" a channel somewhere based on an ID. If a channel with that ID is not found on your guild, that get channel function will return None
Good example of the dangers of None
It obtains a channel ID from constants.py which I assume is tightly coupled with this server
Most likely, yeah. There are some IDs in there that get their value from an environment variable so you can configure it to a test server. I'm not intimately familiar with Seasonal Bot's constant system, though; not sure if the design is to just create a lot of environment variables for all these channel constants.
@neon garnet have u mentioned voice channel id in constants.py?
Yes, currently building w/o installing ffmpeg now
If anyone has time to review this as well, it would be awesome
When good first issue tag gets added to any issue?
Not quite sure what you mean
Typically that's added for issues that can easily be resolved by first-time contributors or beginners
At least for @stable mountain
@dusky shore does not use a database
To be fair Python doesn't use Postgres so to say
It interacts with it through the site
That's why commands like kick, ban, etc are really quick
Because instead of manipulating the db directly, it sends a request to the server, which manipulates the db
Hmm then @neon garnet how r u planning to make emoji count command without db๐
R u planning to write to file or something
I wnt to get number of uses of particular emoji ๐
emojis```
All emojis that the guild owns.
Type Tuple[[`Emoji`](#discord.Emoji "discord.Emoji"), โฆ]
@green mesa Well, that's not really possible
This only gives the list of emoji that guild has
and that's out of scope for my feature
Ok
Let me read the issue again then๐
I think I have missed something
Or misunderstood
.issue 1170 bot
Currently waiting for approvals/suggestions on this feature although I have a rudimentary implementation set up
It looks pretty good, although I canโt judge if this feature is needed
The implementation and the UI seems to be pretty straightforward
I think you can just go for it, we donโt really approve issues on @stable mountain
I guess what they are after is suggestions from the moderation team
Staff should be able to self-assign issues anyway
commented
Might as well ask #mods then 
sure i'll send a ping, why not
annoyed a few tens of people
if there's nothing after a while, i think we can trust it's a sane implementation
annoyed a few tens of people
we're used to it
๐
Donโt forget to assign yourself on the issue @neon garnet 
Thanks for the heads up
np
What role do you need to assign yourself issues?
you need to be part of the github staff group
if you're not in there, ask an owner for privs
Aah, alright. I should be able to, then. How is it with adding labels?
You mean who can edit labels? Should be the same
same deal yep
So I can add WIP, importance level and such labels?
you're allowed to, just understand a core dev may change it lol
i doubt you'll have issues though, they're pretty self explanatory
Perfect, thanks
I am a bit clueless about how to make codespaces throwaway, since you need a config file for the bots
The only thing I can think of is using dotfiles to store configs, and maybe encrypt them
yes you're allowed to approve if you're reasonably sure it's a useful feature
if its a bit iffy, it's better to not make the jump and just ask in here
Alright. Thanks @glass pecan ๐
That's why commands like kick, ban, etc are really quick
I donโt really contribute here, but was curious how this is faster?
#dev-contrib message
I will review the pr in about an hour @green mesa
ok
@gusty sonnet i just linted and i didnt get any error from json
i used pipenv run lint command
Hmm, you probably aren't using ESlint right? ๐
Well, try to format it then
like adding space between :{ / keep spacing consistent at 2 or 4, etc
On Android last letter is not getting underlined ๐
It's again discord bug
Any recommendations what should I do
what does your markdown look like?
sadly Discord markdown is not very consistent across platforms
Discord should really make this look exactly same in every platform.
Especially mobile
Should I open issue in site repo about (Dewikification) creating app for serving contributing guides?
I think you should focus on your already open PRs first
lot of typos @green mesa , lol
@eternal owl where๐
Lol
๐
Tnx
Btw is command working
Or I need to change something๐
I am fixing my typo rn๐
Thereโs a PC extension for spellchecking, it is pretty great, I use it personally
For vsc?
Ah, I donโt know
when someone enters an invalid zodiac name, can we display the list fo zodiac signs instead of the error message? what do you guys say?
I like the idea
cuz people like me might not know the spelling of some zodiac signs, lol
Yeh
lemme make a comment on the PR about this
We can give them 3 chances to type out right zodiac name
no
just sending a list of zodiac names will be good enough
then they can re-invoke the command
Hmm ok
sorry for being slow, its going to take a lil longer @green mesa
Np I will edit by code tomorrow ๐
๐
U can take your time
so u hardcoded the dates for capricorn
now u did this cuz the regular checks werent working?
the reason it fails, is
the end value is 2020-01-19
instead it should be 2021
capricorn goes from 2020-12-22 to 2021-12-19
but in ur code, it goes from 2020-12-22 to 2020-12-19
Why I'm getting:
docker.errors.APIError: 500 Server Error: Internal Server Error ("b'Mounts denied: \r\nThe paths /opt/pythondiscord/seasonalbot/data and /opt/pythondiscord/seasonalbot/log\r\nare not shared from OS X and are not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'")
when running SeasonalBot with Docker
@eternal owl if I make any change it start sending Capricorn only
That's y I hard-coded for Capricorn only
Others are dynamic
It fetches value from json and make datetime obj
And then bot compares
@cold moon your docker isn't properly configured to accept volumes
Maybe not running as root? (or whatever is the macos equivalent)
i found the fix @green mesa , i will include it in the review
Ty
@exotic ember https://github.com/python-discord/seasonalbot/pull/397#pullrequestreview-491989479 This is not possible to add newline to game for compact mode. Discord don't allow that.
I think a blank/empty character and then a newline works
Discord won't strip out zero width spaces
@brazen charm Thanks, this worked
But this give another thing: Emojis will be too small in Cozy mode.
So should this have really small icons, but format well in compact or don't format that well in compact mode and have good sized emojis
Looks nice
tic tac toe?
Yeh
Should I re-request review once I've committed something that implements requested changes, or should I allow the auto-request from pushing a new commit do that?
Hey @obsidian patio I'll be doing some changes on the permissions tomorrow, mind if I change the !role permissions in the same go?
Aah, sounds great. I'll assign you
I'd say you don't need to re-request but I wouldn't be opposed to it so we don't forget about the PR @sharp timber
@sharp timber you can ask for review again, yeah, although I'm not sure what you mean by auto-request Damn, sorry for the second ping
Now someone just has to press the magic button with the extensions command
"Changes requested" has one person, and "2 pending reviews" has two other people added by the github bot (?)
I think mark will get to it regardless
as for lemon and Hem, it doesn't have to be them to review it
Right, you'll have to re-request to review the person who requested changes again, anyway
Gotcha
I thought it was like that but wasn't sure
Should be all ready to go now then
The repos are set to request 2 reviews from the core devs when opened, after that it only notifies the subscribed people
magic button pressed vest
@dusky shore development will be much smoother now, I'd say
So the manual request will pop up even when not subscribed, but most of the time I'd say people who reviewed will take a look later when addressed
Yes, seasonal is waaayyy faster
Im looking at your PR currently, Bast
@subtle kraken can u also have a look at my pr for partnerzodiac sub command ๐
.pr 455
@green mesa review submitted, quite a lot of requested changes.
for the JSON, I said we could use iso-date format strings instead of a list to store month and date numbers, to save u the time to replace all that, I have already done it (sent the json file in DM)
So, by clicking "Resolve Conversation" I've been getting these: https://discordapp.com/channels/267624335836053506/622895325144940554/758796395699896320
Allllllllllrighty folks, time for me to have a call to action. Anyone feel like doing me a solid and doing a code review? https://github.com/python-discord/site/pull/378
So, by clicking "Resolve Conversation" I've been getting these: https://discordapp.com/channels/267624335836053506/622895325144940554/758796395699896320
@sharp timber nah, that's because you commented on one of the review comment, github is just a bit silly
@mellow hare can you can review https://github.com/python-discord/bot/pull/1165
this PR too please because this one is directly linked to site PR which you reviewed recently
Off-topic names are chosen randomly right?
Well, yes
Currently reading through https://github.com/python-discord/site/blob/5e8b55146a13b99453595337f33c06d96767b0d5/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py#L15, what exactly does "used" mean in this context?
If they have been already used once in this rotation
So yeah, it is random, but not fully random, we make sure they all appear at least once
Right right
@eternal owl y u wnt to take date in isoformat only?
It's much more pragmatic than just an array of numbers

discord.ext.commands.errors.ExtensionFailed: Extension 'bot.exts.valentines.valentine_zodiac' raised an error: TypeError: descriptor 'isoformat' for 'datetime.datetime' objects doesn't apply to a 'str' object
i think again i need to make list
Uh, what did you do?
for zodiac_name, zodiac_data in zodiac_fact.items():
zodiac_start = zodiac_data["start_at"].split("-")
zodiac_fact["start_at"] = datetime.isoformat(zodiac_start[0],zodiac_start[1],zodiac_start[2])```
{
"Aries": {
"start_at": "2020-03-21",```
i think i need to use %Y-%m-%d to split
isoformat is used to serialize a datetime object into a string, I think you want to do the opposite?
fromisoformat takes the whole string and parses it, you don't need to split it yourself
>>> from datetime import datetime
>>>
>>> datetime.fromisoformat("2020-03-21")
datetime.datetime(2020, 3, 21, 0, 0)
Ice I'll look at the one you linked me today
thanks ๐
I need to start kicking butts to get other people to review
i still need to change the testcase i guess, cuz I changed the implementation
Like even if a handful of staff or regs can do one a week or hell even 1 every 2 weeks I'd be happy
discord.ext.commands.errors.ExtensionFailed: Extension 'bot.exts.valentines.valentine_zodiac' raised an error: TypeError: descriptor 'isoformat' for 'datetime.datetime' objects doesn't apply to a 'str' object
show code
print(zodiac_data)
zodiac_data['start_at'] = datetime.isoformat(zodiac_data['start_at'])```
I really appreciate your hardwork :p @mellow hare
its fromisoformat
instead of isoformat
lol
xD
use date instead of datetime also
as we don't really care about time
from datetime import date
date.fromisoformat()
tnx buddy let me try
๐
ur best friend is the python repl
i do a bunch of testing there
a quick note @mellow hare , the bot PR uses the changes in the site PR
so you will have to run the site which has those
Yeah I wasn't going to merge it until I knew the site PR was live
oki
