Hey i am trying to make a botrequest script,
i have got as far as been able to add the bot by commands,
but i am now trying to ge the bot to scan the channel to see is, A. the person requesting is opped, B. are there 5 other users in the channel.
I just cant get my head around it...
if {[string first $requestbot $botnicks] != -1} {
if {$channel != ""} {
if {$homepage != ""} {
putserv "PRIVMSG $requestbot :join $channel"
This is where i need to add the user op scanner, can someone script something for me, cause i aint gettin anywhere. Thanks
bind for join
when the bind is triggerd - >check if the nick = $::botnick and if the chan = the requested chan
if yes -> get all the ppl on the channel with [chanlist $chan] -> run the result trought a loop -> check with isop / isvoice for each users current status and compare it with your old data (the nick who requested the bot)
Dizmo wrote:Hey i am trying to make a botrequest script,
i have got as far as been able to add the bot by commands,
but i am now trying to ge the bot to scan the channel to see is, A. the person requesting is opped, B. are there 5 other users in the channel.
I just cant get my head around it...
if {[string first $requestbot $botnicks] != -1} {
if {$channel != ""} {
if {$homepage != ""} {
putserv "PRIVMSG $requestbot :join $channel"
This is where i need to add the user op scanner, can someone script something for me, cause i aint gettin anywhere. Thanks
There was topic about *same* thing allready, so i suggest you to use search function, you might find something usefull