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.

Botrequest Script +o checker

Old posts that have not been replied to for several years.
Locked
D
Dizmo

Botrequest Script +o checker

Post by Dizmo »

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
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

this is how it works:
  • 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)
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Re: Botrequest Script +o checker

Post by ]Kami[ »

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 :mrgreen:
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Here is the solution you are looking for.
Try this link:

http://forum.egghelp.org/viewtopic.php?t=7897
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked