Skip to content

Conversation

@Gavitron
Copy link

@Gavitron Gavitron commented Jan 6, 2020

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

exports = module.exports = (robot) ->
robot.hear regex, (msg) ->
msg.send msg.random images
if !(Math.floor(Math.random() * frequency)))
Copy link
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