You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 days ago | |
---|---|---|
app | 3 days ago | |
nix | 2 weeks ago | |
.gitignore | 2 months ago | |
README.md | 2 weeks ago | |
cabal.project | 2 weeks ago | |
flake.lock | 2 months ago | |
flake.nix | 2 months ago | |
fourmolu.yaml | 2 months ago | |
misskey-autorenote-bot.cabal | 3 days ago |
README.md
Misskey Autorenote Bot
A very simple bot that renotes every note that mentions it. Example instance (as per 4.04.2023) - https://shitpost.poridge.club/@b.
Building with Nix
-
Executable:
nix build
will create./result
symlink withbin/misskey-autorenote-bot
. -
Docker image:
nix bundle --bundler github:NixOS/bundlers#toDockerImage .#
will createmisskey-autorenote-bot-exe-misskey-autorenote-bot-0.1.0.tar.gz
symlink to Docker image. You can load it withdocker load < misskey-autorenote-bot-exe-misskey-autorenote-bot-0.1.0.tar.gz
.
Environment
MISSKEY_TOKEN
- token for bot to use.MISSKEY_URL
- URL of instance to use, without/api
. Example:https://shitpost.poridge.club
.MISSKEY_KEYWORDS
- keywords that will trigger renote (list of strings separated by newlines).MISSKEY_LOG
(optional) - log level. One ofDebug
,Info
,Warning
,Error
. Default isDebug
.MISSKEY_POLLING_DELAY
(optional) - polling delay in milliseconds. Default is 1000ms.
Example systemd unit file
[Unit]
After=network.target
[Service]
Environment="MISSKEY_URL=https://shitpost.poridge.club"
Environment="MISSKEY_TOKEN=XXX"
Environment="MISSKEY_LOG=Info"
ExecStart=/home/user/misskey-autorenote-bot/result/bin/misskey-autorenote-bot
Restart=always
RestartSec=5s