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`.
|
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
|
## interacting with the bot
|
||||||
|
|
||||||
To "sign up" for notification from your bot, users have two options:
|
To "sign up" for notification from your bot, users have two options:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "mastodon-clippy",
|
"name": "mastodon-clippy",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"description": "Mastodon clippy bot",
|
"description": "Mastodon clippy bot",
|
||||||
"repository": "https://github.com/hughrun/mastodon-clippy.git",
|
"repository": "https://git.suboptimal.solutions/hugh/mastodon-clippy",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
"author": "Hugh Rundle <hugh@hughrundle.net> (https://www.hughrundle.net)",
|
"author": "Hugh Rundle <hugh@hughrundle.net> (https://www.hughrundle.net)",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.21.2",
|
"axios": "^1.7.3",
|
||||||
"ws": "^7.5.2"
|
"ws": "^8.18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue