All pastes #728367 Raw Edit

Foshizzle

public text v1 · immutable
·published 2007-10-06 22:21 UTC
rendered paste body
/*
This is The Script for the Channel #The_Channel 
on swiftIRC and soon maybe more!
--
Hosted By Foshizzle, `Zack|Sara_Man95 and his bot The_Bot 
on the channel #The_Channel
*/

on *:LOAD: { /echo 3 -m The Channel Game System has been sucsessfully installed. type 5/TQcontrol for Information on this script.(Script is off at the moment) | /set %thechan off }
alias -l tc-msg { /msg #The_Channel 4,1 Message From The Channel Admin:9,1 %tc.msgvar  }
alias TheChan { 
  if (!$1-) { /echo 4 -m You Need To Specify What You want to do! | halt }
  elseif ($1 == on) { msg #The_Channel 14,15The Channel's Game System is now 4OFF | /set %thechan on | halt }
  elseif ($1 == off) { msg #The_Channel 14,15The Channel's Game System is now 3ON | /set %thechan off | halt }
  elseif ($1 == reset) { msg #The_Channel 14,15The Channel's Game System is now 12Reseting /unset %tc.* | halt }
  elseif ($1 == message || $1 == msg) { $iif($2,msg #The_Channel 4 $+ $chr(44) $+ 1 Message From The Channel Admin:9 $+ $chr(44) $+ 1 $2- , /echo 4 -m You Need To Supply A message!) | halt }
  elseif ($1 == time) { /echo 3 -m The current local time is $asctime(h:nn:ss) $asctime(tt) }
}
menu * {
  The Channel
  .Status( $+ %thechan $+ ): if (%thechan == on) { /set %thechan off | /echo 5 -m The Channel's Game System is now OFF. } | else { /set %thechan on | /echo 3 -m The Channel's Game System is now ON. }  
  .Reset: $iif($?!="Are You Sure You Wish To Reset The Channel's System" == $true, /unset %tc.*, /halt)
  .Message:/msg #The_Channel 4,1 Message From The Channel Admin:9,1 $$?="Enter Your Message Here:" 
  .Time( $+ $time $+ ):/echo 3 -m The current local time is $asctime(h:nn:ss) $asctime(tt)
}