repeat random message

By Alex_TNT on Jul 21, 2014

Currently it reads the text.txt at random and it displays on a channel

on *:TEXT:!start:#channel:{
  /msg $chan Script Started
  /timer10 0 270 /msg $chan $!read(text.txt,n)
}

on *:TEXT:!startoff:#channel:{
  /msg $chan Script Stopped
  /timer10 off
}

I don't understand how to make it auto execute at x minute intervals, whitout using the !command

I've beginner at this, I want to make it like a /timer but can add read random lines from the text everytime

EDIT: already fixed posted above

Comments

Sign in to comment.
Hitman   -  Jul 21, 2014

You Can Start a Timer.
.timer 1 60 msg $chan $read(text.txt)

Alex_TNT  -  Jul 22, 2014

Already fixed, posted above

Sign in to comment

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.