@yoon4027-spam/insta.js
TypeScript icon, indicating that this package has built-in type declarations

1.6.13 • Public • Published

Xiao

Insta.js

💬 Object-oriented library to interact with Instagram! Based on instagram-private-api, it is very similiar to discord.js.

Installation

npm install @androz2091/insta.js

Example

Here is a simple ping command made with the library:

const Insta = require('@androz2091/insta.js');

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.reply('!pong');
    }
});

client.login('username', 'password');

Links

Credits

🧡 Big thanks to Nerixyz and dilame for their libraries.

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @yoon4027-spam/insta.js

    Weekly Downloads

    1

    Version

    1.6.13

    License

    MIT

    Unpacked Size

    1.35 MB

    Total Files

    20

    Last publish

    Collaborators

    • yoon4027s