I have created a small anti-depression script

Fyodor - Mar 5 - - Dev Community

I read this wonderful book by Elizabeth Gilbert called Eat, Pray, Love. Insightful, not to say more. And there are these chapters about her fighting with Depression and Loneliness which many of us can relate to (myself included).

Specifically, Elizabeth shares the piece on her journaling, or rather chatting with herself. How it helped her to get out of the pit of despair and kick away the internal demons.

That pushed me to drop a quick script to try to do the same in my terminal (because I'm a developer, or rather because I don't have a notebook around).

And it actually worked. And that helped me. At least today.

So I decided to share it here, as I noticed this new March tag yesterday. Maybe it would be of some use for someone.

I mean, probably that's bloody stupid, both the idea and definitely the code, but for some reason it works. And as the terminal is apparently not the most positive place to be in the world, this script may make it more acceptable sometimes.

Cheers πŸ€—

GitHub logo fyodorio / chat-with-yourself

Healing self-talk through Node-based CLI

Chat with yourself

Getting started

  1. Open your terminal app
  2. Install Node.js (or Bun, or Deno, or whatever JS runtime you prefer) if it's not there
  3. Clone this repo with git
  4. cd chat-with-yourself
  5. Run:
node chat.js
Enter fullscreen mode Exit fullscreen mode

You'll need to enter two names for the chatting persons and start the chat. When you want to stop chatting, enter byebye and the script will stop execution. The resulting chat text will be saved as a markdown file in the root folder. (The generated files are gitignored by default.)

Supports different languages (well, some at least), and emojis πŸ™‚

Inspiration behind the project

Elizabeth Gilbert, Eat, Pray, Love, Chapter 18

Or, rather β€” here I am. I am in Rome, and I am in trouble. The goons of Depression and Loneliness have barged into my life again, and I just took my last Wellbutrin three days ago. There are more pills in…

. . . . . . . . . . . . . . . .