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.

Okay a few questions please...

Help for those learning Tcl or writing their own scripts.
Post Reply
b
bluenzo
Voice
Posts: 3
Joined: Thu Dec 11, 2008 5:29 am

Okay a few questions please...

Post by bluenzo »

I got my bot to oper itself... Now I need it to +qa itself when it joins a room...

I have no idea how to do that :|

Also... Two things...
1) My bot give itself +o onjoin on 2 rooms (1 minute after joining? is there a way to make it faster?), but not the other two??


Code: Select all

    channel add #Services {
      chanmode "+nt"
      idle-kick 0
      stopnethack-mode 0
      revenge-mode 0
      ban-time 120
      exempt-time 60
      invite-time 60
      aop-delay 5:30
      need-op { putserv "MODE #Services +qa BlueBot" }
      need-invite { putserv "INVITE #Services BlueBot" }
      need-key { putserv "INVITE #Services BlueBot" }
      need-unban { putserv "INVITE #Services BlueBot" }
      need-limit { putserv "INVITE #Services BlueBot" }
      flood-chan 10:60
      flood-deop 3:10
      flood-kick 3:10
      flood-join 5:60
      flood-ctcp 3:60
      flood-nick 5:60
    }
    channel add #Opers {
      chanmode "+nt"
      idle-kick 0
      stopnethack-mode 0
      revenge-mode 0
      ban-time 120
      exempt-time 60
      invite-time 60
      aop-delay 5:30
      need-op { putserv "MODE #Opers +qa BlueBot" }
      need-invite { putserv "INVITE #Opers BlueBot" }
      need-key { putserv "INVITE #Opers BlueBot" }
      need-unban { putserv "INVITE #Opers BlueBot" }
      need-limit { putserv "INVITE #Opers BlueBot" }
      flood-chan 10:60
      flood-deop 3:10
      flood-kick 3:10
      flood-join 5:60
      flood-ctcp 3:60
      flood-nick 5:60
    }
    channel add #Help {
      chanmode "+nt"
      idle-kick 0
      stopnethack-mode 0
      revenge-mode 0
      ban-time 120
      exempt-time 60
      invite-time 60
      aop-delay 5:30
      need-op { putserv "MODE #Help +qa BlueBot" }
      need-invite { putserv "INVITE #Help BlueBot" }
      need-key { putserv "INVITE #Help BlueBot" }
      need-unban { putserv "INVITE #Help BlueBot" }
      need-limit { putserv "INVITE #Help BlueBot" }
      flood-chan 10:60
      flood-deop 3:10
      flood-kick 3:10
      flood-join 5:60
      flood-ctcp 3:60
      flood-nick 5:60
    }
    channel add #Main {
      chanmode "+nt"
      idle-kick 0
      stopnethack-mode 0
      revenge-mode 0
      ban-time 120
      exempt-time 60
      invite-time 60
      aop-delay 5:30
      need-op { putserv "MODE #Main +qa BlueBot" }
      need-invite { putserv "INVITE #Main BlueBot" }
      need-key { putserv "INVITE #Main BlueBot" }
      need-unban { putserv "INVITE #Main BlueBot" }
      need-limit { putserv "INVITE #Main BlueBot" }
      flood-chan 10:60
      flood-deop 3:10
      flood-kick 3:10
      flood-join 5:60
      flood-ctcp 3:60
      flood-nick 5:60
    }
#Main and #Help, the bot gives itself +o after 1 minute of joining...
It doesnt op itself (i want +qa not +o) in #Opers and #Services

Also... how do I properly use need-unban?? The bot is netadmin so I was thinking of inviting itself to the channel to bypass the ban...then joining the room...

I tried searching for need-unban i couldnt find exactly what I wanted...
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Use the dcc command '.chanset' to change channel settings. If you do it using a script, the settings will be overwritten by what is saved in your .chan file. (or, if you insist on doing it like that, kill the bot, delete the chan file and start it back up when ever you make changes :P)
Have you ever read "The Manual"?
b
bluenzo
Voice
Posts: 3
Joined: Thu Dec 11, 2008 5:29 am

Post by bluenzo »

ok ty ill play around :P
Post Reply