From d62209587e4f7d9e6044c9f7be31aa2cddb5c81d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 05:32:17 +0000 Subject: [PATCH 1/6] Bump follow-redirects from 1.14.1 to 1.14.7 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.1 to 1.14.7. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.1...v1.14.7) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3b22041..08f35f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,21 +1,21 @@ { "name": "mastodon-clippy", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { "axios": { - "version": "0.21.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz", - "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==", + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", + "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", "requires": { - "follow-redirects": "^1.10.0" + "follow-redirects": "^1.14.0" } }, "follow-redirects": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.1.tgz", - "integrity": "sha512-HWqDgT7ZEkqRzBvc2s64vSZ/hfOceEol3ac/7tKwzuvEyWx3/4UegXh5oBOIotkGsObyk3xznnSRVADBgWSQVg==" + "version": "1.14.7", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" }, "ws": { "version": "7.5.2", From 7b9a90030a5451d33b1c3f0db20e42fc69af06a9 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 23 Oct 2022 15:22:39 +1100 Subject: [PATCH 2/6] Update README.md --- README.md | 56 +------------------------------------------------------ 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/README.md b/README.md index b6a8308..9e25630 100644 --- a/README.md +++ b/README.md @@ -1,55 +1 @@ -# mastodon-clippy -A customisable nodejs clippy bot for mastodon. - -`mastodon-clippy` notices when you are tooting about a topic that is bad for your health, and gently suggests you stop. - -See an example in action at [auspol_clippy](https://ausglam.space/@auspol_clippy). - -## configuration - -`mastodon-clippy` takes all configuration as ENV variables: - -* `CLIPPY_TOPIC` is the topic your clippy bot makes suggestions for. e.g. "auspol". -* `CLIPPY_DOMAIN` is the base domain for the Mastodon server your bot runs on _without a protocol_. e.g. "botsin.space" -* `CLIPPY_USER` is the username of the bot, e.g. "auspol_clippy". -* `CLIPPY_ACCESS_TOKEN` is the API access token for your bot. - -## auto-config - -Some settings for your bot account will be automatically set/overridden whenever the bot starts. These are: - -```js -locked: false, -bot: true, -discoverable: true, -source: { privacy: 'private' } -``` -That is, your bot must always: - -* accept new followers -* declare it is a bot -* be discoverable on the server suggestions page -* post messages in "followers only" mode - -## manual config - -It does not appear to be possible to use the API to set accounts to hide their social graph. users should be able to use your bot without other people necessarily knowing, but the bot needs to follow them in order to work. Therefore you should manually select `Hide your network` in `https://example.com/settings/preferences/other`. - -## setup - -You can use the example systemd file at `mastodon-clippy.service.example` tweaked to suit your setup. This will keep the bot running and set your environment variables as above. - -Then run `npm install .` to install npm modules `axios` and `ws`. - -# running - -Start the bot with the traditional `node index.js`. - -## interacting with the bot - -To "sign up" for notification from your bot, users have two options: - -1. follow the bot account -2. send a toot to the bot with the word `START` in capital letters. e.g. `@auspol_clippy START` - -To "unsubscribe" from the bot, users can send a toot with the word `STOP` in capital letters. e.g. `@auspol_clippy STOP` \ No newline at end of file +This has now moved to https://git.hugh.run/hugh/mastodon-clippy From 391e7524cae32db88c8332846cb16201f9730119 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 23 Oct 2022 21:22:16 +1100 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e25630..150f567 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -This has now moved to https://git.hugh.run/hugh/mastodon-clippy +Nag yourself when you post toots that make you feel bad. From b86560f0338390baf963715f54a5e6fe6a006dd1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 05:40:05 +0000 Subject: [PATCH 4/6] Bump follow-redirects from 1.14.7 to 1.15.6 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08f35f4..598c87b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,9 +13,9 @@ } }, "follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==" }, "ws": { "version": "7.5.2", From 85d6589dce5c46af235b79dd7983eeea81b92feb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 29 Jun 2024 02:12:09 +0000 Subject: [PATCH 5/6] Bump ws from 7.5.2 to 7.5.10 Bumps [ws](https://github.com/websockets/ws) from 7.5.2 to 7.5.10. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/7.5.2...7.5.10) --- updated-dependencies: - dependency-name: ws dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 598c87b..6e82276 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,9 +18,9 @@ "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==" }, "ws": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.2.tgz", - "integrity": "sha512-lkF7AWRicoB9mAgjeKbGqVUekLnSNO4VjKVnuPHpQeOxZOErX6BPXwJk70nFslRCEEA8EVW7ZjKwXaP9N+1sKQ==" + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==" } } } diff --git a/package.json b/package.json index 956b93c..293caa4 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,6 @@ "license": "AGPL-3.0-or-later", "dependencies": { "axios": "^0.21.2", - "ws": "^7.5.2" + "ws": "^7.5.10" } } From fa47c7a0fbb24e52cee91c33dedc4c1347f1a545 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 29 Jul 2024 20:16:28 +1000 Subject: [PATCH 6/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 150f567..0869e17 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ Nag yourself when you post toots that make you feel bad. +Now at https://git.suboptimal.solutions/hugh/mastodon-clippy