Reupload
这个提交包含在:
62
API/Main.js
62
API/Main.js
@ -1,31 +1,31 @@
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const 利刃 = __importStar(require("./Public"));
|
||||
const Core = __importStar(require("./../Core"));
|
||||
const Debug = require("./../Debug");
|
||||
Core.AddListener((Connect, Info) => {
|
||||
Info.Core = Core;
|
||||
if (Info.message == "更新利刃" && Debug.add.Interfaces.IsAdmin(Info.user_id)) {
|
||||
利刃.更新API();
|
||||
Core.frame.SendMsg(Connect, Info, "[利刃后端]更新成功!");
|
||||
}
|
||||
if (Info.message.substr(0, 4) == "利刃执行") {
|
||||
if (!(Debug.add.Interfaces.IsAdmin(Info.user_id))) {
|
||||
Core.frame.SendMsg(Connect, Info, "只有Ai管理员才有权使用本指令");
|
||||
return;
|
||||
}
|
||||
var Command = Info.message.replace("利刃执行", "").replace(/[/g, "[").replace(/]/g, "]");
|
||||
Core.frame.SendMsg(Connect, Info, 利刃.解析(Command, Info));
|
||||
}
|
||||
var 利刃Ret = 利刃.核心(Info);
|
||||
if (利刃Ret != "") {
|
||||
Core.frame.SendMsg(Connect, Info, 利刃Ret);
|
||||
}
|
||||
});
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const 利刃 = __importStar(require("./Public"));
|
||||
const Core = __importStar(require("./../Core"));
|
||||
const Debug = require("./../Debug");
|
||||
Core.AddListener((Connect, Info) => {
|
||||
Info.Core = Core;
|
||||
if (Info.message == "更新利刃" && Debug.add.Interfaces.IsAdmin(Info.user_id)) {
|
||||
利刃.更新API();
|
||||
Core.frame.SendMsg(Connect, Info, "[利刃后端]更新成功!");
|
||||
}
|
||||
if (Info.message.substr(0, 4) == "利刃执行") {
|
||||
if (!(Debug.add.Interfaces.IsAdmin(Info.user_id))) {
|
||||
Core.frame.SendMsg(Connect, Info, "只有Ai管理员才有权使用本指令");
|
||||
return;
|
||||
}
|
||||
var Command = Info.message.replace("利刃执行", "").replace(/[/g, "[").replace(/]/g, "]");
|
||||
Core.frame.SendMsg(Connect, Info, 利刃.解析(Command, Info));
|
||||
}
|
||||
var 利刃Ret = 利刃.核心(Info);
|
||||
if (利刃Ret != "") {
|
||||
Core.frame.SendMsg(Connect, Info, 利刃Ret);
|
||||
}
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户