Giter VIP home page Giter VIP logo

igdm-cli's Introduction

npm version npm bundle size npm downloads npm licence GitHub Repo stars

igdm-cli

Send and receive Instagram direct message through CLI.

Conversation listing

Conversation reading

Installation

$ npm install -g igdm

Usage

Start the app with:

$ igdm

You will be prompted your credentials only for your first connection, on subsequent script starts it will load your credentials from a session file.

After being logged in, the list of the 20 latest conversations will appear, select a conversation with arrow keys and select it by pressing Enter key. Type a message and press Enter to send it.

Commands

On the chat screen (conversation listing message), instead of sending messages you can write commands:

\q: Stops the process and leaves the app

\l: Go back to conversation list

\r, (or press Enter while input is empty): Refresh the current view and fetch latest messages

\logout: Logout

igdm-cli's People

Contributors

guillaumerx avatar mihilt avatar noook avatar realies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

igdm-cli's Issues

session login is broken

The ds_user cookie key appears to be missing or replaced by something called db_user_id. Seems like the username can be stored in a dedicated key/file and populated from a successful login prompt value. Any ideas?

Pressing enter in a conversation crashes the app

When I'm in a conversation thread, and I press enter (without having entered text), the app crashes.

I propose that enter is caught and goes back to the conversations list. This would enable going back and forther between the message thread and the conversation list without typing \l.

Cannot find module 'core-js/stable'

@realies

$ igdm
internal/modules/cjs/loader.js:892
  throw err;
  ^

Error: Cannot find module 'core-js/stable'
Require stack:
- /Users/nook/.nvm/versions/node/v14.17.6/lib/node_modules/igdm/dist/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
    at Function.Module._load (internal/modules/cjs/loader.js:745:27)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at /Users/nook/.nvm/versions/node/v14.17.6/lib/node_modules/igdm/dist/index.js:2:426
    at Object.<anonymous> (/Users/nook/.nvm/versions/node/v14.17.6/lib/node_modules/igdm/dist/index.js:2:17615)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/nook/.nvm/versions/node/v14.17.6/lib/node_modules/igdm/dist/index.js'
  ]
}

Seems like I cannot run the script with node v14.17.6

Run script on new message (enhancement)

If the application polls regularly (#4) a call to a script would be useful (e.g. to initiate a systems notification). Ideally, the message details would be passed as arguments to the script.

Sessions file is not read (?)

Hi @noook - thanks for putting this together, very cool.

When I relaunch the application, I am asked for the password again. The sessions file (session.json) has been written/updated, but it doesn't seem to make any difference.

(I'm on Ubuntu - in case that makes a difference.)

Error when credentials are wrong

When entered credentials are wrong the CLI throws an unexpected error

TypeError: (0 , _fs.rmSync) is not a function

error happens at auth.ts line 78 because of the the rmSync in logout function

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.