Skip to content

Add possibility of sending message with tag - #89

Merged
eXeDK merged 10 commits into
remixz:masterfrom
baudev:baudev-message-with-tag
Jul 1, 2018
Merged

eXeDK merged 10 commits into
remixz:masterfrom
baudev:baudev-message-with-tag

Conversation

@baudev

@baudev baudev commented May 30, 2018

Copy link
Copy Markdown
Contributor

Add the function sendMessageWithTag(recipient, payload, tag, cb) which allows sending messages with the specified tag.

Example of usage :

bot.sendMessageWithTag(payload.sender.id, { "text": "message_test"}, "NON_PROMOTIONAL_SUBSCRIPTION", (error, body) => {
    // ...
});

baudev added 2 commits May 30, 2018 15:17
Add the function `sendMessageWithTag(recipient, payload, tag, cb)` which allows sending messages with the specified tag.
Add the documentation for the function `sendMessageWithTag()`.
@eXeDK

eXeDK commented May 30, 2018

Copy link
Copy Markdown
Collaborator

Please fix tests @baudev

baudev added 2 commits May 30, 2018 16:10
Fixing continuous integration test failing 'cause of JavaScript Standard Style
Adding missing space making fail the continuous integration test.
@baudev

baudev commented May 30, 2018

Copy link
Copy Markdown
Contributor Author

Test passed on Node v6 ! https://travis-ci.org/remixz/messenger-bot/jobs/385714367

@eXeDK

eXeDK commented May 30, 2018

Copy link
Copy Markdown
Collaborator

What about Node4? I have not setup these pipelines so I'm not sure I can make changes to those.
Maybe @remixz can.

@baudev

baudev commented May 30, 2018 •

Copy link
Copy Markdown
Contributor Author

The mentioned errors in Node4 don't seem to be related to my MR.

EDIT : Sorry for closing the MR. Mistake on my part.

@baudev baudev closed this May 30, 2018
@baudev baudev reopened this May 30, 2018
baudev added 2 commits June 8, 2018 11:55
Give more flexibility to the `sendMessage()` function by letting the possibility of choosing the `messaging_type` attribute.
Then remove the sendMessageWithTag() function.
Update the documentation for the sendMessage() function. Remove it for sendMessageWithTag() one.
@baudev

baudev commented Jun 8, 2018

Copy link
Copy Markdown
Contributor Author

The function could be used as following finally :

bot.sendMessage(payload.sender.id, {"text": "message_test"},  (error, body) => {
    // ...
}, 'MESSAGE_TAG', 'NON_PROMOTIONAL_SUBSCRIPTION');

@baudev

baudev commented Jun 20, 2018

Copy link
Copy Markdown
Contributor Author

This issue's comment istanbuljs/nyc#865 (comment) explains that node 4.x is no more supported with the latest versions of nyc. This is confirmed by the following commit: istanbuljs/nyc@19b7d21

We have two options:

I prefer the last solution: easier and more secure. Then it requires that @remixz remove the node 4 test in his Travis account.

What do you think about @eXeDK ?

@baudev

baudev commented Jun 25, 2018

Copy link
Copy Markdown
Contributor Author

I tried everything. I think that specifying the tap version doesn't work due to the Travis cache. Anyway.
@remixz should remove the Node4 test or maybe @eXeDK have the rights of editing/remove/add tests ?

@eXeDK

eXeDK commented Jul 1, 2018

Copy link
Copy Markdown
Collaborator

I think I have some access to the travis-ci setup as well. I'll try and remove the Node4

@eXeDK

eXeDK commented Jul 1, 2018

Copy link
Copy Markdown
Collaborator

I'll merge this and try and fix the tests afterwards @baudev

@eXeDK
eXeDK merged commit 06e0a19 into remixz:master Jul 1, 2018
@baudev
baudev deleted the baudev-message-with-tag branch July 3, 2018 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants