palindromed / Bot-HandOff

MIT License
102 stars 79 forks source link

How to plugin persistent storage to store conversations? #24

Closed bhushanvadgave closed 6 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 6 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