This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

prediction tcl?

Old posts that have not been replied to for several years.
Locked
j
jedis

Post by jedis »

Looking for a script that stores information about how often a user joins a channel. It should mathematically calculate the average time that transpires between visits from a user, so that if i type !predict ppslim in the channel, the script will make an educated guess as to when should be the next time he joins.

Such as <Bot> jedis: ppslim will next join #eggdrop in approximately 3 hours and 46 minutes.

I suppose a modified !seen script would work, only it would have to remember perhaps the last 5 or 10 times the person joined, and be able to figure out how long in between each pair of consecutive visits, and average those 5 or 10 periods of time. If coding is not an issue, it could remember all visits, like the bseen script remembers all users.

It could be made more complex by having the script guess how long the person will stay:

<Bot> jedis: ppslim is expected to join #eggdrop in approximately 9 hours and 57 minutes; he will most likely stay for approximately 3 hours and 10 minutes

Has anyone seen such a script? Or can make one?

<font size=-1>[ This Message was edited by: jedis on 2001-12-24 00:09 ]</font>
Locked