this post was submitted on 19 Sep 2024
23 points (96.0% liked)
Stop Drinking
1139 readers
13 users here now
This is a place to motivate each other to control or stop drinking. It is also a place for non drinkers to discuss and share.
We welcome anyone who wishes to join in by asking for advice, sharing our experiences and stories, or just encouraging someone who is trying to quit or cut down.
Please post only when sober; you’re welcome to read in the meanwhile.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have a blemish on my Calendar as I succumbed to trying it out with some new meds to see how it affected my sleep. I don’t know why I Do it to myself, it never works out in a positive favour.
I was talking about the wrong date in the post title. You can still fix this, Lemmy allows editing post titles (and links).
There is no shame in scheduling posts you were going to make anyway, prominent poster @MentalEdge@sopuli.xyz does it and I do that on my @ChaoticNeutralCzech@lemmy.one account. The easiest way is to write a Python script with the
pythorhead
library, and automating it with acron
job or Windows' Task Scheduler, or run manually if you wish to do that. Your username and password, as well as what the previous post was (for unpinning in the community), can be stored in your OS's environment variables.In your case, it's just a matter of something like
This command makes the script run in interactive mode, so you can see error output if problems happen, change variables and type
retry()
commands to retry:I haven't tested the code but it should not be too hard to get it working. Feel free to ask for help.
I would use a file instead of ENVs so that the state actually survives a reboot. Otherwise, a system restart will screw your setup...
That, or you could make the script actually check what's currently pinned.
That said, like already pointed out by @Zerlyna@lemmy.world, not everyone is a coder.
So I'd suggest looking at https://schedule.lemmings.world
Last time I coded it was BASIC. 😭
ummmm yeah. Not a coder. I don't think the other mod here is either. Just take turns posting, whomever is awake first. They are on the other side of the pond from me, usually them.
You could make the script check the latest posts for yesterday's date and decide whether to take action but that makes it more difficult of course, and I'm not going to finish it if you're OK without it.
I asked the other mod. When Lemmy first started, the original mod did have a script that worked for a while. But the problem with the script is that you don't get the notifications of responses. Maybe I'm just old-school.
You do get notifications if you configure the script to use your account. However, it is a security risk unless it's running on your computer and you store the password responsibly.
You would, if you use the script so that it posts using your account.
That's what I do, exactly so that any comments appear in my inbox, since I do often want to respond.
That said, if you don't have any programming experience, there is: https://schedule.lemmings.world
@rosamundi@lemmy.world ... any of this make sense to you?
Not really, but I'm on my phone in an airport hotel so it might make more sense when I'm back home 😁