| View previous topic :: View next topic |
| Author |
Message |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Fri Jan 02, 2009 2:39 am Post subject: incith:pisg (r82) (Jan. 20th, 2009) (Windows Compatible) |
|
|
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. _________________ ; Answer a few unanswered posts!
Last edited by incith on Wed Jan 21, 2009 2:37 am; edited 9 times in total |
|
| Back to top |
|
 |
Torrevado Op
Joined: 02 Aug 2006 Posts: 101
|
Posted: Fri Jan 02, 2009 2:14 pm Post subject: |
|
|
| Quote: | 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" |
|
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
|
| Back to top |
|
 |
Torrevado Op
Joined: 02 Aug 2006 Posts: 101
|
Posted: Fri Jan 02, 2009 7:47 pm Post subject: |
|
|
| Code: | variable auto_times "5 11 17 23"
|
|
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sat Jan 03, 2009 12:00 am Post subject: |
|
|
| Torrevado wrote: | | Code: | variable auto_times "5 11 17 23"
|
|
Worked fine for me..
| Quote: | (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). _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
Torrevado Op
Joined: 02 Aug 2006 Posts: 101
|
Posted: Sat Jan 03, 2009 5:38 pm Post subject: |
|
|
| Quote: | | 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: | | 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  |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sat Jan 03, 2009 6:08 pm Post subject: |
|
|
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. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
danzigrules Voice
Joined: 02 Aug 2007 Posts: 17
|
Posted: Thu Jan 08, 2009 8:21 pm Post subject: |
|
|
| /me sniffles, file not available for download |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Thu Jan 08, 2009 8:58 pm Post subject: |
|
|
Ah, whoops, it's on incith.com as rc3, I'll update the first post now....there, linked fixed. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
danzigrules Voice
Joined: 02 Aug 2007 Posts: 17
|
Posted: Thu Jan 08, 2009 11:54 pm Post subject: |
|
|
| 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.... |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Fri Jan 09, 2009 12:37 am Post subject: |
|
|
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? _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
danzigrules Voice
Joined: 02 Aug 2007 Posts: 17
|
Posted: Fri Jan 09, 2009 7:42 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sat Jan 10, 2009 2:40 am Post subject: |
|
|
Good to hear, I want to release it soon, don't need bugs.  _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
au_casper Voice
Joined: 26 Jan 2009 Posts: 2
|
Posted: Mon Jan 26, 2009 9:13 pm Post subject: |
|
|
Hi,
I need some help with this, not really a script problem but more so permissions.
| Code: |
incith-pisg-r82: Stats Update failed: couldn't execute "/home/admin/pisg-0.72": permission denied
|
| Code: |
-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 |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Tue Jan 27, 2009 7:27 am Post subject: |
|
|
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. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
|