koishijs / koishi-plugin-booru

Image service for Koishi | 最好的涩图插件!
https://booru.koishi.chat
MIT License
12 stars 8 forks source link

Feature: 实装权重,直接输入指令名booru抽取图片 #15

Closed medicago087 closed 1 year ago

medicago087 commented 1 year ago

Sources

Danbooru, Gelbooru, Konachan.com (NSFW), Konachan.net (SFW), Lolibooru, Lolicon, Pixiv, Safebooru, Yande.re

Describe the problem related to the feature request

权重未实装

Describe the solution you'd like

输入指令名booru,根据权重直接在所有图源中抽选图片,不存在时顺延至下一个图源

Describe alternatives you've considered

No response

Additional context

No response

MaikoTan commented 1 year ago

The weighted picking is already implemented in the commit https://github.com/koishijs/koishi-plugin-booru/commit/22d90a254358160ca387007b4501d7111b6a6baf#diff-9a4ceebe7c6f86856371906c3f061d3b56b7457022b05179884a113e7ced67e8

MaikoTan commented 1 year ago

And the iterate feature could be implemented in #8