File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -354,6 +354,14 @@ print("run[CQ:image,file="+j["img"]+"]")
354354
355355 - [x] waifu | 随机waifu(从[ 100000个AI生成的waifu] ( https://www.thiswaifudoesnotexist.net/ ) 中随机一位)
356356
357+ </details >
358+ <details >
359+ <summary >支付宝到账语音</summary >
360+
361+ ` import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/alipayvoice" `
362+
363+ - [x] 支付宝到账 1
364+
357365</details >
358366<details >
359367 <summary >base16384加解密</summary >
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ import (
6161 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/ahsai" // ahsai tts
6262 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/ai_false" // 服务器监控
6363 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/aiwife" // 随机老婆
64+ _ "github.com/FloatTech/ZeroBot-Plugin/plugin/alipayvoice" // 支付宝到账语音
6465 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/b14" // base16384加解密
6566 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/baidu" // 百度一下
6667 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/base64gua" // base64卦加解密
Original file line number Diff line number Diff line change 1+ // Package alipayvoice 支付宝到账语音
2+ package alipayvoice
3+
4+ import (
5+ "fmt"
6+ "strings"
7+
8+ ctrl "github.com/FloatTech/zbpctrl"
9+ "github.com/FloatTech/zbputils/control"
10+ zero "github.com/wdvxdr1123/ZeroBot"
11+ "github.com/wdvxdr1123/ZeroBot/message"
12+ )
13+
14+ const (
15+ alipayvoiceURL = "https://mm.cqu.cc/share/zhifubaodaozhang/mp3/%v.mp3"
16+ )
17+
18+ func init () { // 插件主体
19+ engine := control .Register ("alipayvoice" , & ctrl.Options [* zero.Ctx ]{
20+ DisableOnDefault : false ,
21+ Help : "支付宝到账语音\n " +
22+ "- 支付宝到账 1" ,
23+ PrivateDataFolder : "alipayvoice" ,
24+ })
25+
26+ // 开启
27+ engine .OnPrefix (`支付宝到账` ).SetBlock (true ).
28+ Handle (func (ctx * zero.Ctx ) {
29+ args := ctx .State ["args" ].(string )
30+ ctx .SendChain (message .Record (fmt .Sprintf (alipayvoiceURL , strings .TrimSpace (args ))))
31+ })
32+ }
You can’t perform that action at this time.
0 commit comments