ACGImage

package module
v1.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: GPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ZeroBot-ACGImage

基于Zerobot-ACGImage-Classify编写的二次元图片随机、鉴别插件。

使用说明

import _ "github.com/FloatTech/ZeroBot-ACGImage

本插件检测如下口令

评价图片

发送一张图片并使用AI进行评分。

设置随机图片网址[url]

设置随机图片/直接随机调用的API网址。

随机图片

从随机图片API随机一张二次元图片,并回复其评价。默认从loliconapi随机且开启r18模式,但是r18图片不会发出而是以提示给出。若想获取图片,可访问saki.fumiama.top/img?path=提示的汉字。

本口令有5秒CD。

直接随机

仅管理可用,从设置的随机图片网址获取一张图片,不做r18检测直接发送,后果自负。如果出r18图可尽快通过发送"太涩了"撤回。

本口令有5秒CD。

太涩了

手动撤回最近发的一张图,无法撤回更多。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LOLI_PROXY_URL = "http://sayuri.fumiama.top:62002/dice?class=0&loli=true&r18=true"
	//r18有一定保护,一般不会发出图片
	RANDOM_API_URL = "&loli=true&r18=true"
)

Functions

func HasPicture

func HasPicture() zero.Rule

HasPicture 消息含有图片返回 true

func MustHasPicture

func MustHasPicture() zero.Rule

MustHasPicture 消息不存在图片阻塞60秒至有图片,超时返回 false

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址