← Back to lessons

Lesson 10 — Prefix Commands

Goal: Make a classic command like !hello.

Video

Step-by-step

Step 1 — Confirm prefix in config.json

Make sure "PREFIX": "!"

Step 2 — Create a message command file

Create messages/hello.js

module.exports = {
  name: "hello",
  async execute(message) {
    await message.reply("Hello from Helix! 👋");
  }
};
Step 3 — Restart and test
node index.js

In Discord: type !hello

← Lesson 9 Next → Lesson 11