egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

incith:pisg (r82) (Jan. 20th, 2009) (Windows Compatible)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Fri Jan 02, 2009 2:39 am    Post subject: incith:pisg (r82) (Jan. 20th, 2009) (Windows Compatible) Reply with quote

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
View user's profile Send private message
Torrevado
Op


Joined: 02 Aug 2006
Posts: 101

PostPosted: Fri Jan 02, 2009 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Fri Jan 02, 2009 7:01 pm    Post subject: Reply with quote

Hrm? What are your settings set to?
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
Torrevado
Op


Joined: 02 Aug 2006
Posts: 101

PostPosted: Fri Jan 02, 2009 7:47 pm    Post subject: Reply with quote

Code:
variable auto_times "5 11 17 23"
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sat Jan 03, 2009 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Torrevado
Op


Joined: 02 Aug 2006
Posts: 101

PostPosted: Sat Jan 03, 2009 5:38 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sat Jan 03, 2009 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
danzigrules
Voice


Joined: 02 Aug 2007
Posts: 17

PostPosted: Thu Jan 08, 2009 8:21 pm    Post subject: Reply with quote

/me sniffles, file not available for download
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Thu Jan 08, 2009 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
danzigrules
Voice


Joined: 02 Aug 2007
Posts: 17

PostPosted: Thu Jan 08, 2009 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Fri Jan 09, 2009 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message
danzigrules
Voice


Joined: 02 Aug 2007
Posts: 17

PostPosted: Fri Jan 09, 2009 7:42 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sat Jan 10, 2009 2:40 am    Post subject: Reply with quote

Good to hear, I want to release it soon, don't need bugs. Smile
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
au_casper
Voice


Joined: 26 Jan 2009
Posts: 2

PostPosted: Mon Jan 26, 2009 9:13 pm    Post subject: Reply with quote

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 Smile

C@sPEr
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Tue Jan 27, 2009 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber