If you let users store and recall phrases in/from your bot you should use \"n\" in the read statement, like $read(random.txt, n). Otherwise they can take control of your bot. Another thing: if you have many phrases in random.txt, probably !list will let your bot flood. Instead of while loop and notice you could also play the file privately to the user.