mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 18:20:27 +00:00
上一个随机图片未完成前拒绝请求
This commit is contained in:
26
api/msgext/msgext.go
Normal file
26
api/msgext/msgext.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package msgext
|
||||
|
||||
import (
|
||||
"github.com/wdvxdr1123/ZeroBot/message"
|
||||
)
|
||||
|
||||
//@全体成员
|
||||
func AtAll() message.MessageSegment {
|
||||
return message.MessageSegment{
|
||||
Type: "at",
|
||||
Data: map[string]string{
|
||||
"qq": "all",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
//无缓存发送图片
|
||||
func ImageNoCache(url string) message.MessageSegment {
|
||||
return message.MessageSegment{
|
||||
Type: "image",
|
||||
Data: map[string]string{
|
||||
"file": url,
|
||||
"cache": "0",
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user