update #9
|
@ -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:
|
||||
|
|
|
@ -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 <hugh@hughrundle.net> (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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue