├── .eslintrc.json ├── .github ├── CODEOWNERS ├── FUNDING.yml └── workflows │ ├── code-ql.yml │ └── node-ci.yml ├── .gitignore ├── .prettierrc ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── docs ├── commands.md └── creating-command.md ├── package.json ├── renovate.json ├── sample.env ├── src ├── assets │ ├── algorithm-structure.ts │ └── motivational-quotes.ts ├── commands │ ├── _CommandHandler.ts │ ├── _CommandList.ts │ ├── add.ts │ ├── algo.ts │ ├── close.ts │ ├── coc.ts │ ├── eightball.ts │ ├── help.ts │ ├── kick.ts │ ├── modHelp.ts │ ├── ping.ts │ ├── private.ts │ ├── quote.ts │ ├── rescind.ts │ ├── resources.ts │ └── warn.ts ├── helpers │ ├── botLogging.ts │ ├── getModerators.ts │ ├── isModerator.ts │ └── sendToLog.ts ├── index.ts └── interfaces │ ├── BotInt.ts │ ├── CommandInt.ts │ ├── apiInt.ts │ ├── messageInt.ts │ └── rocketChat.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: freecodecamp 2 | -------------------------------------------------------------------------------- /.github/workflows/code-ql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/.github/workflows/code-ql.yml -------------------------------------------------------------------------------- /.github/workflows/node-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/.github/workflows/node-ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /prod/ 3 | .env -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/.prettierrc -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/README.md -------------------------------------------------------------------------------- /docs/commands.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/docs/commands.md -------------------------------------------------------------------------------- /docs/creating-command.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/docs/creating-command.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/renovate.json -------------------------------------------------------------------------------- /sample.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/sample.env -------------------------------------------------------------------------------- /src/assets/algorithm-structure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/assets/algorithm-structure.ts -------------------------------------------------------------------------------- /src/assets/motivational-quotes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/assets/motivational-quotes.ts -------------------------------------------------------------------------------- /src/commands/_CommandHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/_CommandHandler.ts -------------------------------------------------------------------------------- /src/commands/_CommandList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/_CommandList.ts -------------------------------------------------------------------------------- /src/commands/add.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/add.ts -------------------------------------------------------------------------------- /src/commands/algo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/algo.ts -------------------------------------------------------------------------------- /src/commands/close.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/close.ts -------------------------------------------------------------------------------- /src/commands/coc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/coc.ts -------------------------------------------------------------------------------- /src/commands/eightball.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/eightball.ts -------------------------------------------------------------------------------- /src/commands/help.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/help.ts -------------------------------------------------------------------------------- /src/commands/kick.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/kick.ts -------------------------------------------------------------------------------- /src/commands/modHelp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/modHelp.ts -------------------------------------------------------------------------------- /src/commands/ping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/ping.ts -------------------------------------------------------------------------------- /src/commands/private.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/private.ts -------------------------------------------------------------------------------- /src/commands/quote.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/quote.ts -------------------------------------------------------------------------------- /src/commands/rescind.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/rescind.ts -------------------------------------------------------------------------------- /src/commands/resources.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/resources.ts -------------------------------------------------------------------------------- /src/commands/warn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/commands/warn.ts -------------------------------------------------------------------------------- /src/helpers/botLogging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/helpers/botLogging.ts -------------------------------------------------------------------------------- /src/helpers/getModerators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/helpers/getModerators.ts -------------------------------------------------------------------------------- /src/helpers/isModerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/helpers/isModerator.ts -------------------------------------------------------------------------------- /src/helpers/sendToLog.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/helpers/sendToLog.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces/BotInt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/interfaces/BotInt.ts -------------------------------------------------------------------------------- /src/interfaces/CommandInt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/interfaces/CommandInt.ts -------------------------------------------------------------------------------- /src/interfaces/apiInt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/interfaces/apiInt.ts -------------------------------------------------------------------------------- /src/interfaces/messageInt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/interfaces/messageInt.ts -------------------------------------------------------------------------------- /src/interfaces/rocketChat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/src/interfaces/rocketChat.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freeCodeCamp/rocketchat-bot/HEAD/tsconfig.json --------------------------------------------------------------------------------