on *:TEXT:*:#: {
if ($readini(Settings.ini,Settings,CBotName) isin $me) {
halt
}
if ($ulevel >= 1) {
if ($1 == !addco) {
if ($2 == $me) {
msg $chan $+ $nick $+ $+ , Your channel registration is complete!
cs $chan up
accesslog $1-
}
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ access) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
if (!$2) {
set %ulevel $level($address($nick,2))
useraccess
}
if ($2) {
set %ulevel $level($address($2,2))
set %user $2
useraccess2
}
}
if ($1 == $readini(Settings.ini,Settings,PublicTrigger) $+ slots) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
msg $chan Total Slots: %slots / $+ $calc(18*20)
}
if ($1 == $readini(Settings.ini,Settings,PublicTrigger) $+ removeabot) && ($me == $readini(Settings.ini,Settings,HubName)) {
if (!$2) {
msg $chan $+ $nick $+ $+ , Please enter the channel name you wish to un-register!
halt
}
if (!%reg. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , Sorry but that channel is not registered! Please try again, If this is an error please contact a staff member!
halt
}
if (%reg. [ $+ [ $2 ] ]) && ($address($nick,2) !isin %reg. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , That channel is on our registered list, But you are not the owner of that channel, and cannot unregister this channel!
msg $chan %reg. [ $+ [ $2 ] ]
halt
}
if (%reg. [ $+ [ $2 ] ]) && ($address($nick,2) isin %reg. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , Thanks! $readini(Settings.ini,Settings,Service) Will now be removing the bot from your channel! Your history of your channel will be saved for security purposes! All your data will be deleted & Your channel reset! Thanks for using $readini(Settings.ini,Settings,Service)
set %history. $+ $2 %reg. [ $+ [ $2 ] ] BOT REMOVED: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz) $+
unset %reg. [ $+ [ $2 ] ]
msg $readini(Settings.ini,Settings,StaffChannel) @removethebot $2 $nick
set %slots $calc(%slots - 1)
halt
}
}
}
if ($ulevel >= 500) {
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ dump) {
if (!$2) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
msg $chan $+ $nick $+ $+ , You must enter a raw command to send!
halt
}
if ($2) {
$eval($2-,2)
logger $1-
}
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ dump_ $+ $me) {
if (!$2) {
msg $chan $+ $nick $+ $+ , You must enter a raw command to send!
halt
}
if ($2) {
$eval($2-,2)
msg $readini(Settings.ini,Settings,StaffChannel) Admin Command: $1- Issued By: $nick
}
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ system) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
msg $chan System Version: $+ $readini(Settings.ini,Settings,BotVersion) $+
msg $chan Service: $+ $readini(Settings.ini,Settings,Service) $+
msg $chan Admin Trigger: $+ $readini(Settings.ini,Settings,AdminTrigger) $+
msg $chan Custom Bots Trigger: $+ $readini(Settings.ini,Settings,CAdminTrigger) $+
msg $chan Public Trigger: $+ $readini(Settings.ini,Settings,PublicTrigger) $+
msg $chan Uptime: $+ $duration($uptime) $+
logger $1-
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ adduser) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
if (!$2) {
msg $chan $+ $nick $+ $+ , Please enter the user's name or address!
halt
}
if (!$3) {
msg $chan $+ $nick $+ $+ , Please enter the user's access level you wish to give!
halt
}
if ($2 ison $chan) && (*!* !isin $2) {
auser $3 $address($2,2)
cs $readini(Settings.ini,Settings,Channel) adduser $2 $3
cs $readini(Settings.ini,Settings,Channel) clvl $2 $3
cs $readini(Settings.ini,Settings,Channel) resync
msg $chan $+ $nick $+ $+ , That user has been added as access: $+ $3 $+ ( $+ $address($2,2) $+ )
logger $1-
halt
}
if ($2 !ison $chan) && (*!* !isin $2) {
msg $chan $+ $nick $+ $+ , I cannot find that user on this channel! Try adding there address: *!*@<IDent>.<Title>.Gamesurge
logger $1-
}
if ($2 !ison $chan) && (*!* isin $2) {
auser $3 $2
cs $readini(Settings.ini,Settings,Channel) adduser $2 $3
cs $readini(Settings.ini,Settings,Channel) resync
msg $chan $+ $nick $+ $+ , That user has been added as access: $+ $3 $+ ( $+ $2 $+ )
logger $1-
halt
}
}
}
if ($1 == @sendthebot_ $+ $me) && ($nick == AdminServ) {
join $2
msg $3 Congratulations! Your now have your very own $readini(Settings.ini,Settings,Service) $+ ! Please type !addco $me In your channel now!
msg $3 As a bonus, You do recive voice in $readini(Settings.ini,Settings,Channel) for registering $me to your channel, Please give ChanServ a moment to add you!
cs $readini(Settings.ini,Settings,Channel) addpeon $3
cs $readini(Settings.ini,Settings,Channel) resync
}
if ($1 == @removethebot) && ($nick == AdminServ) {
if ($me ison $2) {
msg $3 I will now be parting your channel, You may delete my access if you like by typing !deluser $me $+ , Removing me from your channel will have your 100 access removed from $readini(Settings.ini,Settings,Channel) $+ !
msg $3 Thanks for using $+ $readini(Settings.ini,Settings,Service) $+ $+ !
part $2
msg $readini(Settings.ini,Settings,StaffChannel) Event: REMOVEBOT Issued By: $3 Action Taken: Left Channel & Created History!
}
}
if ($ulevel >= 400) {
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ chaninfo) {
if (!%reg. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , That channel is not registered, Try using: $readini(Settings.ini,Settings,AdminTrigger) $+ history $2
halt
}
if ($me ison $2) {
set %chan $2
set %mchan $chan
msg $chan $+ $nick $+ $+ , Channel Info For $2
msg $chan Users: $+ $nick($2,0) $+ (Required 10 Without ChanServ)
myaccess
chanservreg
logger $1-
}
}
}
if ($ulevel >= 300) {
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ checkchans) {
set %schan $chan
logger $1-
checkusers1
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ checkaccess) {
set %schan $chan
logger $1-
checkaccess1 $chan
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ chanlist) && ($me !== $readini(Settings.ini,Settings,SystemBot)) && ($me !== $readini(Settings.ini,Settings,HubName)) {
msg $chan $chans
logger $1-
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ history) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
if (!$2) {
msg $chan $+ $nick $+ $+ , You must enter a channel name to check history!
halt
}
if ($2) {
if (!%reg. [ $+ [ $2 ] ]) {
msg $chan Registration History: None
}
if (!%dnr. [ $+ [ $2 ] ]) {
msg $chan DNR History: None
}
if (!%history. [ $+ [ $2 ] ]) {
msg $chan Channel History: None
}
if (%reg. [ $+ [ $2 ] ]) {
msg $chan Registration History: %reg. [ $+ [ $2 ] ]
}
if (%dnr. [ $+ [ $2 ] ]) {
msg $chan DNR History: %dnr. [ $+ [ $2 ] ]
}
if (%history. [ $+ [ $2 ] ]) {
msg $chan Channel History: %history. [ $+ [ $2 ] ]
}
logger $1-
}
}
}
if ($ulevel >= 200) {
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ dnradd) && ($me == $readini(Settings.ini,Settings,HubName)) {
if (%dnr. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , That DNR is already active, To remove it type @dnrdel $2
halt
}
if (!$2) {
msg $chan $+ $nick $+ $+ , Enter a channel name & reason you wish to put a DNR on this channel!
halt
}
if (!$3) {
msg $chan $+ $nick $+ $+ , Enter a channel name & reason you wish to put a DNR on this channel!
halt
}
set %dnr. $+ $2 ( $+ $3- $+ ) PLACED BY: $nick ( $+ $address($nick,2) $+ ) DURATION: None Decided
msg $chan $+ $nick $+ $+ , DNR (Do Not Register) Is now in place for $2 , No one will be able to register that channel untill the DNR is removed!
logger $1-
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ dnrdel) && ($me == $readini(Settings.ini,Settings,HubName)) {
if (!%dnr. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , That DNR does not exsist, To add it type @dnradd $2 Reason
halt
}
if (!$2) {
msg $chan $+ $nick $+ $+ , Enter a channel name you wish to remove the DNR from
halt
}
unset %dnr. [ $+ [ $2 ] ]
msg $chan $+ $nick $+ $+ , DNR (Do Not Register) has been removed for $2 , That channel is now open for registrations!
logger $1-
}
if ($1 == $readini(Settings.ini,Settings,AdminTrigger) $+ regchan) && ($me == $readini(Settings.ini,Settings,HubName)) {
if (!$2) {
msg $chan $+ $nick $+ $+ , You must enter a channel name, owner of bot, bot number. example: $readini(Settings.ini,Settings,AdminTrigger) $+ regchan #Kastro Kastro AdminServ-20
halt
}
if (!$3) {
msg $chan $+ $nick $+ $+ , You must enter a channel name, owner of bot, bot number. example: $readini(Settings.ini,Settings,AdminTrigger) $+ regchan #Kastro Kastro AdminServ-20
halt
}
if (!$4) {
msg $chan $+ $nick $+ $+ , You must enter a channel name, owner of bot, bot number. example: $readini(Settings.ini,Settings,AdminTrigger) $+ regchan #Kastro Kastro AdminServ-20
halt
}
if (%reg. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , Sorry but that channel is already on the REGISTERED list;
msg $chan %reg. [ $+ [ $2 ] ]
halt
}
set %reg. $+ $2 BOT: $4 USER: $3 ADDRESS: $address($3,2) TIME & DATE: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz)
msg $chan $+ $3 $+ $+ , Your application for $2 has been approved! $readini(Settings.ini,Settings,Service) will be sending you $4 to your channel right now. You should receive an important message from me in a private message window.
msg $readini(Settings.ini,Settings,StaffChannel) @sendthebot_ $+ $4 $2 $3
set %slots $calc(%slots + 1)
logger $1-
}
}
}
on *:KICK:#: {
if ($knick == $me) {
if ($chan !== $readini(Settings.ini,Settings,Channel)) && ($chan !== $readini(Settings.ini,Settings,StaffChannel)) {
set %kchan $chan
set %knick $nick
set %kreason $1-
msg $readini(Settings.ini,Settings,StaffChannel) Kick Report: Channel: %kchan Kicker: %knick Reason: %kreason Action Taken: Channel Added To DNR!
set %dnr. $+ %kchan (Abusing Bots: Due to you kicked the bot) USER: ( $+ %knick $+ ) HOST: ( $+ $address(%knick,2) $+ ) BOT KICKED: $me
set %history. $+ $2 %reg. [ $+ [ $2 ] ] BOT REMOVED: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz) $+
unset %reg. [ $+ [ %kchan ] ]
set %slots $calc(%slots - 1)
}
}
}
alias chans {
var %chans
var %p 1
while (%p <= $chan(0)) {
set %chans %chans $chan(%p)
inc %p
}
return $iif($remove(%chans,#AdminServ,-Staff),$v1)
}
alias checkusers1 {
var %p 1
while (%p <= $chan(0)) {
checkusers $chan(%p)
inc %p
}
}
alias checkaccess1 {
var %p 1
while (%p <= $chan(0)) {
checkaccess $chan(%p)
inc %p
}
}
alias checkaccess {
cs $1 a
if (% [ $+ [ $1 ] $+ ] . [ $+ [ $me ] ] <= 399) {
msg %schan Channel Problem ( $+ $1 $+ ) --> Access Problem ( $+ % [ $+ [ $1 ] $+ ] . [ $+ [ $me ] ] / 400 $+ )
}
unset % [ $+ [ $1 ] $+ ] . [ $+ [ $me ] ]
}
alias checkusers {
if ($nick($1,0) <= 10) {
msg %schan Channel Problem ( $+ $1 $+ ) --> User Count Low ( $+ $nick($1,0) / 10 $+ )
}
if (ChanServ !ison $1) {
msg %schan Channel Problem ( $+ $1 $+ ) --> Not Registered With ChanServ
}
}
alias myaccess {
cs %chan a $me
cs %chan a $me
msg %mchan My Access: %access (400+ Access Is Needed)
}
alias chanservreg {
if (ChanServ !ison %chan) {
msg %mchan ChanServ: No (ChanServ Is Required To Be In Channel)
halt
}
if (ChanServ ison %chan) {
msg %mchan ChanServ: Yes (ChanServ Is Required To Be In Channel)
halt
}
}
on *:TEXT:*:#: {
if ($1 == $readini(Settings.ini,Settings,PublicTrigger) $+ commands) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
msg $chan Commands: $readini(Settings.ini,Settings,PublicTrigger) $+ getabot - $readini(Settings.ini,Settings,PublicTrigger) $+ removeabot - $readini(Settings.ini,Settings,PublicTrigger) $+ slots - $readini(Settings.ini,Settings,PublicTrigger) $+ about
}
if ($1 == $readini(Settings.ini,Settings,PublicTrigger) $+ about) && ($me == $readini(Settings.ini,Settings,SystemBot)) {
msg $chan $readini(Settings.ini,Settings,Service) is a Channel Managment Bot that allows to control your channel as easy as pushing a button, The bot is going to be 80% Editable meaning you can change the way your bot says hello to joining guests.
msg $chan In the near future the staff will add needed commands such as SteamID search, google search, Bash quotes, And many more fun services.
}
if ($1 == .apply) && ($me == $readini(Settings.ini,Settings,HubName)) {
msg $chan $+ $nick $+ $+ , To apply for your own Bot, Please type $readini(Settings.ini,Settings,PublicTrigger) $+ getabot #Channel Please note, Your channel must meet the requirments! To see these requirments type $readini(Settings.ini,Settings,PublicTrigger) $+ req
}
if ($1 == .getabot) && ($me == $readini(Settings.ini,Settings,HubName)) {
msg $chan $+ $nick $+ $+ , To apply for your own Bot, Please type $readini(Settings.ini,Settings,PublicTrigger) $+ getabot #Channel Please note, Your channel must meet the requirments! To see these requirments type $readini(Settings.ini,Settings,PublicTrigger) $+ req
}
if ($1 == -getabot) && ($me == $readini(Settings.ini,Settings,HubName)) {
msg $chan $+ $nick $+ $+ , To apply for your own Bot, Please type $readini(Settings.ini,Settings,PublicTrigger) $+ getabot #Channel Please note, Your channel must meet the requirments! To see these requirments type $readini(Settings.ini,Settings,PublicTrigger) $+ req
}
if ($1 == -apply) && ($me == $readini(Settings.ini,Settings,HubName)) {
msg $chan $+ $nick $+ $+ , To apply for your own Bot, Please type $readini(Settings.ini,Settings,PublicTrigger) $+ getabot #Channel Please note, Your channel must meet the requirments! To see these requirments type $readini(Settings.ini,Settings,PublicTrigger) $+ req
}
if ($1 == $readini(Settings.ini,Settings,PublicTrigger) $+ getabot) && ($me == $readini(Settings.ini,Settings,HubName)) {
if (%suspended. [ $+ [ $address($nick,2) ] ]) {
msg $chan $+ $nick $+ $+ , Sorry but your address ( $+ $address($nick,2) $+ ) is on our Suspended Users List;
msg $chan %suspended. [ $+ [ $address($nick,2) ] ]
halt
}
if (!$2) {
msg $chan $+ $nick $+ $+ , To apply for your own Bot, Please type $readini(Settings.ini,Settings,PublicTrigger) $+ getabot #Channel Please note, Your channel must meet the requirments! To see these requirments type $readini(Settings.ini,Settings,PublicTrigger) $+ req
halt
}
if ($chr(35) !isin $2) {
msg $chan $+ $nick $+ $+ , Please enter the channel name correctly: @getabot $chr(35) $+ $2
halt
}
if (%app.applyzz == 1) {
msg $chan $+ $nick $+ $+ , Please be paitent im with another user, this could take 25 seconds to process his application
halt
}
if (%dnr. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , Sorry but that channel ( $+ $2 $+ ) is on our DNR (Do Not Register) list;
msg $chan REASON: %dnr. [ $+ [ $2 ] ]
halt
}
if (%reg. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , Sorry but that channel is already on the REGISTERED list;
msg $chan %reg. [ $+ [ $2 ] ]
halt
}
if ($chr(44) isin $2) {
set -u86400 %suspended. $+ $address($nick,2) REASON: Registering an illegal channel name $+ $2 $+ SUSPENDED TIME: 24 Hours DATE & TIME: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz)
msg $chan $+ $nick $+ $+ , Sorry but that channel is not allowed to be registered! In doing this your actions has been suspended for 24 Hours! If you belive this in an error please contact the Staff!
logger $1-
halt
}
if (#Support == $2) {
set -u86400 %suspended. $+ $address($nick,2) REASON: Registering an illegal channel name $+ $2 $+ SUSPENDED TIME: 24 Hours DATE & TIME: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz)
msg $chan $+ $nick $+ $+ , Sorry but that channel is not allowed to be registered! In doing this your actions has been suspended for 24 Hours! If you belive this in an error please contact the Staff!
logger $1-
halt
}
if (#GameSurge == $2) {
set -u86400 %suspended. $+ $address($nick,2) REASON: Registering an illegal channel name $+ $2 $+ SUSPENDED TIME: 24 Hours DATE & TIME: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz)
msg $chan $+ $nick $+ $+ , Sorry but that channel is not allowed to be registered! In doing this your actions has been suspended for 24 Hours! If you belive this in an error please contact the Staff!
logger $1-
halt
}
if (#Registration == $2) {
set -u86400 %suspended. $+ $address($nick,2) REASON: Registering an illegal channel name $2 SUSPENDED TIME: 24 Hours DATE & TIME: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz)
msg $chan $+ $nick $+ $+ , Sorry but that channel is not allowed to be registered! In doing this your actions has been suspended for 24 Hours! If you belive this in an error please contact the Staff!
logger $1-
halt
}
if (#Welcome == $2) {
set -u86400 %suspended. $+ $address($nick,2) REASON: Registering an illegal channel name $+ $2 $+ SUSPENDED TIME: 24 Hours DATE & TIME: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz)
msg $chan $+ $nick $+ $+ , Sorry but that channel is not allowed to be registered! In doing this your actions has been suspended for 24 Hours! If you belive this in an error please contact the Staff!
logger $1-
halt
}
if (!%reg. [ $+ [ $2 ] ]) {
msg $chan $+ $nick $+ $+ , I am checking your requirements, for $2 This can take up to 25 seconds for me to finish.
logger $1-
set %app.nick $nick
set %app.timed $rand(10,25)
set %app.chan $2
set %app.chan.active $chan
set -u26 %app.applyzz 1
cs %app.chan a %app.nick
join $2
cs $2 a $nick
timerapps 1 %app.timed checkchan
}
}
}
alias checkchan {
if (ChanServ !ison %app.chan) {
part %app.chan
msg %app.chan.active $+ %app.nick $+ $+ , Your channel failed to meet the following requirments: Channel is not registered with ChanServ
halt
}
if (%app.nick !ison %app.chan) {
part %app.chan
msg %app.chan.active $+ %app.nick $+ $+ , Your channel failed to meet the following requirments: You are not on the channel
halt
}
if ($calc($nick(%app.chan,0) - 2) < 10) {
part %app.chan
msg %app.chan.active $+ %app.nick $+ $+ , Your channel failed to meet the following requirments: Channel does not have greater then or equal to 10 idlers. (Not including Me or ChanServ)
halt
}
if (%access <= 401) {
part %app.chan
msg %app.chan.active $+ %app.nick $+ $+ , Your channel failed to meet the following requirments: You dont have greater then or equal to 401 access
halt
}
part %app.chan
selectbot
set %reg. $+ %app.chan BOT: %bot.selected USER: %app.nick ADDRESS: $address(%app.nick,2) TIME & DATE: $asctime(ddd mmm dd yyyy @ hh:nn TT zzz)
msg %app.chan.active $+ %app.nick $+ $+ , Your application for %app.chan has been approved! $readini(Settings.ini,Settings,Service) will be sending you %bot.selected to your channel right now. You should receive an important message from me in a private message window.
msg $readini(Settings.ini,Settings,StaffChannel) @sendthebot_ $+ %bot.selected %app.chan %app.nick
set %slots $calc(%slots + 1)
}
on *:NOTICE:*:?: {
if ($nick == ChanServ) {
if ($3 == has) {
set %access $strip($5,b)
set -u15 % $+ $remove($7,.) $+ . $+ $1 $strip($5,b)
halt
}
if ($5 == to) {
set -u15 % $+ $remove($6,.) $+ . $+ $1 0
halt
}
if ($5 == registered) {
set -u15 % $+ $1 $+ . $+ $me 0
halt
}
}
}
alias selectbot {
set -u60 %bot.number $rand(1,20)
if (%bot.number <= 9) {
set %bot.selected $readini(Settings.ini,Settings,BotName) $+ 0 $+ %bot.number
}
if (%bot.number >= 10) {
set %bot.selected $readini(Settings.ini,Settings,BotName) $+ %bot.number
}
}