surudhb / first-twitter-bot

Twitter bot that tweets jokes from various API's throughout the day. Also tweets a random word of the day with an associated gif. https://twitter.com/GarySquarepan13
0 stars 0 forks source link

Promises not used correctly. #1

Closed surudhb closed 4 years ago

surudhb commented 4 years ago

An added benefit of the promise library is to avoid writing a sequence of nested functions. If written correctly, a chain of asynchronous functions can be written sequentially.

surudhb commented 4 years ago

Upgraded to ES7 async/await syntax and fixed nested promise chaining.