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.
 
 
aka_dude 4c29a741df
Fix logging
3 days ago
app Fix logging 3 days ago
nix Add MISSKEY_KEYWORDS to nix module 2 weeks ago
.gitignore Add README 2 months ago
README.md Add MISSKEY_KEYWORDS to nix module 2 weeks ago
cabal.project Do not renote twice 2 weeks ago
flake.lock Init 2 months ago
flake.nix Init 2 months ago
fourmolu.yaml Init 2 months ago
misskey-autorenote-bot.cabal Move LoggerE to Effectful.Colog.Dynamic 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 with bin/misskey-autorenote-bot.

  • Docker image:

    nix bundle --bundler github:NixOS/bundlers#toDockerImage .# will create misskey-autorenote-bot-exe-misskey-autorenote-bot-0.1.0.tar.gz symlink to Docker image. You can load it with docker 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 of Debug, Info, Warning, Error. Default is Debug.
  • 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