17 lines
364 B
JavaScript
17 lines
364 B
JavaScript
module.exports = bot => {
|
|
const { eyeofgodTask } = bot.handlers
|
|
|
|
const expect = bot.rateLimit({
|
|
window: 1000 * 20,
|
|
limit: 1,
|
|
onLimitExceeded: ({ replyWithHTML }) =>
|
|
replyWithHTML(
|
|
'<code>I can handle from you only one request in 15 seconds.</code>'
|
|
)
|
|
})
|
|
|
|
bot.hears(/^[0-9]{5,20}$/g, expect, eyeofgodTask.checkLeak)
|
|
|
|
// TODO: Select menu add
|
|
}
|