Amazebot / bbot

An adaptable conversation engine for building bespoke bots.
MIT License
55 stars 2 forks source link

Add more excluded keys from storage #74

Open timkinnane opened 6 years ago

timkinnane commented 6 years ago

Only the bot instance is removed from states and other objects before keeping via storage adapter. This improves performance and prevents crashing when store encounters cyclical references in data. Could probably find some more attributes that aren't required in storage, to reduce memory requirements.

see https://github.com/Amazebot/bbot/blob/master/src/lib/brain.ts#L11