Projet EPSI - Chatbot
npm install
cp .env.sample .env
vim .env
# Fill TOKEN variable.
This project use StandardJS as linter with a pre-commit hook.
To configure text editor, see this link.
To run linter : npm run lint
To run linter with auto-fix : npm run lint:fix
npm test
It is recommended to have a separate test bot account from your production bot so that you don't get 2 answers each time you talk to the bot.
npm start
Set WEBHOOK_URL
and run application with production
environment.
Then, you'll need a reverse proxy (such as nginx or caddy for example) to proxy request from WEBOOK_URL
to your application.