Thinking about how to organise the code and split out into several .js files.
Right off the bat we can split functions into another file, in which case we need a config object to pass common variables between external files. This would include the socket.io object and quote arrays we defined in telegram-bot.js.
Thinking about how to organise the code and split out into several .js files.
Right off the bat we can split functions into another file, in which case we need a config object to pass common variables between external files. This would include the socket.io object and quote arrays we defined in telegram-bot.js.
Any comments?