#π How do I add a minimum delay to each post?
56 messages Β· Page 1 of 1 (latest)
@dreamy tree
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Import time
time.sleep(2)
time module
@dreamy tree https://pastebin.com/40gSE9kG
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.
Where would I apply this?
bottom
10 is seconds or minutes?
seconds
wherever you ned a delayfor x seconds sleep for that amount oftime KEEP IN MIND all work ceases for that time
thank you!
Is I had someone write this for me.
Is there a way for me to make it so it goes off my timezone.
As it was posting wrong days
@dreamy tree I have given you the code
Thank you
thats insane np
And omg I just saw my RAM refresh in real time.
idk wym
My ram just refreshed
and thats great code for a beginner well done
had someone do for me! π¦
Are you a beginner?
I was going to say. if you dont know if 10 is seconds or mins then how have you coded that so well.
lol
Is there a way for me to make it so it goes off my timezone.
As it was posting after midnight which is wrong info then
i though bro said hashes were for beginneers
time.sleep(RETRY_INTERVAL) code already has it though
that would be really cool
Yeah there is
if i remebr datetime.datetime.utcnow orsmth wait lemme get the syntax
he has datetime in the code look harder
datetime.datetime.utcnow(tz=datetime.UTC)```
ahh
Did you want your time zone?
he said this
and he has done that right?
idk
where should I paste this brother?
pasting wouldn't do you gotta edit a bit i think. can you rephrase on what you want to do?
working on it
i'd leave you to it then, zata i shall take my leave.
now = datetime.now(timezone(timedelta(hours=0)))
start_time = datetime(now.year, now.month, now.day, 8, 0, tzinfo=timezone(timedelta(hours=0)))
end_time = datetime(now.year, now.month, now.day, 22, 0, tzinfo=timezone(timedelta(hours=0)))
here is just the part we need
:/ Noooo
alright cya
@dreamy tree
np man. π€
im a tad confused
@lament rapids sent me updated code..
But it won't paste into mine properly..
So where do I add the delay for the min seconds delay after each post?
@dreamy tree https://pastebin.com/GtnwsT8U
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.