Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimGil committed Oct 6, 2020
1 parent 477e3b1 commit 51f0e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ keepMePosted(URL, exec, settings, {a: 1});
// This will return a Promise that will resolve with the object:
// { message: 'Hi...', a: 11 }
// The bot will send a message "Hi..."
// Avoiding a message

keepMePosted(URL, () => {a: 1}, settings);
// Avoiding a message
// return any non string value that does not contain a "message" property
keepMePosted(URL, () => ({a: 1}), settings);
// This will return a Promise that will resolve with the object:
// { a: 1 }
// The bot will not send a message
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keep-me-posted",
"version": "0.1.1",
"version": "0.1.2",
"description": "Keep yourself posted for website updates",
"repository": "github:ZimGil/keep-me-posted",
"main": "index.js",
Expand Down

0 comments on commit 51f0e81

Please sign in to comment.