mohlendo / hubot-trello-organization Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I am able to set boards, list boards, show current boards and list lists but whenever I try to list cards in in a list, add new, move or assign nothing happens.
I turned on Debug level for the hubot logs and when I make this call I see the following:
2016-05-23T14:51:13.632224+00:00 app[web.1]: [Mon May 23 2016 14:51:13 GMT+0000 (UTC)] DEBUG Received message: 'set board to “QA Board"' in channel: blah, from: me
2016-05-23T14:51:13.634949+00:00 app[web.1]: [Mon May 23 2016 14:51:13 GMT+0000 (UTC)] DEBUG No listeners executed; falling back to catch-all
No response is returned at all to even state there is an error.
I tried listing the boards available to my bot due to another issue 3 times in a row, which must have hit Trello's API limit. It crashed hubot upon receiving that message 6 times.
I tried changing the method to the following:
robot.respond(/set board to [\\"\\'](.+)[\\"\\']$/i, function (msg) {
ensureConfig(msg.send);
msg.send("I've ensured your config");
var room = findRoom(msg);
msg.send("I think your room is: " + room);
var boardName = msg.match[1];
msg.send("I think your board name is: " + boardName);
saveBoard(room, boardName);
msg.send("Ok, from now on this room is connected to the trello board: " + boardName);
});
I never get any of those messages so that leads me to believe that the problem is either in ensureConfig or the regex used in this respond.
I can have it list boards (although it crashes hubot #2 some times) so I don't think it's the ensureConfig method. Here are the messages I tried to get it to set the board for the room:
hubot set board to “DevOps"
hubot set board to ‘DevOps'
hubot set board to ‘devops
hubot set board to “devops"
hubot set board to “‘DevOps’"
None of these work for me. Thoughts?
Any samples of how to use this, and how it differs from the other repo?
As of now hubot trello help
shows hubot move "<card shortLink>" to "<list name>" - Move the card to a different list.
. However, it does not work when you put <card shortLink>
in double quotes, but only without them, ex. hubot move 6u7dzEw4 to "Done"
works.
If it's not supposed to be this way, it would be great if the required command matched up with the hubot trello help
info given, thanks! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.