Copyright © 2010 – Brandin Arsenault, Known Syntax – BOINC Services, Int. – All rights reserved.
Editing of this script is allowed.
This script is originally from the iKnown IRC Bot which is now discontinued.
-
This script is sort of like the !ns script I made. This is so if you ever have your bot released to more then 1 network instead of having to teamviewer, remote desktop, etc. into the bots pc you can just do this so it registers the channel. Just replace the following things in this message below.
Replace:
KEY - With the key you want on the channel. (i.e. mypassBLAH)
DESCRIPTION - With the description for the channel. (i.e. iKnown IRC Bot's Channel)
YourNick - The owner of the bots nick so you get founder access to the channel as well.
-
Commands:
!regchan BOTNICK - Replace 'BOTNICK' with the BOTNICK you have in the script itself.
on *:TEXT:!regchan BOTNICK:#: {
if ($nick isop $chan) {
if ($chan) {
cs register #Botchan KEY DESCRIPTION
cs SET #Botchan XOP OFF
cs access #Botchan add YourNick 9999
cs SET #Botchan XOP ON
cs SYNC #Botchan
}
}
}