this post was submitted on 03 Feb 2026
14 points (100.0% liked)

Selfhosted

55785 readers
348 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Is simplematrixbotlib the way to go or are there other better alternatives?

MyBot

I want a bot that sends me one message per day. It shall be a message to kick off thoughts / reflection / meditation / contemplation. I already have lots of questions in a csv. It's as simple as take a random note and send it to me at 06:00.

In a second step I could add commands like \question and \q to prompt a random question. I could add "users", i.e. me, and vote on the questions with smileys to increase/decrease the likelihood of the question appearing the next time.

actual goal

I want to write a diary / journal every day and having a random question boosts my brain. I tried journiv and I love it but it is not open source, so I have to build something on my own. I am no kotlin dev, but I can use python. I already have a shell version but a UI would be great. Moreover, in a matrix room I can add pictures, videos, and voice memos. That sounds great. Maybe, I can search questions with hashtags.

advice

Is there another tool better suited to do this?

top 1 comments
sorted by: hot top controversial new old
[–] yaroto98@lemmy.world 4 points 2 hours ago* (last edited 2 hours ago)

If you don't shy away from python, I just use the requests library most of the time:

homeserver_url = "XXX"

access_token = "XXX"

room_id = "!XXX"

url = f{homeserver_url}/_matrix/client/r0/rooms/{room_id}/send/m.room.message"

headers = {"Authorization": f"Bearer {access_token}","Content-Type": "application/json",}

data = "msgtype": "m.text","body": "Question of the day!",}

response = requests.post(url, headers=headers, data=json.dumps(data))

Alternatively I also have a bot I use in NodeRed connected to Home Assistant.

Double Alternatively, I've used AppRise successfully within various tools like ChangeDetection to notify me via matrix.