Good morning sober peeps!!

We may be anonymous strangers on the internet, but we have one thing in common. We may be a world apart, but we’re here together!

Welcome to the 24 hour pledge! I’m pledging myself to not drinking today, and invite you to do the same.

Maybe you’re new to c/stop drinking and have a hard time deciding what to do next. Maybe you’re like me and feel you need a daily commitment or maybe you’ve been sober for a long time and want to inspire others.

It doesn’t matter if you’re still hung over from a three day bender or been sober for years, if you just woke up or have already completed a sober day. For the next 24 hours, let’s not drink alcohol!

4 points

hello again everyone, back in rehab. first time in this one, probably 20 total detoxes but first proper rehab it’s really flash but crikey they were stingy with the benzos at first, nightmareishly difficult first day it took me 14hrs to blow zeros.

about 10mins til I’ve completed one day.

damn it feels good to be back, missed these groups. going to as many AA and NA meetings as possible. also dealing w trauma

wish you all the best, will not drink today

also I made a meme

i can just walk out the front door lmao but strange town and no car.

got a buddy of 15 years who lives close by who I only met once on his 18th, he saw how gnarly I got and he decided to quit drugs alcohol and cigarettes been clean ever since. so I am helping people somehow.

permalink
report
reply
3 points

❤️ see you tomorrow

permalink
report
parent
reply
5 points

I will stay sober with you all today!

permalink
report
reply
5 points

Good morning, fellow sobernauts, IWNDWYT 😁!

permalink
report
reply
4 points

I will not drink with you today! Thanks for posting this early so I don’t forget! Haha

permalink
report
reply
3 points

How’s your calendar going?

permalink
report
reply
2 points

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.

permalink
report
parent
reply
1 point

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 a cron 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

# warning: untested
from pythorhead import Lemmy
import datetime
import os

todays_date = datetime.now().strftime("%A %B %d")

post_title = "The Daily Checkin for" + todays_date + " - Just For Today, We Are Not Drinking!"
post_body = "Good morning sober peeps!!\n\nWe may be anonymous strangers on the internet, but we have one thing in common. We may be a world apart, but we’re here together!\n\nWelcome to the 24 hour pledge! I’m pledging myself to not drinking today, and invite you to do the same.\n\nMaybe you’re new to c/stop drinking and have a hard time deciding what to do next. Maybe you’re like me and feel you need a daily commitment or maybe you’ve been sober for a long time and want to inspire others.\n\nIt doesn’t matter if you’re still hung over from a three day bender or been sober for years, if you just woke up or have already completed a sober day. For the next 24 hours, let’s not drink alcohol!"

community_id = 5759 #lemmy.world/c/stopdrinking for lemmy.world users
previous_post = os.getenv("STOPDRINKING_PP")
post = ""

lemmy_username = os.getenv("STOPDRINKING_UN")
lemmy_password = os.getenv("STOPDRINKING_PW")
lemmy = Lemmy("https://lemmy.world") 

def retry_login():
    if not lemmy.log_in(lemmy_username, lemmy_password):
        print("Failed to log in")
        exit(1)

def retry_post():
    global post
    post = lemmy.post(community_id, post_title, body=post_body,)
    if post:
        print(f"Successfully posted ({post['post_view']['post']['ap_id']})")
    else:
        print("Failed to post")
        exit(1)

def retry_refeature():
    global previous_post
    global post
    post.feature(true)
    if (previous_post):
        previous_post.feature(false)
    previous_post = post
    os.environ["STOPDRINKING_PP"] = previous_post

def retry: #this structure allows retrying in the interactive shell
    retry_login()
    retry_post()
    retry_refeature()
    input("Press Enter to exit...")
    os._exit(0)

retry() 

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:

py -i stopdrinkingtoday.py

I haven’t tested the code but it should not be too hard to get it working. Feel free to ask for help.

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
1 point

@rosamundi@lemmy.world … any of this make sense to you?

permalink
report
parent
reply

Stop Drinking

!stopdrinking@lemmy.world

Create post

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.

Community stats

  • 200

    Monthly active users

  • 154

    Posts

  • 333

    Comments