git clone https://github.com/Abdulaziz930/InstagramSpamBot.git
npm install or npm i
- Create a
.env
file - Add these lines to the
.env
file
IG_USERNAME='YOUR_USERNAME'
IG_PASSWORD='YOUR_PASSWORD'
In index.js
file
Replace 'USERNAME_TO_SEARCH' with the username of the account you will spamming.
await ig.searchUser("USERNAME_TO_SEARCH");
Replace 'MESSAGE_CONTENT_TO_BE_SENT' with the message you will send and also replace 'NUMBER_OF_MESSAGE_TO_BE_SENT' with the message count you will send
await ig.sendMessage(
"MESSAGE_CONTENT_TO_BE_SENT",
"NUMBER_OF_MESSAGE_TO_BE_SENT"
);
- open terminal
- cd InstagramSpamBot
And run the following command
npm run spam