Closed kengz closed 8 years ago
Update: add a message cleaner. Bot is tested: Can you publish the new version to npm and lemme know? Thanks :)
hi! reviewing now. thanks for the PR!
Looks awesome, but can you separate the message cleaner into a separate PR and add an env var for configuring it? Can potentially break some modules that rely on custom robot.hear, such as https://github.com/opendns/hubot-zmachine/blob/master/src/zmachine.coffee#L247
Aight gotcha ^ the latest commit does not execute cleanMessage
unless FB_AUTOHEAR
is truthy.
prepping for integration at https://github.com/chen-ye/hubot-fb/commit/539b555d281fc1f73e733853b02465c7ab19dcc9
continued in https://github.com/chen-ye/hubot-fb/pull/5
This solves #3
FB_ROUTE_URL
default to/fb
, good practice to name it by adapter to prevent name clash.