This PR includes changes I wanted to make BEFORE implementing the new feature to include the command and prompt in the framework's trigger object which is passed to framework.hears() commands. In includes:
Added a new framework config option profileMsgProcessingTime. Set to true to profile time spent in framework and hears() callbacks per message. When set, the framework will log the processing time per message to the console. When framework.stop() is called the total number of messages processed and the average processing time will be displayed in the console.
This was added in anticipation of adding a new feature to extract the bot command and prompt into the trigger object. Depending on the impact this feature has on the processing time, the command/prompt feature may or may not be on by default.
Added new documentation with more details on how contribute, with specific attention to how to run the tests.
This PR includes changes I wanted to make BEFORE implementing the new feature to include the command and prompt in the framework's trigger object which is passed to framework.hears() commands. In includes:
profileMsgProcessingTime
. Set to true to profile time spent in framework and hears() callbacks per message. When set, the framework will log the processing time per message to the console. When framework.stop() is called the total number of messages processed and the average processing time will be displayed in the console.