Skip to content

Random delay#44

Open
Gavitron wants to merge 4 commits into
hubot-archive:mainfrom
Gavitron:random-delay
Open

Random delay#44
Gavitron wants to merge 4 commits into
hubot-archive:mainfrom
Gavitron:random-delay

Conversation

@Gavitron
Copy link
Copy Markdown

@Gavitron Gavitron commented Jan 6, 2020

add an environment variable to provide a backoff for installations with a high-frequency of jargon in use.

Comment thread src/businesscat.coffee
exports = module.exports = (robot) ->
robot.hear regex, (msg) ->
msg.send msg.random images
if !(Math.floor(Math.random() * frequency)))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is really cool @Gavitron but I think there's a typo here (extra ))... could you please update and I'll get this merged & shipped.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants