General purpose bot for Messenger
This is a custom bot for Meta Messenger, made using Puppeteer with Typescript and Node.js. It uses Puppeteer to send messages and receive them.
This is a experimental bot. Your account may or may not be suspended because of this. Use with caution
It might also break randomly when the site is updated because selectors will be broken. You can fix it yourself or wait for me to fix it
With that out of the way, here's how to get it running:
git clone https://github.com/DDev247/lunafrost-messenger.git
or
git clone git@github.com:DDev247/lunafrost-messenger.git
npm install
or pnpm
or whatever you use (I only tested with npm
)
Don't run it yet though! We have to set up the login JSON
Create a file called login.json
in the assets
folder
Enter this:
{
"email": "",
"pass": "",
"group": ""
}
and change the email
, pass
and group
to match your needs:
email
: The email address for your Facebook/Messenger account (ex example@example.org
)
pass
: The password for your account
group
: The URL for your group/chat (ex https://www.messenger.com/t/1234567890123456
)
The bot should now work. Run it with this command in the root of the project
npm start