Bielie commented on a Page, Question Responder and ! Responder!  -  Jun 17, 2010

In the end its just some annoying spam script.... :) But i will make this script advanced for you ;)

U should use $read(text.txt) and give it more options to say.

This is how to do it quikly as possible:

Step 1: /write text.txt
Step 2: /run text.txt
Step 3: Write down lines you want to say on the trigger.
Step 4: Save the file with: File -> Save

Now you change your script. (I also added a !add option to add lines without opening the file.)

Change it like this: (Used the first part of Jethro_)

on $*:text:/([!?])/S:#:{ 
;;Change this line in to the floodcontrol bellow;;
notice $nick $read(text.txt) 
  return
 }
}
on $*:text:/^[!.]add/S:#:{
  if ($nick != $me) { notice $nick You have no rights to use this command. 
 return 
}
elseif ($2- == $null) { notice $nick Please provide a line to add. 
 return 
}
else { notice $nick Added " $+ $2- $+ " to the list. 
 write text.txt $2-
 halt 
 }
}

You might wanna add a floodcontrol.

Can be done like this: (COPY IT IN THE CODE ABOVE)

It puts a 3 second delay for the channel the trigger was asked in.

if (%flood [ $+ [ $chan ] ]) { return }
set -eu3 %flood [ $+ [ $chan ] ] $true

Wrote it like this so "GoldFish" can understand it hopefully...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.