All pastes #188381 Raw Edit

Something

public text v1 · immutable
·published 2006-10-02 01:31 UTC
rendered paste body
on *:TEXT:*!events*:#:{ /notice $nick $read(events.txt, 1)
  /notice $nick $read(events.txt, 2) 
  /notice $nick $read(events.txt, 3) 
  /notice $nick $read(events.txt, 4) 
  /notice $nick $read(events.txt, 5) 
  /notice $nick $read(events.txt, 6)
}
alias event {
  /write events.txt The upcoming events are: $1-
  /echo  $1-  are the new events
}
alias event_add {
  /write events.txt The upcoming events are: $1-
  /echo  $1-  are added to the new events
}
alias clear_events {
  /write -c events.txt
  /echo Events List Cleared
}
alias no_event {
  /write -c events.txt There are currently no new events.
  /echo Events marked as none.
}
alias event_help {
  /echo Type /event (text) to write a new event. (warning doing this clears the event list)
  /echo Type /clear_events to clear the list of events empty.
  /echo Type /no_event to mark your events as empty.
  /echo ________________________________________________
  /echo Note, this script can only add up to 6 events.
  /echo ________________________________________________
}