One command multiply responses


what I would like to find out if there is a way to make multiple responses with one command like

sender 1: !lurk
bot: response 1
sender 2: !lurk
bot: response 2
and soforth

Java Version: 1.8.0_181-b13
OS Version: Mac OS X 10.11.6 (x86_64)
Panel Version: 1.1
PhantomBot Version: 2.4.1 (Revision: 6a2fb20d)

  1. If you need random responces for random users you can:
  • use (readfilerand) tag (read here).
  • modify ./scripts/games/random.js and ./scripts/lang/english/games/games-random.js for your own needs.
  1. If you need personal responces for selected users you can try this method.


im not trying to make a file for every username im trying to where it randomly grab a txt file out of a file to where i can have multiply responses hor one command insted of makeing a txt for every user like how random works just custom


!addcom !lurk (readfilerand ./lurkResponses.txt)

In /MyBotFolder/addons/lurkResponses.txt I added:



If you append a empty line in the file (as seen above) you can also add this command:

!addlurk (writefile lurkResponses.txt, true, (echo)) Added lurk response: (echo) – and make it so moderators or above have access to it. This will allow you to add responses on the fly.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.