SHARE
TWEET

Untitled

a guest May 19th, 2017 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on $*:TEXT:/!set masstime*/Si:#:{
  2.   var %admins [Ch]Chad
  3.   if ($nick isin %admins) {
  4.     if ($3 isnum 1-) && ($4) {
  5.       set %masstime. [ $+ [ $chan ] ] $calc($ctime + ( $3 * 60 ) )
  6.       set %masspm. [ $+ [ $chan ] ] $4-
  7.       set [ -u $+ [ $calc(%masstime. [ $+ [ $chan ] ] - $ctime)) ] ] %massnick. [ $+ [ $chan ] ] $nick
  8.       notice $nick 5Mass time of1 $duration( $calc( $3 * 60 ) ) 5set by1 $nick 5for the event:1 $4-
  9.       msg $chan  4,1ҳ̸Ҳ̸ҳҳ̸Ҳ̸ҳ 14Masstime has been set/updated 4,1ҳ̸Ҳ̸ҳҳ̸Ҳ̸ҳ
  10.       /timermasstime 5000 300  msg $chan 4,1ҳ̸Ҳ̸ҳҳ̸Ҳ̸ҳ 14A Masstime is set, use !masstime for event/time 4,1ҳ̸Ҳ̸ҳҳ̸Ҳ̸ҳ 
  11.     }
  12.     elseif ($3 !isnum 1-) || (!$4) {
  13.       notice $nick Syntax Error! Syntax: !set masstime time-in-minutes message here-...
  14.     }
  15.   }
  16. }
  17.  
  18. on $*:TEXT:/!unset masstime/Si:#:{
  19.   var %admins [Ch]Chad
  20.   if ($nick isin %admins) {
  21.     unset %masstime. [ $+ [ $chan ] ]
  22.     unset %masspm. [ $+ [ $chan ] ]
  23.     unset %massnick. [ $+ [ $chan ] ]
  24.     set %unsetnick. [ $+ [ $chan ] ] $nick $+ 5.
  25.     notice $nick 5Mass time unset by1 %unsetnick. [ $+ [ $chan ] ]
  26.     /timermasstime off
  27.   }
  28. }
  29.  
  30. on $*:TEXT:/^[!@.]masstime/Si:#:{
  31.   if ($nick !isreg $chan) {
  32.     if (%massnick. [ $+ [ $chan ] ] == $null) && (%masspm. [ $+ [ $chan ] ] == $null) {
  33.       notice $nick 5There is no event set for $chan $+ . The last event was unset by:1 %unsetnick. [ $+ [ $chan ] ]
  34.     }
  35.     elseif (%massnick. [ $+ [ $chan ] ] == $null) {
  36.       notice $nick 5The last event for $chan was:1 %masspm. [ $+ [ $chan ] ] 5and you are late already or they forgot to unset the event.
  37.     }
  38.     elseif (%massnick. [ $+ [ $chan ] ]) {
  39.       notice $nick 5Mass time for $chan set by1 %massnick. [ $+ [ $chan ] ] $+ 5:10 %masspm. [ $+ [ $chan ] ] 5in1 $duration($calc(%masstime. [ $+ [ $chan ] ] - $ctime))) $+ 5.
  40.     }
  41.   }
  42. }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top