ON *:TEXT:*!joke*:#farmstarz:{ //say $read(C:\Bot\joke.txt) }
ON *:TEXT:!joke:#: { $read(c:\BOT\joke.txt)}
We've covered JOIN, but what about TEXT?look at this script:ON *:TEXT:!joke:#: { $read(c:\BOT\joke.txt)}TEXT is followed by the text the command is waiting for, so when a user types !joke, the bot will tell a joke!a new command here is $read. Let's look at how it works:To get a random joke this is the easiest code, but the work behind it is fairly lengthy: go to your C drive and make a folder BOT, and create a notepad file called joke.txt. Then fill it with jokes, but make sure all the jokes start and finish on the same line! By itself, $read will read a random line from joke.txt, hence why you need the jokes starting and finishing on the same line. $read can be fine tuned to make it less random see the mIRC help file if you want to get more detail on it.SAVE AND TEST!
/joke { //say $read(C:\Bot\joke.txt)}
ON *:TEXT:*!joke*:#farmstarz:{alias /joke}
ON *:TEXT:*!joke*:#farmstarz:{ //msg $chan $read(C:\Bot\joke.txt)}