BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => 0.2.x Custom/Unofficial Modules => Topic started by: Wanuarmi on December 15, 2005, 08:59:34 pm
-
Here is my attempt at the !seen command... It only works on bots with less than 1k members, so I couldnt test it, but it should work...
!seen <player>
updated: made a temp fix so the bot will only save dates 10 minutes after reboot, to fix the initial "buddy logged off" spam
updated again: now the bot will only save the "last seen" date if it sees the player logging on and off, so it doesnt save the wrong dates if the ao chat server resets
updated: forgot to add "$commands["buddy"][] = &$lastSeen;"
updated: changed date() to gmdate()
-
Parse error: parse error in C:\bebot\modules\LastSeen.PHP
I'm getting this error. I dont see anything 'obviously wrong' on line 58. Just my observation. =/ Probly a silly mistake on my end but I'm curious.
Thank You,
Handor
P.S. I copy pasted the text into a empty text file, then saved.
-
there was an error, forgot a ")", fixed
-
oh thank you thank you!
i'm going to expand this a tiny bit for my own use, but this gives me something to work with thank you sooo much :)
-
now i'm getting on line 58 =P Merry xmas everyone!
-
I suggest using (.+) instead of (.*) in your regex so it requires they input a user. Otherwise, the bot won't be able to pull a date if someone just does !seen
-
I suggest using (.+) instead of (.*) in your regex so it requires they input a user. Otherwise, the bot won't be able to pull a date if someone just does !seen
updated
-
Call to Undefined function error found in the above code.
This:$time_ago = format_seconds($seconds);
Should be:$time_ago = $this -> format_seconds($seconds);
-
updated
-
Parse error: parse error, unexpected ';' in /srv/AO-Bots/stringtheory/BeBot_v0.2.2/modules/LastSeen.php on line 89
-
updated
-
updated, changed date() to gmdate()
let me know if you find bugs
-
[Synergy Factor] Sfbot: Gefjun was last seen 12:00:00 am 1/1/70 GMT (13173 days and 08:12:26 ago).
-
all my dates are being entered as 0 -- haven't had time to dig into why, but thought i'd bump this just in case anyone else had any ideas.
-
found the bug, updated
was using the query result as $result[1] instead $result[0][1]
-
thanks so much - my officers love you (so they can weed out unplayed applicants now :D )