Skip to content

karlpokus/max

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi! I am Max and I am a bot on Trello. Have a look at trobot and you can build your own bot.

api

// bot.js
max.on('log', console.log);
max.on('commentCard', replyToComment);
max.on('createCard', longTitle);
max.on('updateCard', longTitle);
max.on('addMemberToBoard', addWebhook);
max.on('removeMemberFromBoard', removeWebhook);

// server.js
server.on('request', function(req, res){
  // ...
  max.emit('request', req, res);
  // ...
});

test

# run tests
$ npm test
# check availability
$ curl --head https://max-the-bot.herokuapp.com/

TODOs

  • autogenerated webhooks in 3.x
  • remove end response to logs as trobot 3.0.2 adds them by default
  • add reply for unit at psyk
  • test cases for autogenerating webhooks
  • add reply for enheter på psyk --sektion --enhet
  • archive card triggers updateCard so add check for !data.actions.data.old.closed && data.actions.data.card.closed

licence

MIT

About

Max the trello bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published