Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Contribute Cisco Jabber XMPP connector to botkit #1169

Merged
merged 14 commits into from
Feb 14, 2018

Conversation

qiongfangzhang
Copy link
Contributor

We open this pull request to contribute Cisco Jabber XMPP connector into botkit framework. People can create Cisco Jabber Bot based on botkit framework, connect to Cisco Webex messenger servers and Cisco IM&Presence servers. More details for the Jabber Bot can be found in the readme-jabberbot.md and in the attached documents.
ChatBot-CallFlow-Example.docx

Copy link
Contributor

@Naktibalda Naktibalda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your pull request can't be merged because it has a merge conflict in readme.md file.
Please update your master branch by rebasing it on howdyai/master branch or by merging howdyai/master branch to your branch.

});
var bot = controller.spawn({
client: {
jid: ‘xx@domain.com',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong opening quote here.

|--- |---
| jid | Jid of the jabber bot
| password | Password of the jabber bot
| host | host of the Cisco Unified IM & Presence server, no need for bot of Cisco WebEx Messenger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If all descriptions start with capital letter, this one should start with H.
not necessary would look better than no need.

let mention_jids = [];
if (match) {
for (let i = 0; i < match.length; i++) {
let jid_match = match[i].match(email_reg);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please indent all statements in function body properly.

lib/JabberBot.js Outdated

xmpp.on('subscribe', function (from) {
xmpp.acceptSubscription(from);
console.log('accept subscribe from' + from);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a space between from and closing quote '.

lib/JabberBot.js Outdated
return false;
}

function ExtractMentionJids(message) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExtractMentionJids function is not a constructor so it should start with lowercase e.

package.json Outdated
"ws": "^2.2.2",
"node-ews": "^3.2.2",
"node-xmpp-caps": "0.0.2",
"simple-xmpp": "^1.3.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put new dependencies to alphabetically correct positions.
Putting then at the bottom also creates an unnecessary conflict with #1154.

@benbrown benbrown self-assigned this Dec 11, 2017
@peterswimm
Copy link
Contributor

peterswimm commented Feb 9, 2018

This will be included in the next update of Botkit.

@qiongfangzhang
Copy link
Contributor Author

qiongfangzhang commented Feb 13, 2018 via email

@benbrown benbrown merged commit 847be28 into howdyai:master Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants