sanrodari / bot-platform

Bot platform
0 stars 0 forks source link

Add the endpoints for the bot scripts management #8

Closed juanprq closed 6 years ago

gualopezb commented 6 years ago

I just added some small improvements on these bot endpoints. I was wondering if we can take advantage of embedded documents feature in MongoDB and embed bots in the users collection, because all operations related to bots have to be done in the context of a user. @juanprq, @sanrodari what do you guys think?

juanprq commented 6 years ago

@gualopezb yes i see no problem with that approach, the only thing with that approach is the operations are going to be more complicated to do in a single bot, but i don't know i'm just imagining how it will work

gualopezb commented 6 years ago

@juanprq OK, to keep things simple I think we better keep using referenced documents for this case.