rendered paste bodyalias findscrim {
if ((%players != $null) && (%league != $null) && (%serverowner != $null) && (%location != $null) && (%map != $null)) {
if (%players < 5) {
/set %findscrim 1
/timerfindscrim 0 35 /msg #findscrim %scrimad
/j #findscrim
/msg %monchannel 3,1Scrim0Bot 9started0. Advertising in 3#findscrim 4only
}
if (%players == 5) {
/set %findscrim 1
/j #calscrim
/j #findscrim
/timercalscrim 0 35 /msg #calscrim %scrimad
/timerfindscrim 0 35 /msg #findscrim %scrimad
/msg %monchannel 3,1Scrim0Bot 9started0. Advertising in 3#calscrim 0and 3#findscrim
}
}
}
alias scrimad {
if (%notes == $null) {
%scrimad = 3,1(9(0Clan Oz9) 0·9,1 %players 0vs9 %players 0·4 %serverowner %location 0·3 %league 0·9 %map 3,1)
}
if (%notes != $null) {
%scrimad = 3,1(9(0Clan Oz9) 0·9,1 %players 0vs9 %players 0·4 %serverowner %location 0·3 %league 0·9 %map 0,1:4 %notes 3,1)
}
}
alias ringerad {
if (%ringernotes == $null) {
%ringerad = 3,1(9,1( 0Clan Oz 0- 4NEED 1 ringer 0-3 %rlocation 0- %rleague 9)3)
}
if (%ringernotes != $null) {
%ringerad = 3,1(9,1( 0Clan Oz 0- 4NEED 1 ringer 0-3 %rlocation 0- %rleague 3:9 %ringernotes 9)3)
}
}
alias stopscrim {
/timerfindscrim off
/timercalscrim off
/part #calscrim
/part #findscrim
/set %findscrim 0
/rlevel -r 2
/msg %monchannel 3,1Scrim0Bot 4stopped0.
}
alias findringer {
if ((%findringer > 0) && (%rleague != $null) && (%rlocation != $null)) {
/ringerad
/j #findringer
/timerfindringer 0 30 /msg #findringer %ringerad
}
else {
/stopringer
}
}
alias stopringer {
/part #findringer
/timerfindringer off
/set %findringer 0
/rlevel -r 2
/msg %monchannel 9,1Ringer 0Ad 4stopped.
}
alias voteresults {
/msg %votechan Voting ended. Results : Vote 1 - %vote1 Vote 2 - %vote2
/set %voting 0
}
on 1:JOIN:%monchannel: {
;/notice $nick %greeting
}
on 1:TEXT:.commands:%monchannel: {
/notice $nick Commands: .roster .servers .leagues .record .website
}
on 1:TEXT:.servers:%monchannel: {
/notice $nick $+(,%color2,Servers:) %servers
}
on 1:TEXT:.roster:%monchannel: {
/notice $nick $+(,%color2,Roster:) %roster
}
on 1:TEXT:.leagues:%monchannel: {
/notice $nick $+(,%color2,Leagues:) %leagues
}
on 1:TEXT:.record:%monchannel: {
/notice $nick $+(,%color2,Record:) %record
}
on 1:TEXT:.website:%monchannel: {
/notice $nick $+(,%color2,Website:) %website
}
on 3:TEXT:.findscrim:%monchannel: {
/set %reqscrim $nick
/findscrim
}
on 3:TEXT:.stopscrim:%monchannel: {
/stopscrim
}
on 3:TEXT:.findringer*:%monchannel: {
if ($2) {
/set %findringer $2
/findringer
/msg %monchannel 3,1Ringer 0Ad 9started. 3Advertising in 0#findringer 4only
}
else {
/set %findringer 1
/findringer
/msg %monchannel 3,1Ringer 0Ad 9started. 3Advertising in 0#findringer 4only
}
}
on 3:TEXT:.stopringer:%monchannel: {
/stopringer
}
on 3:TEXT:.scrimad:%monchannel: {
/msg %monchannel %scrimad
}
on 3:TEXT:.ringerad:%monchannel: {
/msg %monchannel %ringerad
}
on 3:TEXT:.invite*:%privchannel: {
/invite $2 %privchannel
}
on @3:TEXT:.mute*:#: {
if ($2) {
/mode $chan -ov $2
/guser -a 4 $2 2
if ($3) {
/set %silenced $3
}
else {
/set %silenced 30
}
/set %silencer $nick
/timer 1 %silenced /ruser 4 $2 2
/msg $chan $2 has been muted and cannot speak for %silenced seconds or else he/she will be banned
}
else {
/mode $chan +m
/msg $chan Channel has been moderated by $nick
}
}
on @3:TEXT:.set vote*:%privchannel: {
/msg $chan !topic $3-
/msg $chan Vote has been started by $nick Everybody in $chan is encouraged to vote. Voting ends in 45 seconds.
/msg $chan You may vote publicly by typing .vote 1 or .vote 2 or you may whisper me your vote privately
/timer 1 30 /msg $chan Voting ends in 15 seconds
/timer 1 40 /msg $chan Voting ends in 5 seconds
/timer 1 45 /voteresults
/set %votechan $chan
/set %vote1 0
/set %vote2 0
/set %voting 1
}
on +3:TEXT:.vote*:%privchannel: {
if (($2 && %voting == 1)) {
if ($2 == 1) {
%vote1 = %vote1 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
/timer 1 45 /guser -a 3 $nick 2
}
else if ($2 == 2) {
%vote2 = %vote2 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
/timer 1 45 /guser -a 3 $nick 2
}
else if (!$2) {
/notice $nick Incorrect format. Please type .vote 1 or .vote 2
}
}
else if (!$2) {
/msg $nick Incorrect format. Please type .vote 1 or .vote 2
}
else {
/notice $nick No vote currently running
}
}
on +1:TEXT:.vote*:%privchannel: {
if (($2 && %voting == 1)) {
if ($2 == 1) {
%vote1 = %vote1 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
}
else if ($2 == 2) {
%vote2 = %vote2 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
}
else if (!$2) {
/notice $nick Incorrect format. Please type .vote 1 or .vote 2
}
}
else if (!$2) {
/notice $nick Incorrect format. Please type .vote 1 or .vote 2
}
else {
/notice $nick No vote currently running
}
}
on +4:TEXT:*:%monchannel,%privchannel: {
/msg $nick You are being banned for speaking while silenced
/q chanserv kickban $chan $nick Speaking while silenced by %silencer
}
on @3:TEXT:.unmute*:#: {
if ($2) {
/ruser 4 $2 2
/msg $chan $2 has been unmuted and may speak now.
}
else {
/mode $chan -m
/msg $chan Channel has been un-moderated by $nick
}
}
on 3:TEXT:.set*:%monchannel: {
if (!$2) {
/notice $nick players, league, server, map, location, notes
/notice $nick rlocation, rleague, ringernotes
}
if ($2 == greeting) {
/set %greeting $3-
/msg %monchannel $+(,%color1,Greeting) $+(,%color2,updated)
}
if ($2 == roster) {
/set %roster $3-
/msg %monchannel $+(,%color1,Roster) $+(,%color2,updated)
}
if ($2 == servers) {
/set %servers $3-
/msg %monchannel $+(,%color1,Servers) $+(,%color2,updated)
}
if ($2 == leagues) {
/set %leagues $3-
/msg %monchannel $+(,%color1,Leagues) $+(,%color2,updated)
}
if ($2 == record) {
/set %record $3-
/msg %monchannel $+(,%color1,Record) $+(,%color2,updated)
}
if ($2 == website) {
/set %website $3-
/msg %monchannel $+(,%color1,Website) $+(,%color2,updated)
}
if ($2 == rleague) {
/set %rleague $3
/msg %monchannel $+(,%color1,Set) Ringer League to $+(,%color2,%rleague)
/ringerad
}
if ($2 == rlocation) {
/set %rlocation $3
/msg %monchannel $+(,%color1,Set) Ringer Location to $+(,%color2,%rlocation)
/ringerad
}
if ($2 == ringernotes) {
/set %ringernotes $3-
/msg %monchannel Set Ringer Notes to %ringernotes
/ringerad
}
if ($2 == players) {
/set %players $3
/msg %monchannel Set players to %players
/scrimad
}
if ($2 == league) {
/set %league $3
/msg %monchannel Set league to %league
/scrimad
}
if (($2 == server) && ($3 == your)) {
/set %serverowner Your
/msg %monchannel Set server to theirs
/scrimad
}
if (($2 == server) && ($3 == our)) {
/set %serverowner Our
/msg %monchannel Set server to Ours. Please provide server information via PM
/scrimad
}
if ($2 == map) {
/set %map $3
/msg %monchannel Set map to $3
/scrimad
}
if ($2 == location) {
/set %location $3-
/msg %monchannel Set location to $3-
/scrimad
}
if ($2 == notes) {
/set %notes $3-
/msg %monchannel Set notes to $3-
/scrimad
}
}
on +1:TEXT:*:?: {
if ($1 == %botpass) {
/msg $nick Thank you. User level 3 granted. To list commands available to your access level please type .help
/guser -a 3 $nick 2
}
else if (($nick ison #findringer) && (%findringer > 0) && ($1 != .ring)) {
/msg $nick If you would like to ring please type .ring ONCE for ventrilo information
}
else if (($nick ison #findringer) && (%findringer > 0) && ($1 == .ring)) {
/msg $nick Ventrilo information:
/msg $nick IP: %ventip
/msg $nick Port: %ventport
if (%ventpass != $null) {
/msg $nick Server Pass: %ventpass
}
if (%vchanpass != $null) {
/msg $nick Channel Pass: %vchanpass
}
%findringer = %findringer - 1
/msg %monchannel 3,1Ringer 4found0: (9,1 $nick 0)3,1!
/beep
/guser -a 2 $nick 2
/timer 1 30 /ruser 2 $nick 2
/findringer
}
else if ((%findscrim == 1) && ($1 != .scrim)) {
/msg $nick To scrim please type .scrim
}
else if (($1 == .scrim) && (%findscrim == 1)) {
/guser -a 2 $nick 2
/timer 1 30 /ruser 2 $nick 2
if (%serverowner == our) {
/msg $nick Server IP is: %serverip
/msg $nick Please check the IP given. You have 30 seconds to accept. If you accept please type .accept to confirm and recieve the password or type .cancel to cancel
}
else {
/msg $nick Please enter IP and password (connect x.x.x.x:port;password serverpassword) to scrim. You have 30 seconds before the offer expires.
}
}
else if (($1 == .accept) || ($1 == .ring) || ($1 == .cancel)) {
/msg $nick Already found
}
else if ($1 == .help) {
/msg $nick There are no commands available to your access level. To login please type .login
}
else if ($1 == .login) {
/msg $nick Please enter a valid password. For help on commands that are available to you please type .help
}
else if ($1 == .vote) {
if (($2 && %voting == 1)) {
if ($2 == 1) {
%vote1 = %vote1 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
}
else if ($2 == 2) {
%vote2 = %vote2 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
}
else if (!$2) {
/notice $nick Incorrect format. Please type .vote 1 or .vote 2
}
}
else if (!$2) {
/notice $nick Incorrect format. Please type .vote 1 or .vote 2
}
else {
/notice $nick No vote currently running
}
}
else {
/msg $nick I am an unmonitered bot. I can not and will not respond. Repeated abuse/spam will result in being ignored permanently
}
}
on +2:TEXT:*:?: {
/close -m
if (($1 == .accept) && (%findscrim == 1)) {
/msg $nick Password is %serverpw
%connectstr = $+(%serverip,;,password)
/msg $nick connect %connectstr %serverpw
/msg $nick Thank you. See you in-game :)
/msg %monchannel Scrim accepted by ( $nick )
/beep
/stopscrim
}
if (($1 == connect) && (%findscrim == 1) && ((password isin $2) || (password isin $3)) && ($3)) {
/set %connectstr $1-
/msg $nick Thank you. See you in-game :)
/msg %monchannel Scrim submitted by ( $nick )
/msg %reqscrim %connectstr
/beep
/stopscrim
}
if (($1 == connect) && (%findscrim == 1) && (!$3)) {
/msg $nick Incorrect format. Please type connect ip:port;password passgoeshere
}
if (($1 == .cancel) && (%findscrim == 1)) {
/msg $nick Cancelled. You will have to type .scrim again to start over
/ruser 2 $nick 2
}
if ($1 == .ring) {
/msg $nick Ventrilo information:
/msg $nick IP: %ventip
/msg $nick Port: %ventport
if (%ventpass != $null) {
/msg $nick Server Pass: %ventpass
}
if (%vchanpass != $null) {
/msg $nick Channel Pass: %vchanpass
}
}
if ($1 == .vote) {
/msg $nick Sorry you have already voted
}
}
on +3:TEXT:*:?: {
/close -m
if ($1 == .logout) {
/msg $nick User logged out. Level 3 priveleges removed
/ruser 3 $nick 2
}
if ($1 == .inviteme) {
/invite $nick %privchannel
}
if (($1 == .help) && (!$2)) {
/msg $nick --Commands-- for more info type .help command
/msg $nick inviteme logout set unset
}
if (($1 == .help) && ($2 == inviteme)) {
/msg $nick --Inviteme--
/msg $nick Invites user to join the private channel stored in privchannel. Like almost all bot commands only available to level 3 users
}
if (($1 == .help) && ($2 == set)) {
/msg $nick --Set--
/msg $nick Stores information to a variable such as serverip or serverpw
}
if (($1 == .help) && ($2 == unset)) {
/msg $nick --Unset--
/msg $nick Clears information from a variable such as ventpw or vchanpass
}
if (($1 == .help) && ($2 == logout)) {
/msg $nick --Logout--
/msg $nick Removes the level 3 priveleges from the bot. Useful for testing the bot's configuration as a normal user
}
if ($1 == .set) {
if ($2 == $null) {
/notice $nick .set:
/notice $nick serverip - %serverip (CS Server IP)
/notice $nick serverpw - %serverpw (CS Server password)
/notice $nick ventip - %ventip (Ventrilo IP)
/notice $nick ventport - %ventport (Ventrilo Port)
/notice $nick ventpass - %ventpass (Ventrilo Server Pass)
/notice $nick vchanpass - %vchanpass (Ventrilo Channel Pass)
/notice $nick channel - %monchannel (Channel Bot monitor's and sends messages to)
/notice $nick privchannel - %privchannel (Private invite only channel)
/notice $nick botpass - %botpass (Bot password)
}
if (($2 == botpass) && ($3)) {
/set %botpass $3
/msg $nick Bot Password set to %botpass
}
if (($2 == privchannel) && ($3)) {
/set %privchannel $3
/msg $nick Private channel set to %privchannel
}
if (($2 == serverip) && ($3)) {
/set %serverip $3
/msg $nick Server IP added sucesfully.
}
if (($2 == serverpw) && ($3)) {
/set %serverpw $3
/msg $nick Server Password added sucesfully.
}
if (($2 == ventip) && ($3)) {
/set %ventip $3
/msg $nick Ventrilo IP added sucesfully.
}
if (($2 == ventport) && ($3)) {
/set %ventport $3
/msg $nick Ventrilo Port added sucesfully.
}
if (($2 == ventpass) && ($3)) {
/set %ventpass $3
/msg $nick Ventrilo Server Password added sucesfully.
}
if (($2 == vchanpass) && ($3)) {
/set %vchanpass $3
/msg $nick Ventrilo Channel Password added sucesfully.
}
if (($2 == channel) && ($3)) {
/part %monchannel
/set %monchannel $3
/msg $nick Channel changed to %monchannel
/join %monchannel
}
if (($2 == serverip) && (!$3)) {
if (!%serverip) {
/msg $nick There is no Server IP stored
}
else {
/msg $nick Server IP currently is: %serverip
}
}
if (($2 == botpass) && (!$3)) {
if (!%botpass) {
/msg $nick There is no bot password stored
}
else {
/msg $nick Bot password currently is: %botpass
}
}
if (($2 == serverpw) && (!$3)) {
if (%serverpw == $null) {
/msg $nick There is no Server Password stored
}
else {
/msg $nick Server Password currently is: %serverpw
}
}
if (($2 == ventip) && (!$3)) {
if (%ventip == $null) {
/msg $nick There is no Ventrilo IP stored
}
else {
/msg $nick Ventrilo IP currently is: %ventip
}
}
if (($2 == ventport) && (!$3)) {
if (%ventport == $null) {
/msg $nick There is no Ventrilo Port stored
}
else {
/msg $nick Ventrilo Port currently is: %ventport
}
}
if (($2 == ventpass) && (!$3)) {
if (%ventpass == $null) {
/msg $nick There is no Ventrilo Password stored
}
else {
/msg $nick Ventrilo Password currently is: %ventpass
}
}
if (($2 == vchanpass) && (!$3)) {
if (%vchanpass == $null) {
/msg $nick There is no Ventrilo Channel Password stored
}
else {
/msg $nick Ventrilo Channel Password currently is: %vchanpass
}
}
if (($2 == channel) && (!$3)) {
/msg $nick Channel currently being monitored is: %monchannel
}
}
if ($1 == .unset) {
if (!$2) {
/notice $nick .unset variable or .unset all to clear all information
}
if ($2 == all) {
/notice $nick Are you sure you wish to clear all information? type .unset all yes to erase
if ($3 == yes) {
/set %serverip
/set %serverpw
/set %ventip
/set %ventport
/set %ventpass
/set %vchanpass
/msg $nick Information cleared.
}
}
if ($2 == serverip) {
/set %serverip
/msg $nick Game Server IP cleared.
}
if ($2 == serverpw) {
/set %serverpw
/msg $nick Game Server PW cleared.
}
if ($2 == ventip) {
/set %ventip
/msg $nick Vent Server IP cleared.
}
if ($2 == ventport) {
/set %ventport
/msg $nick Vent Port cleared.
}
if ($2 == ventpass) {
/set %ventpass
/msg $nick Vent Pass cleared.
}
if ($2 == vchannelpass) {
/set %ventchanpass
/msg $nick Vent Channel Password cleared.
}
}
if ($1 == .vote) {
if (($2 && %voting == 1)) {
if ($2 == 1) {
%vote1 = %vote1 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
/timer 1 45 /guser -a 3 $nick 2
}
else if ($2 == 2) {
%vote2 = %vote2 + 1
/notice $nick Thank you for your vote :)
/guser -a 2 $nick 2
/ruser 3 $nick 2
/timer 1 45 /ruser 2 $nick 2
/timer 1 45 /guser -a 3 $nick 2
}
else if (!$2) {
/notice $nick Incorrect format. Please type .vote 1 or .vote 2
}
}
else if (!$2) {
/msg $nick Incorrect format. Please type .vote 1 or .vote 2
}
else {
/notice $nick No vote currently running
}
}
}
on *:TEXT:*#*:#clanoz:if ($nick isreg $chan) { inc %ad. [ $+ [ $nick ] ] | if (%ad. [ $+ [ $nick ] ] < 2) notice $nick No advertising. This is your only warning. | else { unset %ad. [ $+ [ $nick ] ] | cs $chan tb $nick 1m Banned for 1 minute. } } }
on *:text:.hltv*:#:{ notice $nick 208.122.49.139:27020 }
on 3:TEXT:.server:%privchannel: {
/notice $nick connect %connectstr %serverpw
}