Application Setup
We will assume that you have already installed Node.js or any supported environment such as Bun or Deno on your machine.
Before you begin
You need to have a Discord bot token. You can get a bot token from Discord Developer Portal. A complete guide on how to create a bot can be found here.
Create a Project
The easiest way to start building a reciple app is to run:
npx reciple@latest create my-bot This command will create a new project in my-bot directory and will ask you some questions to setup your bot.
Starting your bot
Once the project is created, you can cd my-bot to go to the project directory.
Building Modules
To start your bot, it needs to have a modules to load. It is loaded from modules folder that generated by building your project using:
npm run build After all modules are built, you can see that a modules folder is created. Now you can start your bot using:
npm run start The build output can be configured in
reciple.config.jsorreciple.config.tsfile.
Development Mode
To start your bot in development mode, you can run:
npm run dev This command will start your bot in development mode. It will watch for changes in your code and will automatically build and restart your bot.
The watch behavior is provided by nodemon. You can configure its behavior in
nodemon.jsonfile.