yuhong90 / quoteme-bot

Simple telegram quote bot
1 stars 0 forks source link

Code refactoring #11

Closed edisonchee closed 8 years ago

edisonchee commented 8 years ago

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?

edisonchee commented 8 years ago

Refactored in f7d85efe3ba48ee84f378c7c4a7af968182e8401.