This commit is contained in:
1-6
2023-07-31 13:31:58 +08:00
parent 1690a2139c
commit 9ea88a080a
17 changed files with 613 additions and 245 deletions
+9 -1
View File
@@ -342,6 +342,7 @@ var typeat = `declare class Sender {
getPlatform(): Promise<string>;
getBotId(): Promise<string>;
getContent(): Promise<string>;
isAdmin(): Promise<boolean>;
param(key: number | string): Promise<string>;
setContent(content: string): Promise<undefined>;
continue(): Promise<undefined>;
@@ -427,6 +428,8 @@ interface CQParams {
declare let utils: {
buildCQTag: (type: string, params: CQParams, prefix?: string) => string;
parseCQText: (text: string, prefix?: string) => (string | CQItem)[];
image: (url: string) => string;
video: (url: string) => string;
};
declare let console: {
log(...args: any[]): void;
@@ -447,5 +450,10 @@ func defaultScript(title string) string {
* @version v1.0.0
*/
const { sender: s, Bucket, Adapter, sleep, utils, console } = require("sillygirl");`
const {
sender: s,
Bucket,
utils: { buildCQTag, image, video },
} = require("sillygirl");
`
}