x
This commit is contained in:
+2
-2
@@ -24,8 +24,8 @@ macos编译:
|
||||
cp /Users/a1-6/Code/sillyplus/proto3/dist/sillygirl.js /Users/a1-6/Code/node/node-v18.16.1/lib/sillygirl.js && cd /Users/a1-6/Code/node/node-v18.16.1 && ninja -C out/Release && cp out/Release/node /Users/a1-6/Code/nodes/node_darwin_arm64
|
||||
|
||||
#压缩
|
||||
cd /Users/a1-6/Code/nodes/node_darwin_arm64 && zip node_darwin_arm64.zip node
|
||||
cd /Users/a1-6/Code/nodes/node_linux_amd64 && zip node_linux_amd64.zip node
|
||||
cd /Users/a1-6/Code/nodes/node_darwin_arm64
|
||||
cd /Users/a1-6/Code/nodes/node_linux_amd64
|
||||
|
||||
##
|
||||
git add . && git commit -m "x" && git push
|
||||
Vendored
+1
-1
@@ -28,7 +28,7 @@ declare class Sender {
|
||||
allow_users?: string[];
|
||||
prohibit_users?: string[];
|
||||
persistent?: boolean;
|
||||
}): Promise<Sender>;
|
||||
}): Promise<Sender | undefined>;
|
||||
holdOn(str: string): string;
|
||||
reply(content: string): Promise<string | undefined>;
|
||||
action(options: any): Promise<any | undefined>;
|
||||
|
||||
+4
-2
@@ -237,8 +237,8 @@ class Sender {
|
||||
call.cancel();
|
||||
return;
|
||||
}
|
||||
let s = new Sender(response.uuid);
|
||||
if (options?.handle) {
|
||||
let s = response.uuid ? new Sender(response.uuid) : undefined;
|
||||
if (options?.handle && s) {
|
||||
// console.log(`options?.handle`, options.persistent)
|
||||
let obj = options?.handle(s);
|
||||
if (typeof obj == "string") {
|
||||
@@ -538,7 +538,9 @@ class Adapter {
|
||||
this.bot_id = options.bot_id;
|
||||
if (options.replyHandler) {
|
||||
const call = client.AdapterRegist();
|
||||
// let callback: any = ;
|
||||
call.on("data", async (response) => {
|
||||
// console.log("start on data")
|
||||
let message = JSON.parse(response.value);
|
||||
const { echo, __type__ } = message;
|
||||
delete message.__type__;
|
||||
|
||||
+3
-3
@@ -230,7 +230,7 @@ class Sender {
|
||||
allow_users?: string[]; // 用户白名单
|
||||
prohibit_users?: string[]; // 群聊白名单
|
||||
persistent?: boolean; //持久化监听
|
||||
}): Promise<Sender> {
|
||||
}): Promise<Sender | undefined> {
|
||||
return new Promise(
|
||||
async (resolve, reject) => {
|
||||
let params: any = {
|
||||
@@ -259,8 +259,8 @@ class Sender {
|
||||
call.cancel();
|
||||
return;
|
||||
}
|
||||
let s = new Sender(response.uuid);
|
||||
if (options?.handle) {
|
||||
let s = response.uuid ? new Sender(response.uuid) : undefined;
|
||||
if (options?.handle && s) {
|
||||
// console.log(`options?.handle`, options.persistent)
|
||||
let obj = options?.handle(s);
|
||||
if (typeof obj == "string") {
|
||||
|
||||
Reference in New Issue
Block a user