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 

Modifing a script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Felix2003
Voice


Joined: 06 Feb 2009
Posts: 24

PostPosted: Sat May 30, 2009 1:01 pm    Post subject: Modifing a script Reply with quote

hello all i have a script

Code:
package require http

bind pub - !u stats
proc stats {nick uhost hand chan text} {
set user [lindex [split $text] 0]
if {$text == ""} {
set user $nick
}
if {$user!=""} {
set data [::http::geturl http://lmysite.com/ircstats.php?search=$user]
foreach line [split [::http::data $data] \n] {
if {$line != ""} {
putquick "PRIVMSG $chan :$line"
}
}
::http::cleanup $data
}
}


this is a script were you !u user a user on the irc and it shows there stats

but what i need is for it to display thses stats on join
and if the member isnt a user of my site its bans there nick e.g

this is when the user joins who is a site members

Quote:
Felix2003 (Felix2003@Felix.The.Crazy.Cat) has joined. «13 people»
<FelixBot> User Details For Felix2003 > forum Rank: Admin / Forum posts: 485 Url: www.mysite.com/userdetails

and so on all this info is pulled from the php script already installed on the server

now if a user joins who isnt a site member i would like his to happen

Quote:
Felix20031 (Felix2003@Felix.The.Crazy.Cat) has joined. «13 people»
*FelixBot sets mode +b Felix20031!*@*
Felix20031 was kicked by FelixBot (Member Not Found Use Your Site Nick)

then remove the ban say 5mins later

i would also need a excepts so the bot doesnt kick any staff of my forums and me lol

any help would be greatly appreciated

also when a user isnt found the script already returns - No such user, please try again.
Back to top
View user's profile Send private message
Felix2003
Voice


Joined: 06 Feb 2009
Posts: 24

PostPosted: Sat Aug 08, 2009 1:07 pm    Post subject: Reply with quote

guessing no1 can help :/
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 Requests All times are GMT - 4 Hours
Page 1 of 1

 
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