Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ber4tbey/insta.js
๐ฌ Object-oriented library for sending and receiving messages via Instagram
https://github.com/ber4tbey/insta.js
Last synced: about 2 months ago
JSON representation
๐ฌ Object-oriented library for sending and receiving messages via Instagram
- Host: GitHub
- URL: https://github.com/ber4tbey/insta.js
- Owner: Ber4tBey
- License: gpl-3.0
- Created: 2022-06-26T09:22:03.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-12T18:28:35.000Z (over 2 years ago)
- Last Synced: 2024-09-17T23:14:11.038Z (4 months ago)
- Language: JavaScript
- Size: 404 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Insta.js](https://npmjs.com/@ber4tbey/insta.js)
๐ฌ Object-oriented library to interact with Instagram! Based on **[instagram-private-api](https://github.com/dilame/instagram-private-api)**, it is very similiar to **[discord.js](https://npmjs.com/discord.js)**.
## Installation
```
npm install @ber4tbey/insta.js
```## Example
Here is a simple ping command made with the library:
```js
const Insta = require('@ber4tbey/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) returnmessage.markSeen();
if (message.content === '!ping') {
message.reply('!pong');
}
});client.login('username', 'password');
```
## Owner
[![Androz2091](https://github.com/Androz2091.png?size=100)](https://github.com/Androz2091)
---|
[Androz](https://t.me/Androz2091)
Author## Maintainers
[![Ber4tbey](https://github.com/Ber4tbey.png?size=100)](https://github.com/Ber4tbey)
---|
[Ber4tbey](https://t.me/Ber4tbey)
Maintainer## Credits
๐งก Big thanks to **[Nerixyz](https://github.com/Nerixyz)** and **[dilame](https://github.com/dilame)** for their libraries.* [Androz2091](https://github.com/Androz2091)