Ping pong command example
Last updated
Last updated
WOKCommands is easy to get setup and working. On this page you will learn how to create a simple "Ping -> Pong" command.
First you must setup WOKCommands in your main file:
Then create a "commands" folder where you can create a "ping.js" file with the following contents:
After inviting your bot to a Discord server and running !ping
("!" is the default command prefix) or /ping
, your bot should reply with Pong!
.