Creating a simple "Ping Pong" Command
At this page, you will learn how to create a simple "Ping Pong" command.
Last updated
At this page, you will learn how to create a simple "Ping Pong" command.
Last updated
Before creating a command, please make sure you have specified a commands directory with the correct syntax as shown in the page.
Firstly, create a file in the commands directory you specified in the index.js file, and name it ping.js.
Secondly, paste this code into your ping.js file.
Once your program starts, try running the ping command:
For the default prefix during the nocli-handler.js initialization, if you have set any, please replace "!" with the default prefix you have set.