collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Is a !seen command possbile?  (Read 3498 times)

0 Members and 1 Guest are viewing this topic.

Offline Handor

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Is a !seen command possbile?
« 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

Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #1 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

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Is a !seen command possbile?
« Reply #2 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.
BeBot Founder and Fixer Kingpin

Offline Akarah

  • Contributor
  • *******
  • Posts: 72
  • Karma: +0/-0
    • http://synergyfactor.net/
Re: Is a !seen command possbile?
« Reply #3 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.
« Last Edit: December 15, 2005, 06:42:28 am by Akarah »

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #4 on: December 15, 2005, 08:26:10 am »
Maybe add it to !is like in IGN.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Is a !seen command possbile?
« Reply #5 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.
BeBot Founder and Fixer Kingpin

Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #6 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

Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #7 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

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Is a !seen command possbile?
« Reply #8 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.
BeBot Founder and Fixer Kingpin

Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #9 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.

Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #10 on: December 15, 2005, 11:50:58 pm »
updated my script to only save the date when the user logged on first

Offline Handor

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #11 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.

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #12 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.
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Akarah

  • Contributor
  • *******
  • Posts: 72
  • Karma: +0/-0
    • http://synergyfactor.net/
Re: Is a !seen command possbile?
« Reply #13 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 ;)

Offline Handor

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Is a !seen command possbile?
« Reply #14 on: December 20, 2005, 06:03:07 am »
thank you =)

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 497
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal