antibot icon indicating copy to clipboard operation
antibot copied to clipboard

Reduce Confirmation Time

Open dramm33 opened this issue 5 years ago • 3 comments

Hi!

Is it possible to reduce the confirmation time to something less than 24h?

Thanks!

dramm33 avatar Jul 16 '19 14:07 dramm33

I realize that I am reviving a dead thread and probably no one will answer, however this topic is certainly relevant, and perhaps someone will fork this project and will want to look into this.

From what I can see initially (I have not yet looked at the code itself), I do not see a way to reduce the confirmation time to below 24 hours, only lengthen it beyond (via the [customBanDelay] property).

I'll update after I look at the code.

Update: It looks like the time value in https://github.com/ejnshtein/antibot/blob/master/core/database/mongodb/index.js (currently 86400000, since 86400000ms is 24h) would need to be changed to reduce the time to below 24 hours (or change to whatever value is wanted).

moriel5 avatar Jun 15 '22 18:06 moriel5

@moriel5 don't need to, the bot is dead

ejnshtein avatar Jun 15 '22 18:06 ejnshtein

@ejnshtein Ah, but someone else could host it.

I believe that one of the groups I am a member of hosts an instance of your bot.

But thank you for taking the time to answer. In any case, I found how to change the default time (before taking the custom delay into the equation), so I'll update my previous post with that.

moriel5 avatar Jun 15 '22 18:06 moriel5