Designed for efficiency
Some simple code for when someone uses ?? something
it looks for something in the txt file then reads everything after that.
If the bot knows the user (ulevel = 100) it msgs the chan, else if it doesnt know the user ie ulevel = 1 it notices the nick.
Example:
hi ?? hello Hello there! Welcome to #ReD, before you ask something, please familarize yourself with the rules. Else it could result in a ban. A nice tip is to not pm +o/+v, it is considered offensive in most channels. That was made achieveable by, doing this (User level must be 100): Bot add Hello Hello there! Welcome to $chan, before you ask something, please familarize yourself with the rules. Else it could result in a ban. A nice tip is to not pm +o/+v, it is considered offensive in most channels. -Bot- Done. ```mirc on 1:TEXT:?? *:#: { var %i = $1- | set %i $remtok($1-,??,1,32) if ($read(database.txt, s, %i)) { if ($ulevel > 49) { var %l = $read(database.txt, s, %i) msg $chan %l } else { var %l = $read(database.txt, s, %i) notice $nick %l } } else { notice $nick I couldn't find that command. } } on 100:TEXT:$($me add * $+ ):*: { write -ds $+ $3 database.txt write database.txt $3- notice $nick Done. } ```