fojas/cleverbot-node

this.params = Cleverbot.default_params;

Closed this issue · 0 comments

I noticed in the code there is:

this.params = Cleverbot.default_params;

The problem with doing this, is that in javascript, objects act somewhat like pointers. It won't create a new copy of that params object, which means that EVERY bot you create with your API will share the same params object, which makes it kind of pointless for this to be object oriented...