https://github.com/thiti-dev/line-clever-chatbot
I wrote this to just showing to my friend that what chatbot can really do, I also wrote the ability to teach the bot how to response from a matched text pattern
https://github.com/thiti-dev/line-clever-chatbot
bottender lokijs nodejs
Last synced: about 2 months ago
JSON representation
I wrote this to just showing to my friend that what chatbot can really do, I also wrote the ability to teach the bot how to response from a matched text pattern
- Host: GitHub
- URL: https://github.com/thiti-dev/line-clever-chatbot
- Owner: Thiti-Dev
- Created: 2019-03-26T17:14:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T13:27:26.000Z (about 7 years ago)
- Last Synced: 2025-02-24T04:31:10.133Z (over 1 year ago)
- Topics: bottender, lokijs, nodejs
- Language: JavaScript
- Homepage:
- Size: 115 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project was bootstrapped with
[Bottender](https://github.com/Yoctol/bottender) init script.
## Sending Feedback
Always feel free to open issue to
[Bottender](https://github.com/Yoctol/bottender/issues).
## Folder Structure
After creation, your project should look like this:
```
my-bot/
.gitignore
node_modules/
bottender.config.js
index.js
package.json
README.md
yarn.lock
```
### index.js
All functionalities start from here.\
Mainly it's a server which listen on port 5000. You are encouraged to add more [event listener](https://bottender.js.org/docs/APIReference-Event)
and [`Handler`](https://bottender.js.org/docs/APIReference-Handler) to enrich the bot.
See more examples, please refer to
[Bottender examples](https://github.com/Yoctol/bottender/tree/master/examples).
### bottender.config.js
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.
## Available Scripts
There are two default scripts you can run:
### `npm run dev`
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](https://github.com/remy/nodemon)
### `npm start`
Run the bot without being monitored.\
The bot won't be restarted when you change anything in `index.js`
"# LINE-CHATBOT-WITH-LOKIJS"