This project was bootstrapped with Bottender init script.
Always feel free to open issue to Bottender.
After creation, your project should look like this:
my-bot/
.gitignore
node_modules/
bottender.config.js
index.js
package.json
README.md
yarn.lock
All functionalities start from here.
Mainly it's a server which listen on port 5000. You are encouraged to add more event listener
and Handler
to enrich the bot.
See more examples, please refer to Bottender examples.
The config file for the bot.
We suggests you to put all platform configs into this file and use it as a parameter
of createServer.
cp .env.sample .env
And put your variables into .env
.
There are two default scripts you can run:
Run the bot in the development mode.
It will automatically restart the bot if there are any changes in index.js
.
For more information, check nodemon's repo
Run the bot without being monitored.
The bot won't be restarted when you change anything in index.js