i am trying to set up a script that would take a word bank in a file, randomly picking one, then using in a script. Outcome would be a random word raffle. This is what i have so far. Where monkey is i want it to be from file random. What route should i use? i have found $read(file.txt, n) but how would i embed that to work the way i need on the "on *:text:*monkey*:#:?
#random off
on *:text:*monkey*:#: {
if (%flood) { return }
set -u10 %flood On
msg $chan !kraffle open Monkey 20
.disable #random
}
#random end
---------------------------------------------
Word file would be something like
monkey
house
cake
cookie
Last edited by Necro; 10/12/14 08:04 AM.