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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
-
berny
- Voice
- Posts: 3
- Joined: Fri Apr 17, 2009 4:11 pm
Post
by berny »
I need invite only channel.
If some user write to bot invite request with correct password bot invite him to channel.
-----------------
example:
1. I go on IRCNET and type to main window: /msg LamaBot invite password #mychannel
2. And bot answer me: [lamaBot] invites you to join [#mychannel]
-----------------
I can not find any script or commands how can I setup bot for this function... can you help me anyone?
-
berny
- Voice
- Posts: 3
- Joined: Fri Apr 17, 2009 4:11 pm
Post
by berny »
nobody knows?
-
tomekk
- Master
- Posts: 255
- Joined: Fri Nov 28, 2008 11:35 am
- Location: Oswiecim / Poland
-
Contact:
Post
by tomekk »
try:
Code: Select all
set inv_channels {#chan1 #chan2}
set inv_password "mypass"
#############################################
bind msgm - "*" inv_proc
proc inv_proc { nick uhost hand arg } {
global inv_channels inv_password
set input_args [split $arg]
set input_cmd [lindex $input_args 0]
set input_pass [lindex $input_args 1]
set input_chan [lindex $input_args 2]
if {$input_cmd == "invite"} {
if {[lsearch $inv_channels $input_chan] != -1} {
if {$input_pass == $inv_password} {
putserv "INVITE $nick $input_chan"
}
}
}
}
putlog "inv.tcl loaded"
/msg botty invite mypass #chan1
17:35 -!- botty invites you to #chan1
/msg botty invite mypass #chan2
17:35 -!- botty invites you to #chan2
/msg botty invite mypass #some.other
- no action
cheers
-
dazzie
- Voice
- Posts: 2
- Joined: Mon Sep 14, 2009 1:43 am
Post
by dazzie »
Sorry for bumping old thread but I got error for the script above:
lamestbot: [22:36] Tcl error [inv_proc]: invalid command name " "
lamestbot: [22:36] (dazzie!
dazzie@6B72C0ED.IP) !dazzie! failed INVITE #chan
-
tomekk
- Master
- Posts: 255
- Joined: Fri Nov 28, 2008 11:35 am
- Location: Oswiecim / Poland
-
Contact:
Post
by tomekk »
weird, I have no problem with this script,
could you paste your eggdrop config here? (full config)
What is your eggdrop version, TCL version?
-
dazzie
- Voice
- Posts: 2
- Joined: Mon Sep 14, 2009 1:43 am
Post
by dazzie »
It works now.
I was concentrating too much on the dcc chat that I didn't notice I had received the invite.