palindromed / Bot-HandOff

MIT License
103 stars 79 forks source link

How to plugin persistent storage to store conversations? #24

Closed bhushanvadgave closed 7 years ago

bhushanvadgave commented 7 years ago

Currently provider.ts maintains an array of conversations. I want to make my bot stateless. For bot should be able to read, write and update conversations in some persistent storage. Please help.

liliankasem commented 7 years ago

You can create your own class that implements the provider interface and make your own method of storage. An example of this is here where we are using mongodb:

mongoose-provider.ts