{"action":"created","issue":{"url":"https://api.github.com/repos/adigitalmonk/durendal-bot/issues/51","repository_url":"https://api.github.com/repos/adigitalmonk/durendal-bot","labels_url":"https://api.github.com/repos/adigitalmonk/durendal-bot/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/adigitalmonk/durendal-bot/issues/51/comments","events_url":"https://api.github.com/repos/adigitalmonk/durendal-bot/issues/51/events","html_url":"https://github.com/adigitalmonk/durendal-bot/issues/51","id":193908995,"number":51,"title":"How should we handle the loading of commands?","user":{"login":"adigitalmonk","id":2956701,"avatar_url":"https://avatars.githubusercontent.com/u/2956701?v=3","gravatar_id":"","url":"https://api.github.com/users/adigitalmonk","html_url":"https://github.com/adigitalmonk","followers_url":"https://api.github.com/users/adigitalmonk/followers","following_url":"https://api.github.com/users/adigitalmonk/following{/other_user}","gists_url":"https://api.github.com/users/adigitalmonk/gists{/gist_id}","starred_url":"https://api.github.com/users/adigitalmonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adigitalmonk/subscriptions","organizations_url":"https://api.github.com/users/adigitalmonk/orgs","repos_url":"https://api.github.com/users/adigitalmonk/repos","events_url":"https://api.github.com/users/adigitalmonk/events{/privacy}","received_events_url":"https://api.github.com/users/adigitalmonk/received_events","type":"User","site_admin":false},"labels":[{"id":474867558,"url":"https://api.github.com/repos/adigitalmonk/durendal-bot/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/adigitalmonk/durendal-bot/milestones/1","html_url":"https://github.com/adigitalmonk/durendal-bot/milestone/1","labels_url":"https://api.github.com/repos/adigitalmonk/durendal-bot/milestones/1/labels","id":2113672,"number":1,"title":"0.1.0","description":"Framework Initial Release","creator":{"login":"adigitalmonk","id":2956701,"avatar_url":"https://avatars.githubusercontent.com/u/2956701?v=3","gravatar_id":"","url":"https://api.github.com/users/adigitalmonk","html_url":"https://github.com/adigitalmonk","followers_url":"https://api.github.com/users/adigitalmonk/followers","following_url":"https://api.github.com/users/adigitalmonk/following{/other_user}","gists_url":"https://api.github.com/users/adigitalmonk/gists{/gist_id}","starred_url":"https://api.github.com/users/adigitalmonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adigitalmonk/subscriptions","organizations_url":"https://api.github.com/users/adigitalmonk/orgs","repos_url":"https://api.github.com/users/adigitalmonk/repos","events_url":"https://api.github.com/users/adigitalmonk/events{/privacy}","received_events_url":"https://api.github.com/users/adigitalmonk/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":24,"state":"open","created_at":"2016-11-04T00:52:52Z","updated_at":"2016-12-07T13:04:33Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-12-06T22:53:07Z","updated_at":"2016-12-07T23:03:28Z","closed_at":null,"body":"Right now we are handling it with a try/catch which is kind of dirty.\r\n\r\nOne idea I had was we could create some kind of cache somewhere of mappings for 'command' => require('some_command.js').  This would give us more freedom over naming commands and we would not have to worry about exceptions every time someone types a command that doesn't exist.  Not sure where we'd hold that static object, maybe in the bootstrap object?"},"comment":{"url":"https://api.github.com/repos/adigitalmonk/durendal-bot/issues/comments/265601898","html_url":"https://github.com/adigitalmonk/durendal-bot/issues/51#issuecomment-265601898","issue_url":"https://api.github.com/repos/adigitalmonk/durendal-bot/issues/51","id":265601898,"user":{"login":"adigitalmonk","id":2956701,"avatar_url":"https://avatars.githubusercontent.com/u/2956701?v=3","gravatar_id":"","url":"https://api.github.com/users/adigitalmonk","html_url":"https://github.com/adigitalmonk","followers_url":"https://api.github.com/users/adigitalmonk/followers","following_url":"https://api.github.com/users/adigitalmonk/following{/other_user}","gists_url":"https://api.github.com/users/adigitalmonk/gists{/gist_id}","starred_url":"https://api.github.com/users/adigitalmonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adigitalmonk/subscriptions","organizations_url":"https://api.github.com/users/adigitalmonk/orgs","repos_url":"https://api.github.com/users/adigitalmonk/repos","events_url":"https://api.github.com/users/adigitalmonk/events{/privacy}","received_events_url":"https://api.github.com/users/adigitalmonk/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T23:03:28Z","updated_at":"2016-12-07T23:03:28Z","body":"We could just leave the way we are handling restricted as is (it's a bit more functional because of it), then this would work better.  >_>"}}
{"actor":{"display_login":"adigitalmonk"}}