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.
Old posts that have not been replied to for several years.
N
Neo
Post
by Neo » Mon May 19, 2003 12:14 pm
hmm...this may sound stupid, but, anyone knows how can i make my bot message a user asking for op if "CS" (chanserv on my network) is not in the channel?
thanks.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon May 19, 2003 1:48 pm
Use something like this:
Code: Select all
bind need - * my:needs
proc my:needs {channel type} {
set friend "FooBar"
if {![onchan ChanServ $channel]} {
switch -- $type {
"op" {
putserv "PRIVMSG $friend :op $channel $::botnick"
return 1
}
"unban" {
putserv "PRIVMSG $friend :unban $channel $::botnick"
return 1
}
"invite" {
putserv "PRIVMSG $friend :invite $channel $::botnick"
return 1
}
"limit" {
putserv "PRIVMSG $friend :invite $channel $::botnick"
return 1
}
}
}
}
Replace the friend with the actual name of the friend you want it as op, unban, limit and/or rest from.
Once the game is over, the king and the pawn go back in the same box.