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.

Trigger Script needed !

Old posts that have not been replied to for several years.
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Trigger Script needed !

Post by ElZeRo »

Trigger Script needed !

The script is simple ... It should wenn triggert with !stats, make an output in the channel.
If possible with some kind of checking if the page exsist. (404 checking or so) .course my bot
issnt generating stats in all the channels its in !

Lets say :

nick in chan #test ... (chan #test is supportet with pisg)

[19:41:57] <nick> !stats
[19:41:58] <@BOT> Stats for #test @ http://www.myurltopisg.com/test.html

And nick2 in chan #test2 ... (chan #test2 is supportet with pisg)

[19:41:57] <nick2> !stats
[19:41:58] <@BOT> Stats for #test @ http://www.myurltopisg.com/test2.html



And nick in chan #test3 ... (chan #test3 is NOT supportet with pisg)

[19:41:57] <nick> !stats
[19:41:58] <@BOT> Sry no Stats for #test3

Reguards
ElZeRo
D
Dizzle
Op
Posts: 109
Joined: Thu Apr 28, 2005 11:21 am
Contact:

Post by Dizzle »

Search the TCL archive im sure there i a script made for this
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Post by ElZeRo »

I tryed that already ... but didnt find anythnig !
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

I guess you could make the bot when triggered with !stats open the stats page for that chanel. If it loads ok, it displays the url. If not then the bot replys no stats. Or, you could setudef flag stats and in partyline type .channel set #channel +/- stats ??
r0t3n @ #r0t3n @ Quakenet
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Post by ElZeRo »

but im not using the stats mod... The stats are generated with pisg v0.64.. And i dont think those 2 "work" together ! ..
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Well, all you do is modify the pigs script abit so it will work
r0t3n @ #r0t3n @ Quakenet
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Post by ElZeRo »

thx.. :-) ... but how ?? thats why i posted !...
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

maybe by learning tcl. But i guess you dont know any tcl and you want one of us to script one for you.
r0t3n @ #r0t3n @ Quakenet
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Post by ElZeRo »

would be nice if one of you would ... :D
but how to make the BOT post some text i know ... but i dont know how to doit so that it posts the channel name !...

" putserv "PRIVMSG $chan : Stats @ http://www.mystatsurl.com/" " but how do i get it to use the "chan" from where im triggering the script??
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

do you want to use the channel name with the '#' or without the '#' i suggest with '#' because its easier, without '#' its will be harder
r0t3n @ #r0t3n @ Quakenet
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Post by ElZeRo »

would be nice without the # ... but if u can show me how it goes with the # .. then i have something to work with.
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

try this

Code: Select all

putserv "PRIVMSG $chan :Stats @ http://www.mystatsurl.com/$chan.html"
r0t3n @ #r0t3n @ Quakenet
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Post by ElZeRo »

thx thx ...

Il do :-)
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

i think this is how you do it without the '#'


Code: Select all

putserv "PRIVMSG $chan :Stats @ http://www.mystatsurl.com/[string range $chan 1 end].html"
r0t3n @ #r0t3n @ Quakenet
E
ElZeRo
Voice
Posts: 24
Joined: Mon Apr 11, 2005 12:04 pm
Contact:

Post by ElZeRo »

That worked :-) thx...

[15:23:16] <@ElZeRo> !stats
[15:23:18] <@^MyBoT^> Stats @ http://www.mystatsurl.com/#elzero.dk.html

Could u give some tip to do it without the # ??
Locked