totigm / twitter-crypto-bot

This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes
MIT License
44 stars 21 forks source link

♻️ Migrate codebase to Typescript #7

Closed totigm closed 3 years ago

totigm commented 3 years ago

Description

This PR adds typescript's configurations files to the project and migrates the whole codebase from JS to TS.

Proposed changes

More information

This is how the project looks right now (README.md, LICENSE, node_modules, dist, and .github are not included): 📦TS Project ┣ 📂src ┃ ┣ 📂classes ┃ ┃ ┣ 📜CryptoBot.ts ┃ ┃ ┣ 📜CryptoData.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┣ 📜MessageGenerator.ts ┃ ┃ ┗ 📜TwitterBot.ts ┃ ┣ 📂config ┃ ┃ ┣ 📜config.ts ┃ ┃ ┗ 📜index.ts ┃ ┣ 📂types ┃ ┃ ┣ 📜coins.ts ┃ ┃ ┣ 📜credentials.ts ┃ ┃ ┣ 📜format.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┗ 📜prices.ts ┃ ┣ 📂utils ┃ ┃ ┣ 📜format.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┣ 📜math.ts ┃ ┃ ┗ 📜time.ts ┃ ┗ 📜index.ts ┣ 📜.env ┣ 📜.env.example ┣ 📜.gitignore ┣ 📜nodemon.json ┣ 📜package.json ┗ 📜tsconfig.json