Coder Social home page Coder Social logo

fyodorio / chat-with-yourself Goto Github PK

View Code? Open in Web Editor NEW
37.0 1.0 2.0 7 KB

Healing self-talk through Node-based CLI

Home Page: https://dev.to/fyodorio/i-have-created-a-small-anti-depression-script-p4i

JavaScript 100.00%
cli depression health nodejs

chat-with-yourself's Introduction

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

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 my bottom drawer, but I don't want them. I want to be free of them forever. But I don't want Depression or Loneliness around, either, so I don't know what to do, and I'm spiraling in panic, like I always spiral when I don't know what to do. So what I do for tonight is reach for my most private notebook, which I keep next to my bed in case I'm ever in emergency trouble. I open it up. I find the first blank page. I write:

“I need your help.”

Then I wait. After a little while, a response comes, in my own handwriting:

I'm right here. What can I do for you?

And here recommences my strangest and most secret conversation. Here, in this most private notebook, is where I talk to myself. I talk to that same voice I met that night on my bathroom floor when I first prayed to God in tears for help, when something (or somebody) had said, “Go back to bed, Liz.” In the years since then, I've found that voice again in times of code-orange distress, and have learned that the best way for me to reach it is written conversation. I've been surprised to find that I can almost always access that voice, too, no matter how black my anguish may be. Even during the worst of suffering, that calm, compassionate, affectionate and infinitely wise voice (who is maybe me, or maybe not exactly me) is always available for a conversation on paper at any time of day or night.

I've decided to let myself off the hook from worrying that conversing with myself on paper means I'm a schizo. Maybe the voice I am reaching for is God, or maybe it's my Guru speaking through me, or maybe it's the angel who was assigned to my case, or maybe it's my Highest Self, or maybe it is indeed just a construct of my subconscious, invented in order to protect me from my own torment. Saint Teresa called such divine internal voices “locutions” — words from the supernatural that enter the mind spontaneously, translated into your own language and offering you heavenly consolation. I do know what Freud would have said about such spiritual consolations, of course — that they are irrational and “deserve no trust. Experience teaches us that the world is no nursery.” I agree — the world isn't a nursery. But the very fact that this world is so challenging is exactly why you sometimes must reach out of its jurisdiction for help, appealing to a higher authority in order to find your comfort.

At the beginning of my spiritual experiment, I didn't always have such faith in this internal voice of wisdom. I remember once reaching for my private notebook in a bitter fury of rage and sorrow, and scrawling a message to my inner voice — to my divine interior comfort — that took up an entire page of capital letters:

“I DO NOT FUCKING BELIEVE IN YOU!!!!!!”

After a moment, still breathing heavily, I felt a clear pinpoint of light ignite within me, and then I found myself writing this amused and ever-calm reply:

Who are you talking to, then?

I haven't doubted its existence again since. So tonight I reach for that voice again. This is the first time I've done this since I came to Italy. What I write in my journal tonight is that I am weak and full of fear. I explain that Depression and Loneliness have shown up, and I'm scared they will never leave. I say that I don't want to take the drugs anymore, but I'm frightened I will have to. I'm terrified that I will never really pull my life together.

In response, somewhere from within me, rises a now-familiar presence, offering me all the certainties I have always wished another person would say to me when I was troubled. This is what I find myself writing to myself on the page:

I'm here. I love you. I don't care if you need to stay up crying all night long, I will stay with you. If you need the medication again, go ahead and take it—I will love you through that, as well. If you don't need the medication, I will love you, too. There's nothing you can ever do to lose my love. I will protect you until you die, and after your death I will still protect you. I am stronger than Depression and I am braver than Loneliness and nothing will ever exhaust me.

Tonight, this strange interior gesture of friendship—the lending of a hand from me to myself when nobody else is around to offer solace—reminds me of something that happened to me once in New York City. I walked into an office building one afternoon in hurry, dashed into the waiting elevator. As I rushed in, I caught an unexpected glimpse of myself in a security mirror's reflection. In that moment my brain did an odd thing — it fired off this split-second message: “Hey! You know her! That's a friend of yours!” And I actually ran forward toward my own reflection with a smile, ready to welcome that girl whose name I had lost but whose face was so familiar. In a flash instant, of course, I realized my mistake and laughed in embarrassment at my almost doglike confusion over how a mirror works. But for some reason that incident comes to mind again tonight during my sadness in Rome, and I find myself writing this comforting reminder at the bottom of the page:

Never forget that once upon a time, in an unguarded moment, you recognized yourself as a friend.

I fall asleep holding my notebook pressed against my chest, open to this most recent assurance. In the morning when I wake up, I can still smell a faint trace of Depression's lingering smoke, but he himself is nowhere to be seen. Somewhere during the night, he got up and left. And his buddy Loneliness beat it, too.

Copyright © by Elizabeth Gilbert 2006

chat-with-yourself's People

Contributors

fyodorio avatar aidanb446 avatar

Stargazers

AshishRaoDS avatar  avatar Santiago Flores avatar Breanne avatar Travis Lord avatar  avatar Marcos YEHOUESSI avatar Do Huu Viet Anh (Ch1mple) avatar KnollElias avatar Leandro Simões  avatar  avatar Jean Billaud avatar Patrick Zocli avatar Hamza avatar Reginald NeoWilliams avatar its_hitzz avatar Dave Horan avatar Rouaa belhaj Ali avatar Matej Ferenc avatar Arsène Fougerouse avatar Aimee avatar hasan avatar Christian Jara avatar Borja Paz Rodríguez avatar Ouwais Zl avatar Posandu Mapa avatar Kamil Dzieniszewski avatar Moeen Mahmud avatar Pierre "Golluméo" Mauriello avatar Ricardo Morato Rocha avatar Mikkel Rask avatar Lucas Chitolina avatar Atef Ben Ali avatar Guilherme Sperb avatar Thomas Brodusch avatar Hafiz  avatar tiff avatar

Watchers

 avatar

chat-with-yourself's Issues

Continue an existing chat

Hello @fyodorio !

I really like the idea of this project ! Just tried out and it help me a lot 😄

I have an idea of a feature, continue an existing chat.

It takes the markdown file as argument, it reads the name of the 2 persons and continue with the current-person. What do you think of this feature ?

I would love to help with such a contribution 😄

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.