{"analyzedAt":"2022-07-03T09:38:09.993Z","collected":{"metadata":{"name":"discord-gateways","scope":"unscoped","version":"1.0.0","description":"Connects to Discord Gateway through websocket and emits events on each Discord Intent","keywords":["discord","api","node"],"date":"2022-04-07T07:27:42.130Z","author":{"name":"George Soultos","email":"soultos@protonmail.ch","url":"https://gsoultos.com","username":"gsoultos"},"publisher":{"username":"gsoultos","email":"soultos@protonmail.ch"},"maintainers":[{"username":"gsoultos","email":"soultos@protonmail.ch"}],"repository":{"type":"git","url":"git+https://github.com/gsoultos/discord-gateways.git"},"links":{"npm":"https://www.npmjs.com/package/discord-gateways","homepage":"https://github.com/gsoultos/discord-gateways#readme","repository":"https://github.com/gsoultos/discord-gateways","bugs":"https://github.com/gsoultos/discord-gateways/issues"},"license":"GPL-3.0-only","dependencies":{"@types/ws":"^8.5.3","ws":"^8.5.0"},"devDependencies":{"ts-node":"^10.7.0","@eslint/create-config":"^0.1.2","@types/node":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0"},"releases":[{"from":"2022-06-03T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":0},{"from":"2022-04-04T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":3},{"from":"2022-01-04T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":3},{"from":"2021-07-03T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":3},{"from":"2020-07-03T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":3}],"hasSelectiveFiles":true,"readme":"# discord-gateways\n\n# About\ndiscord-gateways is a module that connects to Discord Gateways over Websockets and emits events on each [Discord Intent](https://discord.com/developers/docs/topics/gateway#list-of-intents).\n\n## Supported Discord Intents\n- MESSAGE_CREATE\n\n# Installation\n`npm install discord-gateways`\n\n# How to get your Discord authentication token\n1. [Login](https://discord.com/) to your Discord account from your browser.\n2. Enable `Developer Tools` using [Ctrl]+[Shift]+[I] key combination on Google Chrome.\n3. Go to `Network` tab.\n4. Send a message to anyone.\n5. Select the `messages` packet, make sure that `Headers` tab is selected, and scroll down to find and copy the `authorization` header under the `Request Headers`.\n![alt text](https://github.com/gsoultos/discord-gateways/blob/master/assets/discord_token_instructions.png)\n\n# Usage\n```\nimport { DiscordClient, MessageDto } from 'discord-gateways';\n\nconst client = new DiscordClient(\"DISCORD_TOKEN\");\n\nclient.on(\"messageCreate\", (message: MessageDto) => {\n    console.log(message);\n});\n\nclient.connect();\n```\n\n# Contributing\nPlease [read the contribution](https://github.com/gsoultos/discord-gateways/blob/master/CONTRIBUTING.md) guide before submit a PR."},"npm":{"downloads":[{"from":"2022-07-02T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":1},{"from":"2022-06-26T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":2},{"from":"2022-06-03T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":5},{"from":"2022-04-04T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":66},{"from":"2022-01-04T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":66},{"from":"2021-07-03T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":66}],"starsCount":0},"github":{"starsCount":0,"forksCount":0,"subscribersCount":1,"issues":{"count":0,"openCount":0,"distribution":{"3600":0,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":false},"contributors":[{"username":"gsoultos","commitsCount":1}],"commits":[{"from":"2022-06-26T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":0},{"from":"2022-06-03T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":0},{"from":"2022-04-04T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":0},{"from":"2022-01-04T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":1},{"from":"2021-07-03T00:00:00.000Z","to":"2022-07-03T00:00:00.000Z","count":1}]},"source":{"files":{"readmeSize":1229,"testsSize":0,"hasNpmIgnore":true},"linters":["eslint"]}},"evaluation":{"quality":{"carefulness":0.9199999999999999,"tests":0,"health":1,"branding":0},"popularity":{"communityInterest":2,"downloadsCount":22,"downloadsAcceleration":0.042922374429223725,"dependentsCount":0},"maintenance":{"releasesFrequency":0.6799657534246576,"commitsFrequency":0.06400684931506849,"openIssues":0.7,"issuesDistribution":0.7}},"score":{"final":0.513140348911028,"detail":{"quality":0.5400461886258112,"popularity":0.01867705848250201,"maintenance":0.9845414910125971}}}