BeBot - An Anarchy Online and Age Of Conan chat automaton
Development => Module Requests => Topic started by: Handor on December 15, 2005, 02:10:20 am
-
Hello all
I was curious if a !seen command could be implemented. Similar to IRC's eggdrop script. Basically something that displays a Org members last login/and exit. To keep track of who's active and who isnt.
Thank You,
Handor
-
yup it is, but only if your bot has less than 1k members
ill take a shot at it if no one else does
-
Very possible.
And once 0.4.0 is released, it will allow it to be done out of the box more or less.
Adding a coloumn for tracking last logged on time is on my Todo list.
-
i was going to request that too, khalem ;)
actually, another column would be nice for storing total time logged on (in seconds), as well.
-
Maybe add it to !is like in IGN.
-
Maybe add it to !is like in IGN.
From what i recall, it was useless in IGN since it used the time someone last logged off (which will be on the last bot connect due to how the chatserver sends the buddylist)
But yes, adding the info to !is and !whois etc will be trivial
As for your idea Akarah, id like to have a chat on IRC before i comment on it further.
-
http://bebot.link/index.php/topic,267.0.html
From what i recall, it was useless in IGN since it used the time someone last logged off (which will be on the last bot connect due to how the chatserver sends the buddylist)
bah I didnt think about that pff
whatever just dont restart the bot ;D
-
added a 10 minute "grace period" after restarting the bot to my script, as a dirty solution for that problem
-
added a 10 minute "grace period" after restarting the bot to my script, as a dirty solution for that problem
That will still generate false last logged off dates on an all too regular basis though. AO's chatserver aint the most stable thing in the world, and its not all that uncommon for the buddylist to "reset" without the chat connection being severed.
As such, i highly reccomend using only logon for last seen. Else you will need to do a more complex system that logs all logons and logoffs, and then parse that log to remove any logoff events without logon events to match before you can trust the logoff as being valid.
-
Else you will need to do a more complex system that logs all logons and logoffs, and then parse that log to remove any logoff events without logon events to match before you can trust the logoff as being valid.
lol thats exactly what I was thinking to do... its not that complex though, just keep an array with names of logged people. this would be mostly used gy guild bots with not many members on the buddy list, or online at the same time.
-
updated my script to only save the date when the user logged on first
-
Wanuarmi, It's just for a guild/org, definately less than 1k members. =P It's just a handy feature and apprently alot of other people think it would be too.. =)
L8r guys.
-
Maybe add it to !is like in IGN.
From what i recall, it was useless in IGN since it used the time someone last logged off (which will be on the last bot connect due to how the chatserver sends the buddylist)
But yes, adding the info to !is and !whois etc will be trivial
I'm currently modifying online.php
I'm added "seen" column in members table.
Cron run each 10 min, updating it for online users.
On logon it updates too.
On logoff - it updates if last seen <10 min - therefore removing quoted problem.
-
i'll be writing something like this myself, because i need a more robust online featureset in general.
need:
- last signon time to be logged and stored in database
- last signoff time to be logged and stored in database (IFF user was logged on)
- cumulative time spent online calculated at each logoff and updated in database.
depending on how fast/easily i accomplish these changes i'll post them here ;)
-
thank you =)