mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
* Update docs for desired properties * Update examples to use createBot desiredProperties The BigBot and reaction roles examples use the Discordeno CLI * Migrate examples to v19 stable * Docs work
16 lines
531 B
Markdown
16 lines
531 B
Markdown
# Reaction roles example bot
|
|
|
|
Example bot for reaction-roles using Discord Interactions and not classic reactions.
|
|
|
|
## Setup
|
|
|
|
1. Rename `.env.example` to `.env` and add your bot token in the `TOKEN` variable
|
|
1. Replace `REPLACE WITH YOUR GUILD ID` in `src/register-commands.ts` with your test guild id
|
|
|
|
## Run the bot
|
|
|
|
1. `yarn` to install the dependencies
|
|
1. `yarn postinstall` to run the Discordeno Desired Properties CLI
|
|
1. `yarn build` to build the .ts files into .js
|
|
1. `yarn start` (or `node ./dist/index.js`) to run the bot
|