#dev-contrib
1 messages · Page 81 of 1
!remind 13h Debug sir-lancebot issue 564
Your reminder will arrive in 13 hours!
@gritty wind #sir-lancebot-playground message it doesn't happen now
Yeah its a cache thing
or intents
Can't we just require a user id to be entered
so jsut making sure it takes a user, can fix it right?
Converting to "int" failed for parameter "id_".
!remind edit time 1398 1h
That reminder has been edited successfully!
can't you also edit it without the time
dunno, lemme see
nah
What cool down?
Uhh, keep it to what the issue is asking for atm, I'll check in with other coredevs
ok, but of them are just small changes so thought could include them with this
If you want to do that, you'll have to wait for those things to be discussed
ok
I'd prefer you close this issue now, so we don't keep spamming people
We can open another issue for the other suggestions afterwards
No member intends I think
hmm, then we would need to remove that, lemme enable them and test
Did you add them to the bot init?
add what?
You have to tell d.py you want to use the members intents
Also, if you are going through function-by-function to find the ones that break, well... it might be quicker to do a search through the valentines folder for the things that are listed in the docs
i went function-by-function
ok so in the secret, the problem is with intents, so what should i do?
ok
If something can be restructured to not use them, such as taking a user, do that
Wdym?
allow secret group command to be run in #sir-lancebot-playground and not dms
I don't see how that has to do with DMs 🤔
Also, looking through the secret code, it should work even without the intents
nope doesn't
Then just disable them in DMs
ok
One thing you can do to maintain the whole secret vibe
Is to delete the invocation command
nice, will do that
done! 🎉 , time for linting and improving
i found another unknown issue while working with this now
Yeah?
yeah, on issue map
message.channel.category.id in WHITELISTED_CATEGORIES
AttributeError: 'DMChannel' object has no attribute 'category'
@short snow
Here's your reminder: Debug sir-lancebot issue 564.
[Jump back to when you created the reminder](#dev-contrib message)
Hmm we probably should've gotten you assigned
oh shit
Hey @vale ibex, @short snow was already working on a fix, we just didn't get him assigned
my bad, next time will comment on the pr
Ahh no worries 🙂 ooi, what is the proposed alternative behaviour?
Sorry for the confusion, but I'd still appreciate you reviewing it if you're interested
From coredev discussions, the general consensuses was if a feature needed the intents, remove it
If it could be modified to work without them (such as taking a user), that's preferred
lemme open a issue for this
Fwiw, the reasoning header in PRs is usually not why the issue happens, or why it is being fixed (that all goes on the actual issue), but why you chose the specific solution
Not just in our repos, but in general
Hey it seems you've gotten the be_my_valentine file, but not the rest of the valentine cog
Ah, will do that too.
AH right, so is this PR just removing the features?
Did you have an alternate suggestion?
Yea, that's what I was going to look into yea, rather than remove it 🙂
Nice job @short snow
Without iceman couldn’t do it, for getting 100 of dms and pings 🙂
in the other cogs if u find any issues let me know (of valentine)
ik of .love command
Love calculator tries to get staff
I think it just picks 1 staff at random on startup and always uses them
Ok love calc has, yeah
which is why @ashen isle was getting a lot of love yesterday
❤️
Only those three have issues
“Fake love”
I'm planning on looking through lancebot tonight to see if there are any other cogs that rely on the intent
Alright, awesome!
Yeah, am keeping it those three
Yea agreed. limit the scope of now, I'll raise seperate issues
(love calc, love, bemy...)
Is vester still working on lemon beardify and wiki fuess game?
since i think they were complete
Complete as in awaiting review, or already reviewed?
@obsidian patio
none of them, in his test server, his lemon beardify worked like a charm
thanks chris! will have a look at your pr and mention the changes
@short snow as for the wiki game, I’ve been too busy and I’m opening that up to anyone else who’s interested in working on it
I have a working solution for the beardify command, but the command isn’t pythonic enough and isn’t optimized to something that I’d like to add to a bot. Hopefully, I’ll be able to finish that some day in the coming months, but I am planning to write a library with some features that would make the process much smoother. Hopefully, I’ll find the time for that
Ah, thank you :)
ok fixed all valentine cogs.
@eternal owl why are u assigned to sir-lancebot#575 ?
I will review it soon
oh, then shouldn't that be request a review?
I think, yes
@surreal venture Mentioned the requested changes 🙂
Uh oh #dev-log message
Is this an error https://github.com/python-discord/sir-lancebot/runs/1836234850?check_suite_focus=true#step:9:18?
Error: Error: error: You must be logged in to the server (the server has asked for the client to provide credentials)
weeehooooo, cht.sh is merged!!! 🎉
hmmm, lemme see
it is regarding the build and push, so probably the devops or coredevs know what is happening
@vocal wolf , if u are not aware of it.
ty, will alert people
is the issue caused since it is missing some credentials or the they are expired? (the github secrett)
I think it might be because some authentication expired :/
Did they figure it out?
our devops team will look into it soon-ish
ok, np
fixed @short snow
what had happened? can u make the bot restart
joe fixed it not me
any person with write perm to repo can restart bot fwiw
any commit to master makes bot redeploy
though I doubt its needed
it is for working of .cht
Pushing empty commits is pretty eh
maybe
An admin can run !int e 0;exit() to reboot too
joe and eivl seems to be here
whats .cht
thats worse than empty commit
At least it doesn’t stay anywhere haha
I dont even mean empty commit just merge some pr and bot will restart
sir-lancebot#572
Merging a PR to reboot seems pretty inefficient lol
efficient if you think that we get rid of a pr
sebs is here, do it
Like, you have to go through the whole review process just for that
would be nice to give coredev command to do so too 
Is there something we should redeploy the bot for atm?
If so, what is it and why is it in that state?
this ^
the last deploy failed I believe
#dev-log message reason
core*
Ah
That's something we should just solve first instead of patching it
We refreshed some credentials
joe did it
Are the credentials now okay?
how?
rerunning the workflow
Yep
okay
I can't redeploy from here
Work PC does not have my personal keys
Neither do I want to add them there
how would clicking fork redeploy the bot
#sir-lancebot-playground message it is hereeee
lmao
Niiice
I wonder if you can rollback by redeploying using an older run
bot#1396
you can technically yes
I guess it will always check out the latest code
nah
Oh really
Ah cool
#help-bagel message wait, it fails to run in here, it worked on my test server
we can also rollback at the kubernetes end
we keep like
at least 2 previous deployments
Fwiw the code looks good, but I can’t test right now
it worked on mine
thank
didn't u guys test it?
I did
Shaking my smh
.help cht
.cheat [search_terms...]
Can also use: cht.sh, cheatsheet, cheat-sheet, cht
*Search cheat.sh.
Gets a post from https://cheat.sh/python/ by default.
Usage:
--> .cht read json*
huh okay
at least I think I did?
then why does it fail on help channels
.src cht
it should over-ride with the everyone role
that takes surprisingly long
yeah
But I want to break it
he was talking to me ig
i did
the job of the reviewer is to break
and it worked
@vocal wolf is your bot still on in the test server?
or i did something wrong...
yes, I can turn it on right now
I want to test rate limits
Spam++ incoming
@cold island go ahead and break it, I'll be doing calculus.
well
@short snow we need to do more testing next time
yep, can i have the server template?
I do not know how to do that. @cold island Do you?
This is the template for the test server we use
https://discord.new/zmHtscpYN9E3
ok thanks
It should have all the core channels, but some channels were merged into one
Is it up to date
Seems to be
hahahahahaha
I closed your channel fwiw @short snow
@vocal wolf what's the bot prefix?
!!!
tnx
its bot abuse obv
Haha
if i wnat to move a channel to help-in-se do i do sync perms or keep perms
and those anyone have a script to generate the ids?
Can you rephrase that?
What's help-in-se
like when u move a channel from #691405908919451718 to #696958401460043776, there comes a option to sync or keep perms
what should i do
Sync
ok ty
If you gave yourself admin perms it doesn't matter
But for other people they won't be able to write in the dormant channel if you don't sync the perms
discord has util for generating IDs
ah yes undocumented
def time_snowflake(datetime_obj, high=False):
"""Returns a numeric snowflake pretending to be created at the given date.
When using as the lower end of a range, use ``time_snowflake(high=False) - 1`` to be inclusive, ``high=True`` to be exclusive
When using as the higher end of a range, use ``time_snowflake(high=True)`` + 1 to be inclusive, ``high=False`` to be exclusive
Parameters
-----------
datetime_obj: :class:`datetime.datetime`
A timezone-naive datetime object representing UTC time.
high: :class:`bool`
Whether or not to set the lower 22 bit to high or low.
"""
unix_seconds = (datetime_obj - type(datetime_obj)(1970, 1, 1)).total_seconds()
discord_millis = int(unix_seconds * 1000 - DISCORD_EPOCH)
return (discord_millis << 22) + (2**22-1 if high else 0)```
ok, on my server, it works in the help in use category
should i invite someone to test/show it>
is the everyone role id correct in the pr i did?
(cht.sh)
It should just be the server ID
What happens when you run the command?
.help cht
this ^
Sorry, but you may only use this command...
what's the pr number again?
Did you make a change to the env vars?
Also why would it work here?
It should be on #sir-lancebot-playground no?
it should work in #⌛|Occupied Help Channels,
i did over-ride using the everyone role
https://github.com/python-discord/sir-lancebot/blob/master/bot/exts/evergreen/cheatsheet.py#L71-L106
@with_role(Roles.everyone_role)
Could you try the override instead
adming role surpasses it
so do all staff roles
Yes, you can't test it with admin
ok doesn't work with admins removed
is there a way to use override_in_channel for all channels
currently am doing for a role
No that doesn't bypass the override I don't think
it doesn't
i need to get a way to write a category override deco or get all channels of the bot
i could do thattt
by making a task
You can copy it from one of the other cogs
which one?
There was one when I last checked, but I have to look for it
Hmm maybe not
You could extend the override to handle roles as well
make a new deco?
def override_in_channel(channels: t.Tuple[int] = None) -> t.Callable:
def inner(func: t.Callable) -> t.Callable:
func.in_channel_override = channels
return func
return inner
``` ths?
ok
What are you trying to do, add all help channels?
They were trying to make it work on all channels from what I gathered
Do we want it in all channels? 🤔
Are you looking for in_channel_check?
I remember now
That's less of a decorator, it errors out when I tried to use it
They wanted to check a category
So they overrode the main check
and added one in the code
Hmm
can't you just pass the category ID
yes
Doesn’t seem like the right way of doing it
@short snow The cht results seem very bulky. I would rather users were referenced to a result in #sir-lancebot-playground
only the whitelisted ones and help channels
Right, you want in_whitelist_check
no, there is no cateogry deco
not a category deco
You can give it categories and channels, and more importantly have the helper role override it
just the regular override
there is no in_whitelist_check on lance
Oh well, just port it over then
It's ported already
i was always looking at the deoc file
Yep
my bad
Can we discuss it for a sec? I'm not sure how good this is outside of #sir-lancebot-playground
ok.
Are we going to allow it outside of the command channels? It doesn’t sound like a good idea
The idea seems to be to allow it in help channels
my class is starting , will back later
Cya!
this is the idea
Fwiw, that's already what they are doing
We are allowing evals in help channels, maybe that would be worth allowing
But they just needed something to check the category ID
the help in use channels + whitelisted channels
I know, I'm questioning it
although they (the cheatsheets) are user generated tags hmm
in_channel_check does that
Is the website moderated?
The evals are usually shorter than the cht
(fyi i am a he)
I don't mind running a trial
but if it's too spammy we should restrict it to the bot channel
Sure thing, have fun
class is not fun
What happened to them?
Users are just creating pretty bad and not always true tags and dumping it in the face of users asking for help
Oh you mean the server
Yeah
Well, we'll see
so what is decided?
#696958401460043776 would be allowed to run, and the default white
listed channels
right?
Uhh we didn’t make any progress haha
😛 .
But I’d say that we can go with our new permissions system of “experiment and deny if abused” here and allow it in help channels (Cc @gritty wind and @cold island)
allow what in what help channels?
yes
The new cheat sheet command
😮
Hey @vale ibex, @short snow what's the status on sir-lancebot#575
Is it being discussed, or worked on?
i have fixed all the bugs, then i did what chris said and i ageed
Hmmm why is iceman assigned
for which i didn't, i commented
🤷♂️
he can assign himself as a reviewer lol
There, review request
Are you still busy?
our teacher got late as usual
lol they are reaaally late
Anyways, I'd like to get that merged soon, so perhaps you two could clear up some things in here? I find that discord conversations usually move quicker
class starts at 6:30, 11 minutes late
Whenever you're both online that is
do we have any tags on key errors and how to fix them?
I don’t think so, but that could be good to have
yeah, i've been seeing people with the issue a lot lately
Can you mention that in https://github.com/python-discord/meta/discussions/86 ?
commented
Thank you 
If you feel like it, you can even open a PR, or simply leave it to someone else
how does this work? do i wait for any approval on the comment I just made here before making a PR?
The idea looks fine to me, you can follow the following link, write your tag using markdown and open a PR https://github.com/python-discord/bot/new/master/bot/resources/tags
oh right
what's the longest tag we have? i began writing and may have gotten carried away haha
Hmm that may be a tad long
The intention of the tags is to be an easy way to quickly explain or demonstrate something
I could write the try: ... except: ... method in a single line
what more can i cut out?
Honestly, I think I would be fine with only having one or two of these solutions written out, and listing the rest with the urls
so, dict.get explained, and leaving URLs for setdefault and defaultdict?
Yeah pretty much
The try except may not have a link but
You can try a quick mention like
You can also add a try-except to catch `KeyError`
Wording can be changed obviously, but I think that's better than not adding it at all
sounds good
i'll send an updated version in sometime, i've got some other stuff to do now
No rush, get to it when you have time
can anyone even review the c4 pr, by tomorrow, since after tomorrow, i would rarely be able to spend time due to exams
scaleios has already approved
one more is needed
i would finish everything tomorrow then
sir-lancebot#560
defaultdicts are pretty neat, do you guys think making it a separate tag is a good idea?
bot#1398 i've made a PR for the keyerror tag
I already wrote a longer version which includes a short defaultdict explanation - https://gist.github.com/anand2312/76e9c27225aaafd6a2df5a89b18591cd
Please review and let me know if what I've written there about defaultdict is good enough to be made into a tag as well
@balmy sparrow left you a review
you took 3 of my comments 
I think you could probably do with less examples, I think just
>>> my_dict = {"foo": 1, "bar": 2}
>>> my_dict.get("foobar")
None
>>> my_dict.get("foobar", 3) # set 3 as the default value
3
would be enough
i left out the example of KeyErrors being raised, it is present in the longer version i've written on the gist - this was done to save space
noted
and just add a keyerror example to this
Woops haha
I don't think a keyerror example is needed
That's the error the user is getting already, and it explains that you get that when the value isn't in the dictionary
these are just my opinions though
@green oriole i see you've "suggested changes" - and this comes with a commit suggestion button, will i be able to make all requested changes in a single commit with that? I haven't used this before 
nope, i had say just copy his suggestion do it on your own
if u are working on a clone
If you go to the file tab, you can press the “add to batch” button in order to commit all of them at once, or you can apply them one by one
Well, you can also apply them manually
i'm doing this from the github UI
ok, then u can do that
cuz with clone, u need to pull it, and then u get a commit message of merge (which is kinda useless)
@green oriole do you mean I should remove the backslash?
I think so
should i make a tag on defaultdicts on this same branch and PR it at once (while also adding a reference in the dict-get about the existence of a defaultdict tag)?
Yeah, that can work
oh snap i totally forgot this and made a new PR
That’s alright
that's how you learn
i had once reset my branch (on local) for one project with 50 commits
that was not a learning moment haha my lazy monkey brain took over and used this link again
and then i never did that project again
Heh, that will be more work for @vocal wolf, which is just perfect
Open PRs while he is asleep
It usually doesn’t last long
lol
huh, it failed linting (the PR on defaultdict)
you opened your hidden thoughts on zxith
trailing whitespaces
my bane
i seem to be adding spaces for no apparent reason today
so compacting up my empty-json tag now since it was just too long. What would you say?
When using JSON you might run into the following error:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This error could have appeared because you just created the JSON file and there is nothing in it at the moment.
Whilst having the data empty is no problem, the file itself may never be completely empty. You most likely want one of the following in your json
object
array
This issue can be resolved by creating one of these data types. An object is the most common of the 2, and is created by editing your file to read {}.
Different data types are also supported. If you wish to read more on these, please reffer to the following article: https://www.tutorialspoint.com/json/json_data_types.htm
shall i remove the whitelines around the codeblock?
so the above, or the below, what you think?
When using JSON you might run into the following error:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This error could have appeared because you just created the JSON file and there is nothing in it at the moment.
Whilst having the data empty is no problem, the file itself may never be completely empty. You most likely want one of the following in your json
object
array
This issue can be resolved by creating one of these data types. An object is the most common of the 2, and is created by editing your file to read {}.
Different data types are also supported. If you wish to read more on these, please reffer to the following article: https://www.tutorialspoint.com/json/json_data_types.htm
Less of a styling review at the moment, but IDK about calling maps objects while we use arrays for arrays
Esp if we consider it in the context of python where pretty much everything is an array object
almost every online source i find calls them Objects
Yeah, it is after all object-notation
But I think we'll do more good than harm if we ground it in python terminology
list*
i guess
right lol
also since the linked resource at the end also uses arrays and objects i'd say it's best to not be conflicting
!or
When checking if something is equal to one thing or another, you might think that this is possible:
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")
also it seems like already existing tags don't have the extra whitelines
so i guess imma just stick with removed on mine too
maybe it's an idea for the pre commit hook to also check this
this would be the end result of what i currently have
The other tag does have a break between paragraphs
Discord adds those ones in automatically
yes a small one, but you can add more to make it even larger lol
i might just upload it and leave the reviewers to make comments on github
there it goes
@gritty wind maybe one last thing
the line This issue can be resolved by creating one of these data types.
i'm not sure if that one fits
shall i just remove it?
what is the problem?
you're a bit in the wrong area
this is about contributing to the discord and bots here
Hey, we don't allow for recruitment on this server. If you want general guidance learning programming, check out #❓|how-to-get-help
you can go to #python-discussion and they'll gladly help you
Are you thinking this line should replace You most likely...
no like after the list of options i have "this issue can be resolved by adding one of the following datatypes" which is a bit redundant since i already have "you most likely want one of the following"
Are we looking at the same thing haha. Is it the Different data types are also supported
oh in that pic i already nuked that line lol
that explains
ah well it's ready for official review now so let me quickly request that
@gritty wind i completely misunderstood you ealier (as i also point out in the github comment). I improved it to be even more simplified
hopefully it's not too much text now to just read
Lol I could've explained it better
Mentioning array/list would probably work too, but I'll leave that up to whoever reviews it at this point
.pr 554
What' are people's thoughts on this?
This makes it so that the docker-compose on lancebot pulls from a .env file in the root dir, rather than pulling the vars listed in the docker-compose from the host env
Currently the docker workflow requires you to manually edit the docker-compose file with the env vars that you want to pull, so you need to remember not to commit the change accidentally
So with this change it should make it easier for us to explain in the wiki how to use docker (As it doesn't currently)
I don't have a problem with the idea
iirc correctly we discussed dotenv as a future improvement, didn't we?
I think we discussed it as an alternative yea
And do you have any interest in updating the guide? If so can you write a draft for what you have in mind
Well if you ask in a few months, I would say the repo
For now uhh
can you get it on a gist?
I can probably figure it out
What would be preferable, this solution, or dotenv? As dotenv would be simple to implement
Let me ask in the core dev channel
👍
fwiw a dotenv solution would require copying the .env file into the container, whereas this solution doesn't, as the env vars are pulled in by compose.
hmmm
downside is those not using docker get shafted by the docker-only approach
(I don't use Docker lul)
The docker ignore is set to ignore anything that's not in the bot/ path
This wouldn't affect people running through things like pipenv which loads .env
Or people that load in .env in some alt way
(For example through IDE)
Yea, this setup would be the same for a pipenv approach, since both would require the .env to be in the root
all we should have to do is add !.env to .dockerignore and that problem solves itself
For the pipenv approach, is the .env in the root dir or the bot/ dir?
I remember from testing that it did, but let me check again
root dir
It's where the piplock is
yea, so doing the diff in the pr would mean its the exact same
so won't impact people using pipenv
So, at least from what I can tell, this change is free
this is what the docker-compose loaded in for me
No special changes, and my folder is called sir-lancebot locally, not bot
Do you have a .env file in your bot/ folder?
Let me try a rebuild I guess, though I had just built this image right now
I'll also try renaming the bot/ folder
huh alright, so mine pulls in everything too
but without the changes in the PR, the env vars don't get populated in the docker context
Right, but it would make using dotenv easier
yea
I'm curious as to why the docker ignore isn't working as intended though
Reading through https://github.com/docker/compose/issues/1607 it seems like docker ignore isn't honoured when using docker-compose
I've got a full example repo here: https://github.com/devinrsmith/docker-compose-build-test If I'm using docker-compose build incorrectly, please let me know!
It's only used during docker build
meh
I personally don't think that's really a big issue
it's fine if we just have it loaded, esp since this is mostly for dev environments
yea, well if the .env is already in the docker image, then might as well just use dotenv and load it
ehh
I wouldn't be comfortable with using a workaround like that either. If we want to go with dotenv, we should add it to the dockerignore just in case that issue gets fixed
But either way, I'll have a look at your PR right now
and we can consider alternatives later
Yea, I think there's a bunch of ways to approach this
What has stumped me now, is if the .env is already in the docker image, why don't the env vars get found the same way as if its running under pipenv
ohhh, pipenv run auto loads .env files into the env for you
Yup, but we don't use it in docker
yea
Good job chris, is your pr ready for review?
Which one?
the oon_message issue
so @gritty wind , the in_whitelist_check is just a check, and cannot be used to override, like allow it every channel or every channel of our need.
so how should i do that
I don't understand why we have so many checks that do pretty overlapping things lol
Anyways
Can you add a general_override right below override_in_channel
It can take kwargs, and pass them straight to in_whitelist_check
Alright, no
The actual calling is done inside the method
Instead
Set the kwargs to an attribute, much like the channel override does
and add an elif under the if in line 214
call the whitelist function in that
this is getting a bit complicated hmm
Do you want to give it a shot, or should I take over it?
your choice
You can change your mind later if it doesn't work out
honestly, just do what you want, but I know you're busy
I really do trust you lol
I'll get a PR for it open now so we can get it merged in asap
and you can get to work on features
ok, till then i will finish up with the valentine
like, i understood you, but uk ....
i would just try making my own for practice
Yeah go ahead
can someone join my tst server so i can test the valentine commands?
ping me, if anyone can
I just make alts for that
i tried making one, but it always goes to my jasonterror account
you can use different accounts on different platforms
anyway, if you just need another user to be present you can DM me the link
ok, thanks
@vale ibex @green oriole mentioned changes in sir-lancebot#575
@dusky shore seems to trigger cooldowns incorrectly for the bemyvalentine command - I think you need to reset_cooldown for the case where the user tries the command before doing the lovefest sub command
And also, cases where the user provides improper input - like themself (I tried both of this yesterday and had to wait an hour
)
Also made requested changes on bot#1398 , and also PRed bot#1400
What's with sir-lancelots source command?
#sir-lancebot-playground message
Why is it so spaced out?
@gritty wind ping me when u pr the general_override pls.
also, the connect4 pr is looking for one more approval (scaleious was the first approval).
sir-lancebot#560
I will look into it later
ok thanks.
the link?
I mean reason
No, reason is comment what is in DB about entry of domain/invite etc.
ohk
Python Discord Project discussions. Don't forget to lint!
PyDis repositories may be found here: https://github.com/python-discord
Hmm, but same time this can collide with message content
make them into separate fields, since the footer should be the time
Time isn't footer. This is timestamp field
yes that's what i meant
Is this tag too long?
probably
your test server?
Nah, pydis staff test server
where the template comes from
I don't want to talk about what was causing that error lol
either way
Ready for reviews.
done
done
tyvm
Any suggestions what to remove for making it shorter?
bump
can u link the file/pr?
No, doesn't seem too long imo
the import tag is longer
!import
lol, covers the whole page
but we can improve the file tag.
somethings can merged to one codeblock, and some text can be rmeoved
I don't think having 1 big codeblock is good idea. Current version explains this well part-by-part.
last line i'm guessing you meant to write discord.TextChannel
and also, discord.abc.Messageable
@vocal wolf sir-lancebot#462, user hasn't replied from 13 days, probably someone can take over
Thanks. I'll give them 1 more day.
Same for #482 and 485
@vocal wolf incase, u didn't see it.
sir-lancebot#482, sir-lancebot#485
ah yes thanks
Hey @eternal owl, do you still have plans to work on sir-lancebot#214
Alright, it isn't very important rn, I was just thinking of bumping its status to good-first-issue
bump, since u are here
I got the go ahead this morning, working on it now
There are still plenty of issues that could work, so if you're doing it, you should keep it
not a problem, (i seem to have got a basic idea of the implementation, but you can do it)
I don't think I will be working on the pride event calendar tho, someone else can take it
If you'd like, share your implementation. It would still probably be helpful
This
ok, i will ping you with it, once i reach home
Alright, thanks for the help
Take your time
it just what u said to me above
That's what I'm planning to do pretty much
I will see what I can do next week, sorry
I might also rip out the other override so we only have one
Oh there is nothing you need to do lol, I was referring to @short snow's work
alright, cool
Is there a stackoverflow command in the bot?
like !stackoverflow <stackoverflow query>?
When we add this, then this would fit better to @dusky shore
Hmm... so would it be apt using @dusky shore in help-channels?
Yeah it usually gets all the fun features
but this isn't a fun command, is it?
It certainly isn't mod
Which is sort of what I see python as
general mod and utility
Not really, I think more utility for running the server
And personally I do think some of the things under @stable mountain should be migrated
but we have enough work as is
didn't we add something this week to @dusky shore for the help channels
the cheat sheet thing
hmm, okay, so is there an issue for this in sir-lancebot?
Because I can't see any
there isn't
I'm not sure there should be
well hm
what if we limited it to #sir-lancebot-playground
there is no use for such a command in the help channels
A lot of people keep linking SO questions in the channels anyways
Ideally, they shouldn't just be dumping an SO link as a response
🤷♂️
We'll discuss it internally and get a decision back here within the hour.
Damn, we are fast
i have it ready on my another bot rn
I need to install Docker CE on an external SSD (MacOS), but I simply moving it there and opening it doesn't work. Do you have any idea how this could be done?
alright cool
either my phone is broken or i’m really out of it since i cannot find the poll, but i’m not in support of an so command
currently doesn't work in help channels, but soon it will
This is the message I'm getting when trying to open it, after installing Docker CE on the external SSD
cheers
by so command, do mean:
- links and tags
or
2.links, tags, and top answer
no cheers 
both can be done
@patent pivot do you have any idea how to solve this? (or someone else who knows a lot and uses Mac) #dev-contrib message
you can probably store images in an external drive though
That would seem logical. Otherwise I'll be screwed
hmmm
that's not a docker error though
that's a macos thing
you get the M1 version or smth???
Nope
I assume it has something to do with the fact that Docker isn't really meant to exist in a place like that
I never installed any app to external drive
On my main system, it works flawlessly (to open it)
@surreal venture poll concluded. We're fine with the command being added, but restricted to #sir-lancebot-playground
any reviews for bot#1400 ?
I'll review it tomorrow, but in the meantime you have some trialing whitespacew 
Oh yeah I meant to ask, the action seemed to say something along the lines of this hook has modified files:, does it mean I have to commit again after fixing it myself?
Or has that hook fixed it for me
I've also made the changes you'd asked on the dict-get tag btw
(It technically fixed on github's action servers, but it didn't save that change to the repo or anything)
It should have exactly one new line at the end
uhh let me check the error
You have extra spaces after a couple lines
such as
>>> print(my_dict)
That space at the end shouldn't be there
If you run pre-commit, it should fix it for you
I was using github's UI, I'll try going through them line by line now
I've finally got Docker up and running. When I try docker-compose up on the bot, this is what I'm getting
Does mac have a sudo/admin console?
Not a dedicated one, I believe
@gritty wind this is the closest I can get to a root shell
Right, could you try running the command with sudo then?
Haha thanks! Committed it 👍
Do you have any suggestions about the content?
I wasn't completely satisfied with what I wrote for the default factory but I couldn't think of a better way to explain it
I cleared some space on my disk (rip motion) and got past that issue, for some reason
ERROR: for postgres Cannot create container for service postgres: open /var/lib/docker/overlay2/30c7979627fe9bea57ba3a149a7fc01088216bdcaa48dba997643428a844385a/committed: structure needs cleaning
Any idea how this could be solved?
You can try dumping the pg container and rebuilding, but I've never seen any of those issues before lol
@balmy sparrow I assume it's your PR that I've commented on? Ping me here if you'd like to get my attention.
Yep, that's my PR, going through the comments
thanks for the feedback :D
I passed in the dictionary as I wanted to keep the tag short (didn't want to add more lines for adding items to the dictionary)
@trim cradle do you want me to re-write the line where I say that the defaultdict creates the key?
Yes
Perhaps change it to "insert"?
...but if you try to access or modify a missing key, the `defaultdict` will insert the key and generate a default value for it. ```
https://paste.pythondiscord.com/vaqanabimi.md @trim cradle How does this look?
I would accept this 👍
Committed :D
Do you know how I'd do that?
I have Docker CE (mac)
Right, okay
Which means a GUI application as well in this case
Does it allow you to manage/delete containers?
If so, try deleting the PG container, then remove the volume
Ah perfect
Well it looks like postgres isn't there, so proceed directly to the volumes
Do you mean clicking the delete button for the bot container? Hmmm
There should be a seperate window on the left for volumes, though I don't use mac 🤷♂️
There's these two things
If I click on "Images," I'm presented with this (which includes some pg thing?)
docker desktop is warming up
I think desktop may actually merge container and volume, so I think you should be good
Try dropping the image from this menu, and giving it another shot
And good lord docker can be a pain sometimes lol
The postgres image?
yeah mac doesnt't have volumes
how... how do you do persistence?
Hahaha I got that when starting it for the very first time. I just wrote "hey, I haven't even tried it yet"
it is SO bad
Oof
So, it looks like everything is up and running
The only question now is why the bot is still dead, though things are running
can you detach from the log viewer
I think you can do that using ctrl + C/D/X/Z/something without taking the whole thing down
Seems like this might be the issue
Cool, now you need to attach to the bot itself
because that's where the error would be
actually
It might be easier to do that in the GUI
just click it in there lol
Do you mean clicking the start button on the container?
no click the name itself
Ohh
Well, this is confusing. I already clicked the start button and the bot now seems to be online (??)
Could it have tried to start up before building site
Anything from the logs that you still want to see?
Possibly
Here are the logs following the initial error
It seems like migrations were running while the bot was starting
Dude, you can't imagine how good it feels to finally have this bot set up. There have been so many issues when trying to make it work
site just wasn't running and we don't have readiness checks
not sure we can really
other than having bot wait for site reachable I guess
but not through docker
kubernetes totally can do this though
@patent pivot seems like I got the same issue on restart, for the record

yeah, i have to start site first before bot
Could we wrap the compose start command in a basic script that waits until the site is up then spawns the bot process?
I think it would be simpler to do it at the bot level instead
Won't require we fiddle with any extra scripts, or getting the URL
Makes sense
by so command, do mean:
- links and tags
or
2.links, tags, and top answer
can sir-lancebot#574 be assigned to me?
and any updates on sir-lancebot#561 and sir-lancebot#565
You have to comment on it
i have already opened a pr on it
ok
github webhook is weird
i have changed my avatar
but it still shows the old one
You have to have a comment or be part of the org to be assigned
its an anti-spam thing
as for the pfp, I think that may be a caching thing
lol, ok
#sir-lancebot-playground message something is weird with cht.sh
(not code probllem, but something with their code)
sir-lancebot does not have members intents enabled?
lemme open a issue on their repo
nope.
cpu goes brrr
ah
@vale ibex it seems, using that if we add curl headers it works
but with aiohttp pr u put, it doesn't
i tried locally
and put curl user headers, and worked
but without that it didn't
so on the safe side, we should put it ig
how come the lovefest command is restrict to the month of February and not the other cogs/other seasonal cogs?
to emojis?
