This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

incith:pisg (r82) (Jan. 20th, 2009) (Windows Compatible)

Support & discussion of released scripts, and announcements of new releases.
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

incith:pisg (r82) (Jan. 20th, 2009) (Windows Compatible)

Post by incith »

Newest versions of my scripts are always available @ incith.com if they are not yet available on the Tcl archive.

There's a script I submitted to egghelp some years ago now, under a different name even, pisg-0.5.tcl, that I have bothered to finally clean up.

You will need: pisg - IRC Statistics Generator
Windows/Windrop Users: You will need ActivePerl. Install and associate with .pl files during the installation. Rename pisg to pisg.pl (possibly not needed) from the pisg-0.xx.zip.
Windrop error "couldn't create error file for command: no such file or directory": Downgrade to Windrop 1.6.17 and replace your libtcl8.4.dll with this one: libtcl8.4.dll. See this thread for more information.

Features:
  • FTP uploading of html files (Windows/*NIX compatible sendftp routine included, based off Ernst's)
  • Automatic/scheduled updates.
  • Blah blah blah.
It will read your pisg config file and determine the output filenames, and append them to the output URL (if wanted), so you do not have to setup anything special. For example, if your base url was "http://incith.com", you could have the bot send a "Stats Updated - %url%" or "Stats Updated - %url%%file%" and this will append "/theOutputFileName.html" to the URL, for that particular channel.

The binds are currently n|n.. you might want to change that to o|o or -|- depending. I'll add a setting for it. You can do !pisg * to update all channels found in the config file, !pisg in a current channel will update that channel, you can do !pisg <channel name> to update another channel. You can update in private message or dcc too, blah blah blah.

Automatic Updates: Currently, if you want a particular channel to be automatically updated at the configured times, set it to +pisg. This is problematic at the moment as you will also require +pisg in order to use the command publically in a channel. I was thinking I might add 2 channel flags for this script, +pisg (for public command control) and +pisg_auto (for whether this channel is included in automatic updates), would like some feedback on this.

Channel Prefixes: The other thing is I am currently only (manually) checking for # and & in channel names. But in a future release I will make it detect your channel prefixes based on your pisg config file.

Output Folder: There is no ftp_local_folder or pisg_folder setting because the script will figure out where your output files are being generated from your pisg.cfg, and upload them from wherever (if using ftp). If your OutputFile settings in pisg.cfg are not full paths, eggdrop will run pisg, and they will get generated in your eggdrop folder (this is also OK). Basically, your configuration requirements will be minimal.

Sample pisg.cfg with most settings.
Last edited by incith on Wed Jan 21, 2009 2:37 am, edited 9 times in total.
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Post by Torrevado »

couldn't set loop variable: "time"
while executing
"foreach time [split $incith::pisg::auto_times " "] {
if {[string length $time] == 1} {
bind time - "00 0${time} * * *" incith::pisg::generate_au..."
(file "scripts/incith-pisg.tcl" line 187)
invoked from within
"source scripts/incith-pisg.tcl"
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Hrm? What are your settings set to?
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Post by Torrevado »

Code: Select all

variable auto_times "5 11 17 23"
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Torrevado wrote:

Code: Select all

variable auto_times "5 11 17 23"
Worked fine for me..
(20:58:40) <visitant> time -|- 00 23 * * * 0 incith::pisg::generate_auto
(20:58:40) <visitant> time -|- 00 17 * * * 0 incith::pisg::generate_auto
(20:58:40) <visitant> time -|- 00 11 * * * 0 incith::pisg::generate_auto
(20:58:40) <visitant> time -|- 00 05 * * * 0 incith::pisg::generate_auto
All I can think is maybe you had a trailing space in your variable, I've accounted for this in rc3 now (posted).
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Post by Torrevado »

All I can think is maybe you had a trailing space in your variable, I've accounted for this in rc3 now (posted).
No, only 1 space is left.

Code: Select all

variable auto_times "5 11 17 23"
I tested it disabling the rest of eggdrop scripts and yours runs, no problem with the script then :)
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Well, that or maybe because was using the variable "time", I dunno. You shouldn't have to disable all your other scripts =/ Maybe try rc3.
d
danzigrules
Voice
Posts: 17
Joined: Thu Aug 02, 2007 6:06 am

Post by danzigrules »

/me sniffles, file not available for download
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Ah, whoops, it's on incith.com as rc3, I'll update the first post now....there, linked fixed.
d
danzigrules
Voice
Posts: 17
Joined: Thu Aug 02, 2007 6:06 am

Post by danzigrules »

does this require pisg-0.72? I cannot get get it to work with with .71, and I had this working at one time with one script at one time. I just cannot remember which one it was. Twas almost a year or so ago I believe....
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

I do not see anything in the pisg changelog since 0.69 that should affect this script working.. it was tested/built with 0.72. Are you getting any errors or etc? Anything I can look at?
d
danzigrules
Voice
Posts: 17
Joined: Thu Aug 02, 2007 6:06 am

Post by danzigrules »

I should have just went to bed before I posted that last message, I got it working. All do to a typo :\

/me kicks self :)
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Good to hear, I want to release it soon, don't need bugs. :)
a
au_casper
Voice
Posts: 2
Joined: Mon Jan 26, 2009 9:06 pm

Post by au_casper »

Hi,

I need some help with this, not really a script problem but more so permissions.

Code: Select all

 incith-pisg-r82: Stats Update failed: couldn't execute "/home/admin/pisg-0.72": permission denied

Code: Select all

-rwxrwxrwx 1 admin admin 1578 2008-11-29 07:16 /home/admin/pisg-0.72/pisg.cfg
Obviously I have misunderstood something here, any help or pointers would be greatly appreciated :)

C@sPEr
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

I think you're the guy I helped earlier in IRC -- to anyone else who may get this problem, the below is because he set the "pisg" setting to the folder of pisg, and not to the actual pisg perl script/executable/binary/whatever you want to call it.

variable pisg {/home/admin/pisg-0.72/pisg} would solve the issue.
Post Reply