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 

Invite to a private channel

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


Joined: 30 Dec 2010
Posts: 99

PostPosted: Mon Apr 14, 2014 7:16 am    Post subject: Invite to a private channel Reply with quote

hi, looking for a script that when you publicly type in a channel !invite <nickname>

The script will run the following commands:

1. /msg Q chanlev #channel nickname +aok
2. invite the nickname to #channel via an Invite command
3. /msg nickname Hi nickname, you were invited to join #channel by inviting-nickname.


Thank you in advance
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Apr 14, 2014 8:22 am    Post subject: Reply with quote

Code:

bind pub o|o !invite chan:invite

proc chan:invite {nick uhosh hand chan text} {
   if {[scan $text {%s} member] != 1} {
      puthelp "NOTICE $nick :Error, syntax is: !invite <member>"
      return
   }
   puthelp "PRIVMSG Q :chanlev #channel $member +aok"
   puthelp "INVITE #channel $member"
   puthelp "PRIVMSG $member :Hi $member, you were invited to join #channel by $nick."
}

Be sure to change the flags that can use the command to whatever suits your needs and put in the actual channel instead of #channel.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
BigToe
Halfop


Joined: 30 Dec 2010
Posts: 99

PostPosted: Mon Apr 14, 2014 8:55 am    Post subject: Reply with quote

Thanks, the script works great!
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