Computer Hope

Other => Computer Hope groups => Chat => Topic started by: Computer Hope Admin on December 16, 2008, 07:09:06 AM

Title: Hopebot
Post by: Computer Hope Admin on December 16, 2008, 07:09:06 AM
As many have noticed and mentioned to me Hopebot's been absent a lot recently in the chat. Unfortunately it's yet another growing issue that I believe is being encountered. I believe that the chat stats that is parsed every time before the upload is taking longer because of the increased size causing the FTP to fail because of timeouts.

I've temporarily disabled the chat stats update (although log still being created) until I can get the time to create a method that will allow the log to be generated more efficiently. Right now I'm focusing more on the potential issues with the server and the forum.

Title: Re: Hopebot
Post by: Computer Hope Admin on December 17, 2008, 11:37:38 PM
While working on server issues yesterday and early this morning I also worked out the issues with Hopebot (as far as disconnecting frequently). So this should no longer be an issue.
Title: Re: Hopebot
Post by: Carbon Dudeoxide on December 24, 2008, 01:48:41 PM
Well I for one am glad he's back online. I've missed his usefulness. ;)
Title: Re: Hopebot
Post by: computeruler on March 10, 2009, 05:46:11 PM
Like banning those annoying all cap noobs?
Title: Re: Hopebot
Post by: Carbon Dudeoxide on March 11, 2009, 02:51:03 AM
No, by not checking dates on topics.
Title: Re: Hopebot
Post by: computeruler on March 11, 2009, 01:51:39 PM
I forget sometimes :-\
Title: Re: Hopebot
Post by: Zylstra on March 15, 2009, 03:40:31 PM
It would be possible that, instead of Hopebot uploading the stats, you could have another program upload it.

On my server, Mr_Omally is hosted on the same computer that hosts the stats, so, there is no upload, it just writes direct access.
You could upload PISG stats to the server, and just have an automatic FTP program upload the raw logs to the PISG directory, and schedule a CRON job on the server itself to process PISG stats....

Title: Re: Hopebot
Post by: Computer Hope Admin on March 16, 2009, 11:32:49 AM
Yeah that's true. Although the FTP works fine. Also Hopebot is not just uploading a file, he's generating the .js file that contains the information about who's logged into the channel, what was last said, etc. and also starting the process of compiling the PISG stats. So it's a little more than just a FTP upload.
Title: Re: Hopebot
Post by: macdad- on March 16, 2009, 11:38:12 AM
Why create the log as a JavaScript file?
Title: Re: Hopebot
Post by: Computer Hope Admin on March 16, 2009, 11:39:31 AM
Easy method of allowing it to be live stats and implemented on any page, including any non-computerhope page.
Title: Re: Hopebot
Post by: macdad- on March 16, 2009, 11:42:19 AM
Ahh...and that means that you can display the contents of it for any page?
Title: Re: Hopebot
Post by: Computer Hope Admin on March 16, 2009, 11:54:57 AM
Umm maybe. Not sure if I understand you or not. Basically all the .js file contains is a document.write, which is like a print statement to print a line of text, which is the stats information. Because this is an external file I can link that file from the forum, computer help page, and any other page and have that same information displayed without having to have a dynamic web page. Hope that helps explain it.
Title: Re: Hopebot
Post by: macdad- on March 16, 2009, 12:35:41 PM
Makes sense.