A small Webtask Cron script to monitor a Chrome Web Store Extension for new review and support comments.
-
Create an IFTTT account to send notifications with
-
Create a new recipe with the Webhooks service to receive the web request with
-
Set the Event Name to
new_chrome_extension_comment
-
Use the Email action service to send yourself an email
-
Customize the Subject and Body (optional)
Note that the arguments sent from the script are:
{{Value1}}
-- eitherReview
orSupport
{{Value2}}
-- the Chrome Extension ID (without the title){{Value3}}
-- the URL subpath (either/reviews
or/support
)
-
Optionally customize the title, review, and click
Finish
-
Clone this Gist locally
-
Create a new webtask.io Cron job
$ wt cron schedule \ --secret EXTENSION_ID=<YOUR-EXTENSION-ID> \ --secret IFTTT_KEY=<YOUR-IFTTT-KEY> \ 1m check-chrome-extension-comments.js
Your Extension ID can be found in the Web Store URL, e.g.
mpjmeeikbbgccbjkbfabocnjcaejdpmj
for this extension.Your IFTTT Key can be found in your Maker Webhooks settings.
If wired up correctly, you should receive an email within the hour. (...yep, IFTTT email can be slow. You may want to use the "Send yourself an email" action from the Gmail service instead if you need to minimize the delay.)
Here's what the resulting email will look like:
Clicking the link will take you to the latest comment.
You can also run wt logs
to confirm it's running.
-
Uncaught error: Error starting local server: Unexpected token import
when runningwt serve
Until this issue is resolved, you'll have to run babel locally and serve the manually compiled output.
-
ReferenceError: regeneratorRuntime is not defined
after deployingSee this issue.