x
This commit is contained in:
@@ -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");
|
||||
`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user