Ping pong command example
Last updated
Was this helpful?
Last updated
Was this helpful?
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!
.