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 

request admin and or op stats

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


Joined: 01 Dec 2005
Posts: 86

PostPosted: Sat Dec 29, 2007 7:22 pm    Post subject: request admin and or op stats Reply with quote

Hi,

In my channel I disabled the autoop/admin (IrcHighWay) and if my bot left and back later he never get the admin status again.

How to I can do to my bot request admin status to chanserv on joined the channel?

Thank you
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sun Dec 30, 2007 8:35 pm    Post subject: Reply with quote

Since you are not very clear about what exactly it is that you need the bot to do, I suggest you alter this default script found in your conf file to suit your needs.
Code:
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}
If you need more help, you will need to be much more specific about what you require.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Sun Dec 30, 2007 9:02 pm    Post subject: Reply with quote

Thank you YooHoo. Sorry about my poor explanation.

In my channel at irchighway network I just disabled the autoop and autoadmin in chanserv (/chanserv levels #zegames disable autoadmin ....). Users in access list never get op and admin status automatically by chanserv.

Then, I want that my bot auto get admin and op status when it joined the channel. Because many times the bot lost connection and when it back never get admin and op status itself.

sorry my poor english
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Mon Dec 31, 2007 10:10 am    Post subject: Reply with quote

I use a script that i wrote to do something simlar to this for one of my bots. I may be able to adapt it for you to use, if would like to give it a try. I only need to know how the bot would get op/admin status from the services on the network?
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Mon Dec 31, 2007 4:46 pm    Post subject: Reply with quote

Nice TCL_no_TK, share with us. Here the chanserv commands:

admin:

Code:
chanserv admin #channel nick


op:

Code:
chanserv op #channel nick


Thank you
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Mon Dec 31, 2007 6:47 pm    Post subject: Reply with quote

Try:

Code:
bind need - {#mychannel *} proc:need

proc proc:need {channel type} {
    global botnick
    if {$type == "op"} {
        putquick "PRIVMSG chanserv :admin $channel $botnick"
        return 1
    }
}

_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Tue Jan 01, 2008 11:53 am    Post subject: Reply with quote

found a script Razz that dose this: http://forum.purehype.net/phpBB3/viewtopic.php?f=36&t=16&p=16#p16 Very Happy
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Tue Jan 01, 2008 3:11 pm    Post subject: Reply with quote

Tosser^^ wrote:
Try:

Code:
bind need - {#mychannel *} proc:need

proc proc:need {channel type} {
    global botnick
    if {$type == "op"} {
        putquick "PRIVMSG chanserv :admin $channel $botnick"
        return 1
    }
}


Thanks a lot man, work like an charm Wink
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