A Facebook Messenger bot that sends cartoon updates from Instagram.
You can either run the bot on Glitch or on your local machine.
https://glitch.com/~messenger-cartoon-bot
git clone https://github.com/wli75/messenger-cartoon-bot.git
- Install dependencies, build and run the project
npm install
npm run build
npm start
Command |
Description |
get started |
Triggered by the "Get Started" button. Sends a greeting message. |
help |
Display a list of available commands. |
Command |
Description |
show subscription |
List Instagram accounts you're subscribed for cartoon updates. |
subscribe [account] |
Subscribe to an Instagram account for cartoon updates. |
unsubscribe [account] |
Unsubscribe from an Instagram account for cartoon updates. |
Command |
Description |
notification [on/off] |
Turn on/off cartoon update notification. By default, it's on. |
update |
Check if there are cartoon updates. This is useful if notification is off. |
Command |
Description |
unsupported command |
Sends a "I don't understand" message. |
Package |
Description |
express |
Node.js web framework |
request |
HTTP request library |
inversify |
Dependency injection framework |
better-sqlite3 |
Sqlite database |
puppeteer |
Web-scraping |
winston |
Logging library |
morgan |
HTTP request logging middleware for node.js |
Package |
Description |
typescript |
JavaScript compiler/type checker |
eslint |
Linter |
prettier |
Ensure consistent code format |
jest |
Testing library |