I wonder if whatever network your bot is on, has some sort of Nickserv or Chanserv commands to do this.marvz wrote:Hello. My bot is in my group for chan access and its a SOP. I want the bot to deop itself and voice itself of staying on the chan as an op. The reason I don't add it to the AOP list or just a voice list is because as a SOP nobody can mess with it unless they have admin authority. So, I looked in the tcl archives and couldn't find anything that would do what I am interested in. I'm sure its an easy thing or that I might've overlooked something so I apologize in advance for the rookie requests Thanks in advance for any help or suggestions.
If this is what you really want, then this is what should be addressed.marvz wrote: ...
I'm looking to have the bot perform this automatically because if one of the other admins isn't around the bot would sit in the chan as a SOP. I want to avoid this beause we had a split the other day and when users joined the chat that had the aol (no pun intended) flags it kept trying to op them even though the hadn't identified through nickserv so it was basically a war between the bot and chanserv.
SO at this point I'm drawing a blank as to how to get the bot to autimatically perform these actions to avoid that happening.
do .help whois to get a list of all the flags.a - autoop (user is opped automatically upon joining the channel)
That's what I meant by the bot fighting with chanserv. Since the user is not identified with nickserv chanserv doesn't allow the user to be oppped even though they're on the AOP/SOP list.23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
marvz wrote:This is what would happen since the user was not identified with nickserv:
That's what I meant by the bot fighting with chanserv.23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
[23:00] #spf: mode change '+o ddog' by beersnob!beersnob@look-random-characters-D3DDEC9A.dsl.irvnca.pacbell.net
[23:00] #spf: mode change '-o ddog' by ChanServ!services@irc4lyf.com
...
The network that I hang on mostly, doesn't do that. You can be op'd with no problems.Since the user is not identified with nickserv chanserv doesn't allow the user to be oppped even though they're on the AOP/SOP list.
Code: Select all
/msg botnick op <password> [channel]
Code: Select all
/msg chanserv help set secureops
Code: Select all
# Upon joining, bot will remove its own SOP, then remove the remaining OP.
# Bot will then VOICE itself
# There are two commands available (for +o users of the bot) - both are via /msg to the bot.
#
# /msg <botnick> !resop
# will cause the bot to regain its SOP status
#
# /msg <botnick> !desop
# will cause the bot to remove its own SOP, then remove OP, and voice itself. (Same as when it joined)
#
#
### Config
# Set the channel
set desop_chan "#spf"
# Set the mask of the bot. You may need to use wildcards.
# format is: nick!user@host
set botmask "beersnob!beersnob@*.dsl.irvnca.pacbell.net"
### End Config
### script
bind join - "$desop_chan $botmask" bot_desop_itself
bind msg o "!resop" resop
bind msg o "!desop" msg:bot_desop_itself
proc bot_desop_itself {nick uhost handle chan} {
global botnick
putserv "mode $chan -a $botnick"
putserv "mode $chan -o $botnick"
putserv "privmsg chanserv :voice $chan $botnick"
}
proc resop {nick uhost handle text} {
set chan [lindex [split $text] 0]
putserv "privmsg nickserv :logout"
putserv "privmsg nickserv :identify rowbot"
}
proc msg:bot_desop_itself {nick uhost handle text} {
global desop_chan
bot_desop_itself $nick $uhost $handle $desop_chan
}
I believe the change is immediate.marvz wrote:willyw:
...
I removed the a flag on the users and left them with the o flag and the bot still did the same thing. I thought it might've been something that would need a restart or something but, even though I restarted it, the bot kept doing it. Is there a certain time frame that the bot needs in order for it to implement the changes?
You're welcome.I'll try the script tonight and report back and let you know how it worked out. Thanks again for the help.
I couldn't do the .whois because I just deleted the users and added them all with the fh flags for the time being while I figured this out.willyw wrote:I believe the change is immediate.marvz wrote:willyw:
...
I removed the a flag on the users and left them with the o flag and the bot still did the same thing. I thought it might've been something that would need a restart or something but, even though I restarted it, the bot kept doing it. Is there a certain time frame that the bot needs in order for it to implement the changes?
Perhaps these users have(had) two +a flags - one global, and for the channel?
Do a .whois <handle> on a few of them, and have a look at both global flags, and channel flags.
Something is causing it - we just need to find it.....
You're welcome.I'll try the script tonight and report back and let you know how it worked out. Thanks again for the help.
I will have to wait for a split or someone that is on the aop/sop lists to do the same mistake again to test that out. I don't have a way to test it without that happening. thanks for the info/suggestion and I'll keep it in mind should this occur again.blake wrote:If your bot is fighting with services on the channel telnet to your bot and type
.chanset #channelname -nodesynch
if your bot has aop/sop on the channel use a set option for it to identify to chanserv on joining the channel
then maybe a small script that will voice it first then deop it chances are that some of the basic access levels are disabled like deopme op deop
willyw if you would like access on a server that will allow you full access i have a test server that i run inbox me if you would like to use it
Code: Select all
[13:30] * beersnob was kicked by marvz (marvz)
[13:30] * beersnob (beersnob@look-random-characters-E150081B.com) has joined #spf
[13:30] * ChanServ sets mode: +ao beersnob beersnob
[13:30] * beersnob sets mode: -a beersnob
[13:30] * beersnob sets mode: -o beersnob
[13:30] * ChanServ sets mode: +v beersnob
[13:30] * marvz sets mode: +o beersnob
[13:30] * marvz sets mode: -o beersnob
[13:31] * marvz sets mode: -v beersnob
[13:31] * marvz sets mode: +v beersnob
[13:31] * marvz sets mode: +o beersnob
[13:31] * marvz sets mode: -o beersnob