├── .banner ├── .editorconfig ├── .env.example ├── .eslintignore ├── .eslintrc.js ├── .github └── workflows │ ├── build.yml │ └── codeql-analysis.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .lintstagedrc ├── .mocharc.ts ├── .npmrc ├── .nycrc ├── .prettierrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── SECURITY.md ├── commitlint.config.js ├── docs ├── .gitkeep └── index.html ├── package.json ├── src ├── bot │ ├── app.ts │ └── logger.ts ├── cli │ └── sort-words.ts ├── data │ ├── accounts-not-to-follow.json │ ├── words-not-to-follow.json │ ├── words-to-follow.json │ └── words-with-suspicion.json ├── database │ └── migrations │ │ ├── 20200409211407_create_table_users.ts │ │ ├── 20200410163135_create_table_tweets.ts │ │ ├── 20200410173130_create_table_medias.ts │ │ ├── 20200512190140_create_table_words.ts │ │ └── 20201229094527_fix_database_collation.ts ├── env.ts ├── knex-export.ts ├── knexfile.ts ├── translations │ └── en.json ├── twit.ts ├── types │ └── general.d.ts └── utils │ ├── date.ts │ ├── i18n.ts │ ├── index.ts │ ├── misc.ts │ ├── string.ts │ └── tweet.ts ├── test ├── 0 - express-server │ ├── routes.ts │ ├── server.ts │ └── tweets.json ├── 1 - unit │ ├── date-utils.spec.ts │ ├── loadFiles.spec.ts │ └── string-utils.spec.ts ├── 2 - integration │ └── integration.spec.ts └── mocha.opts └── tsconfig.json /.banner: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.banner -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | knex 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.lintstagedrc -------------------------------------------------------------------------------- /.mocharc.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | spec: 'test/**/*.spec.ts', 3 | }; 4 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.nycrc -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/SECURITY.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {extends: ['@commitlint/config-conventional']} 2 | -------------------------------------------------------------------------------- /docs/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | Hello World 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/package.json -------------------------------------------------------------------------------- /src/bot/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/bot/app.ts -------------------------------------------------------------------------------- /src/bot/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/bot/logger.ts -------------------------------------------------------------------------------- /src/cli/sort-words.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/cli/sort-words.ts -------------------------------------------------------------------------------- /src/data/accounts-not-to-follow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/data/accounts-not-to-follow.json -------------------------------------------------------------------------------- /src/data/words-not-to-follow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/data/words-not-to-follow.json -------------------------------------------------------------------------------- /src/data/words-to-follow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/data/words-to-follow.json -------------------------------------------------------------------------------- /src/data/words-with-suspicion.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/data/words-with-suspicion.json -------------------------------------------------------------------------------- /src/database/migrations/20200409211407_create_table_users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/database/migrations/20200409211407_create_table_users.ts -------------------------------------------------------------------------------- /src/database/migrations/20200410163135_create_table_tweets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/database/migrations/20200410163135_create_table_tweets.ts -------------------------------------------------------------------------------- /src/database/migrations/20200410173130_create_table_medias.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/database/migrations/20200410173130_create_table_medias.ts -------------------------------------------------------------------------------- /src/database/migrations/20200512190140_create_table_words.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/database/migrations/20200512190140_create_table_words.ts -------------------------------------------------------------------------------- /src/database/migrations/20201229094527_fix_database_collation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/database/migrations/20201229094527_fix_database_collation.ts -------------------------------------------------------------------------------- /src/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/env.ts -------------------------------------------------------------------------------- /src/knex-export.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/knex-export.ts -------------------------------------------------------------------------------- /src/knexfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/knexfile.ts -------------------------------------------------------------------------------- /src/translations/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/translations/en.json -------------------------------------------------------------------------------- /src/twit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/twit.ts -------------------------------------------------------------------------------- /src/types/general.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/types/general.d.ts -------------------------------------------------------------------------------- /src/utils/date.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/utils/date.ts -------------------------------------------------------------------------------- /src/utils/i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/utils/i18n.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/misc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/utils/misc.ts -------------------------------------------------------------------------------- /src/utils/string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/utils/string.ts -------------------------------------------------------------------------------- /src/utils/tweet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/src/utils/tweet.ts -------------------------------------------------------------------------------- /test/0 - express-server/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/0 - express-server/routes.ts -------------------------------------------------------------------------------- /test/0 - express-server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/0 - express-server/server.ts -------------------------------------------------------------------------------- /test/0 - express-server/tweets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/0 - express-server/tweets.json -------------------------------------------------------------------------------- /test/1 - unit/date-utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/1 - unit/date-utils.spec.ts -------------------------------------------------------------------------------- /test/1 - unit/loadFiles.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/1 - unit/loadFiles.spec.ts -------------------------------------------------------------------------------- /test/1 - unit/string-utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/1 - unit/string-utils.spec.ts -------------------------------------------------------------------------------- /test/2 - integration/integration.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/2 - integration/integration.spec.ts -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/test/mocha.opts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amirhoseinsalimi/programmer-fa/HEAD/tsconfig.json --------------------------------------------------------------------------------