better-insta.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

IMPORTANT

You can reach the original version of this library from Insta.js, the difference of this library is to update and develop the library that Androz2091 has not developed anymore.

better-insta.js

💬 Object-oriented library to interact with Instagram! Based on instagram-private-api, forked from @androz2091/insta.js, it is very similiar to discord.js.

Installation

npm i better-insta.js

Example

Here is a simple ping command made with the library:

const Insta = require("instagram.js");
const { username, password } = process.env;
const client = new Insta.Client();

client.on("connected", () => {
  console.log(`Logged in as ${client.user.username}`);
});

client.on("messageCreate", (message) => {
  if (message.author.id === client.user.id) return;

  message.markSeen();

  if (message.content === "!ping") {
    message.channel.sendMessage("!pong");
  }
});

client.login({ username, password });

Links

-- Discord Server

Credits

🧡 Big thanks to Nerixyz, dilame, androz2091 for their libraries.

Package Sidebar

Install

npm i better-insta.js

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

272 kB

Total Files

23

Last publish

Collaborators

  • npm-support