Insta.js
๐ฌ Object-oriented library for sending and receiving messages via Instagram
Install / Use
/learn @Androz2091/Insta.jsREADME
<img width="150" height="150" align="left" style="float: left; margin: 0 10px 0 0;" alt="Xiao" src="https://i.goopics.net/PO1L4.png">
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');
