提交 fa919910 编写于 作者: X xuelang532777032

Auto Commit

上级 a43591e0
......@@ -170,7 +170,7 @@ const userEvent = {
async hli(room, text) {
let m = this;
let msg = await m.ajax(`https://api.lolimi.cn/API/huang/api.php`, {}, "get")
await room.say(msg.data.text)
await room.say(msg.data.text+m.sayEnd)
},
//微信机器人人
async weixinChatbot(room, text) {
......@@ -193,7 +193,7 @@ const userEvent = {
if (text.indexOf("解第") != -1) {
answer = JSON.parse(answer).multimsg[0]
}
await room.say(answer)
await room.say(answer+m.sayEnd)
},
//取名
async naming(room, text) {
......@@ -215,10 +215,8 @@ const userEvent = {
str += v.naming + ""
})
str = str.substr(0, str.length - 1)
await room.say(str)
await room.say(str+m.sayEnd)
},
//转语言
async toVoice(room, text) {
let m = this;
......@@ -231,7 +229,7 @@ const userEvent = {
async answer(room, text) {
let m = this;
let res = await m.ajax("https://api.wer.plus/api/bay", null, "get")
debugger
m.sayMP3(res.data.data.comment.split("|")[0], room)
},
......@@ -250,7 +248,7 @@ const userEvent = {
var radomArr = res.data.result
var randomIndex = Math.floor(Math.random() * radomArr.length)
var obj = radomArr[randomIndex];
await room.say(obj.date + ":" + obj.title)
await room.say(obj.date + ":" + obj.title+m.sayEnd)
},
//去水印 1
......@@ -260,8 +258,7 @@ const userEvent = {
// await room.say(url)
let res = await this.ajax("http://api.xn--7gqa009h.top/api/dy_jx?a=" + text, {}, "get")
console.log(res.data.url)
await room.say(text + "解析后下载地址:" + res.data.url)
await room.say(text + "解析后下载地址:" + res.data.url+m.sayEnd)
}
},
......@@ -269,8 +266,7 @@ const userEvent = {
async animationPic(room, text) {
let res = await this.ajax("https://api.oick.cn/random/api.php?type=pc", {}, "get")
this.sayImg(room, res.request.protocol + "//" + res.request.host + res.request.path)
await room.say(m.sayEnd)
},
ajax: ajax,
async sayImg(room, url) {
......@@ -287,6 +283,7 @@ const userEvent = {
null, "get")
fileBox = FileBox.fromUrl(res.data.music);
await room.say(fileBox)
await room.say(m.sayEnd)
},
sayEnd:"/n来至公众号:'程序员野区'的作者开源项目/n--------/nhttps://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzI1NjAxODkzMg=="
sayEnd:"\n----------------\n来至公众号:'程序员野区'的作者开源项目\nhttps://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzI1NjAxODkzMg=="
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册