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

Title: Is a !seen command possbile?
Post 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
Title: Re: Is a !seen command possbile?
Post by: Wanuarmi on December 15, 2005, 02:19:43 am
yup it is, but only if your bot has less than 1k members

ill take a shot at it if no one else does
Title: Re: Is a !seen command possbile?
Post by: Khalem on December 15, 2005, 05:17:46 am
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.
Title: Re: Is a !seen command possbile?
Post by: Akarah on December 15, 2005, 06:34:51 am
i was going to request that too, khalem ;)

actually, another column would be nice for storing total time logged on (in seconds), as well.
Title: Re: Is a !seen command possbile?
Post by: Nogoal on December 15, 2005, 08:26:10 am
Maybe add it to !is like in IGN.
Title: Re: Is a !seen command possbile?
Post by: Khalem on December 15, 2005, 09:41:37 am
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.
Title: Re: Is a !seen command possbile?
Post by: Wanuarmi on December 15, 2005, 09:10:38 pm
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
Title: Re: Is a !seen command possbile?
Post by: Wanuarmi on December 15, 2005, 09:32:37 pm
added a 10 minute "grace period" after restarting the bot to my script, as a dirty solution for that problem
Title: Re: Is a !seen command possbile?
Post by: Khalem on December 15, 2005, 10:42:48 pm
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.
Title: Re: Is a !seen command possbile?
Post by: Wanuarmi on December 15, 2005, 11:01:11 pm
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.
Title: Re: Is a !seen command possbile?
Post by: Wanuarmi on December 15, 2005, 11:50:58 pm
updated my script to only save the date when the user logged on first
Title: Re: Is a !seen command possbile?
Post by: Handor on December 16, 2005, 05:35:18 am

  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.
Title: Re: Is a !seen command possbile?
Post by: kuznechik on December 19, 2005, 04:43:15 pm
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.
Title: Re: Is a !seen command possbile?
Post by: Akarah on December 19, 2005, 07:34:09 pm
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 ;)
Title: Re: Is a !seen command possbile?
Post by: Handor on December 20, 2005, 06:03:07 am
thank you =)
SimplePortal 2.3.7 © 2008-2025, SimplePortal