From 2a6cf879b68becde94ce7022a4e59b9b7618beb9 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 10 Aug 2024 11:44:48 +1000 Subject: [PATCH] update readme and deps --- README.md | 8 ++++++++ package.json | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b6a8308..0d706af 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,14 @@ Then run `npm install .` to install npm modules `axios` and `ws`. Start the bot with the traditional `node index.js`. +However, you probably want this to run automatically on a web server. You can do this with `systemd` using the example unit file: `mastodon-clippy.service.example`. Adjust this for your user and paths, and then activate it: + +```bash +sudo cp mastodon-clippy.service.example /etc/systemd/system/mastodon-clippy.service +sudo systemctl enable mastodon-clippy.service +sudo systemctl start mastodon-clippy service +``` + ## interacting with the bot To "sign up" for notification from your bot, users have two options: diff --git a/package.json b/package.json index 956b93c..fe9304b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "mastodon-clippy", - "version": "1.1.1", + "version": "1.1.2", "description": "Mastodon clippy bot", - "repository": "https://github.com/hughrun/mastodon-clippy.git", + "repository": "https://git.suboptimal.solutions/hugh/mastodon-clippy", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -10,7 +10,7 @@ "author": "Hugh Rundle (https://www.hughrundle.net)", "license": "AGPL-3.0-or-later", "dependencies": { - "axios": "^0.21.2", - "ws": "^7.5.2" + "axios": "^1.7.3", + "ws": "^8.18" } }