Bot that posts random images from Safebooru, Gelbooru and Danbooru
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.
dtluna 43fb512040 Fix repo name 2 months ago
config Add Gelbooru support 2 months ago
constants Add posting from safebooru 3 months ago
mastoapi Add tests for MakePost 2 months ago
selection Add Gelbooru support 2 months ago
.gitignore Initialize goreleaser 3 months ago
.goreleaser.yml Fix repo name 2 months ago
LICENSE Initial commit 3 months ago
README.md Update README.md 2 months ago
go.mod Update go.mod and go.sum 2 months ago
go.sum Update go.mod and go.sum 2 months ago
main.go Use config value instead of pointer 2 months ago
main_test.go Add tests for Parse 2 months ago

README.md

booru-bot

Bot that posts random images from Safebooru, Gelbooru and Danbooru

Installation

Download a release from releases page

or using go get:

$ go get -u -v git.dtluna.net/dtluna/booru-bot

Configuration

A default config will be generated in $XDG_CONFIG_DIR/booru-bot/config.ini or in a location specified with -c option.

Config example:

; server_url should be specified with https:// or http://
server_url      = https://social.dtluna.net
client_id       =
client_secret   =
access_token    =
nsfw            = false ; or true if you want to hind your images behind spoilers
; one of direct, private, unlisted or public
visibility      = public
; schedule in cron format https://godoc.org/github.com/robfig/cron
schedule        = @every 30m
; you can use {{ .ImageURL }}, {{ .Source }}, {{ .Tags }} and {{ .Booru }} template variables
status_template =
tags            = swimsuit, fate_(series)

[safebooru]
enabled = true
tags    =

[danbooru]
enabled = true
tags    =

[gelbooru]
enabled = false
tags    =