Deliver Atom feed items on Misskey
 
 
Go to file
Efertone 18e55bb97f
continuous-integration/drone/push Build is passing Details
update deps
Signed-off-by: Efertone <efertone@pm.me>
2023-03-14 13:23:35 +01:00
cmd/kiki fix lint issues 2023-01-19 04:04:32 +00:00
pkg fix lint issues 2023-01-19 04:04:32 +00:00
test fix lint issues 2023-01-19 04:04:32 +00:00
.drone.yml update deps 2023-01-19 03:33:11 +00:00
.gitignore Initial commit 2020-03-27 17:16:07 +01:00
.golangci.yml fix lint issues 2023-01-19 04:04:32 +00:00
.goreleaser.yml main func fix 2022-03-19 18:51:51 +01:00
LICENSE Initial commit 2020-03-27 17:16:07 +01:00
Makefile try to add releaser 2022-03-19 18:46:25 +01:00
README.md Update README 2020-06-24 14:10:04 +02:00
config.example.yaml everything should be in place now 2020-06-24 12:49:11 +02:00
go.mod update deps 2023-03-14 13:23:35 +01:00
go.sum update deps 2023-03-14 13:23:35 +01:00

README.md

Kiki

Basic configuration:

# $HOME/.config/kiki/config.yaml
---
database:
  user: kiki
  name: kiki
  password: kiki
  host: localhost
  port: 5432

Optionally, you can specify with --config parameter.

Usage

Add User

# Misskey example
./kiki add-account --name="happy_bot" \
                   --api-token="user token from misskey" \
                   --base-url="https://slippy.xyz" \
                   --publisher="misskey"

Add feed to a user

./kiki add-feed --name="Happy News" --url="https://i-am-happy/newletter.atom" --user="happy_bot" --provider="atom"

Fetch

./kiki fetch

Create a post

Kiki is designed the way she is not able to post all the new items in one batch. Kiki will publish only the oldest one and mark it as posted.

./kiki publish

Cron job can be

*/15 * * * * /home/user/kiki fetch && /home/user/kiki publish