All Projects โ†’ Androz2091 โ†’ insta.js

Androz2091 / insta.js

Licence: other
๐Ÿ’ฌ Object-oriented library for sending and receiving messages via Instagram

Programming Languages

javascript
184084 projects - #8 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].