mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-01-18 16:37:40 +01:00
more
This commit is contained in:
@@ -11,6 +11,7 @@ Below is a basic overview of the project structure:
|
||||
|
||||
```
|
||||
├── examples -> short, feature-specific sample apps
|
||||
│ ├── app.js -> finished app.js code
|
||||
│ ├── button.js
|
||||
│ ├── command.js
|
||||
│ ├── modal.js
|
||||
@@ -72,6 +73,8 @@ node app.js
|
||||
|
||||
> ⚙️ A package [like `nodemon`](https://github.com/remy/nodemon), which watches for local changes and restarts your app, may be helpful while locally developing.
|
||||
|
||||
If you aren't following the [getting started guide](https://discord.com/developers/docs/getting-started), you can move the contents of `examples/app.js` (the finished `app.js` file) to the top-level `app.js`.
|
||||
|
||||
### Set up interactivity
|
||||
|
||||
The project needs a public endpoint where Discord can send requests. To develop and test locally, you can use something like [`ngrok`](https://ngrok.com/) to tunnel HTTP traffic.
|
||||
|
||||
Reference in New Issue
Block a user