koishi-plugin-common
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1
@@ -0,0 +0,0 @@ import { Context, Meta, UserField, CommandConfig, GroupField, UserData, GroupData } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { App } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Context, CommandConfig } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Context, CommandConfig, Meta } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Context, CommandConfig } from 'koishi-core'; | ||
export default function apply(ctx: Context, config?: CommandConfig): void; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Context, CommandConfig } from 'koishi-core'; | ||
export default function (ctx: Context, options: CommandConfig): void; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Context, CommandConfig } from 'koishi-core'; | ||
export default function apply(ctx: Context, options: CommandConfig): void; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Context, CommandConfig } from 'koishi-core'; | ||
export default function apply(ctx: Context, options: CommandConfig): void; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Context, CommandConfig } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Context, UserField, UserData, CommandConfig } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Context, CommandConfig, UserType } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Meta, UserData, Context, UserField, CommandConfig } from 'koishi-core'; |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (options.global) { | ||
const users = await ctx.app.database.getAllUsers(['id', 'name', ...rank.fields]); | ||
const users = await ctx.app.database.getUsers(['id', 'name', ...rank.fields]); | ||
data = users.map(user => ({ user, name: user.name })); | ||
@@ -46,0 +46,0 @@ } |
@@ -0,0 +0,0 @@ import { GroupContext } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { App, Meta } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Context } from 'koishi-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
import { App, Meta } from 'koishi-core'; | ||
export declare type WelcomeMessage = string | ((meta: Meta<'notice'>) => string | Promise<string>); | ||
export default function apply(ctx: App, message?: WelcomeMessage): void; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "koishi-plugin-common", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.1", | ||
"main": "dist/index.js", | ||
@@ -12,20 +12,18 @@ "typings": "dist/index.d.ts", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/koishijs/koishi.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/koishijs/koishi/issues" | ||
}, | ||
"homepage": "https://github.com/koishijs/koishi/tree/master/packages/plugin-common#readme", | ||
"devDependencies": { | ||
"@types/node": "^12.12.14", | ||
"@typescript-eslint/eslint-plugin": "^2.9.0", | ||
"@typescript-eslint/parser": "^2.9.0", | ||
"eslint": "^6.7.1", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-node": "^10.0.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"husky": "^3.1.0", | ||
"koishi-database-mysql": "^1.0.0-alpha.0", | ||
"typescript": "^3.7.2" | ||
"koishi-database-mysql": "^1.0.0-alpha.0" | ||
}, | ||
"dependencies": { | ||
"koishi-core": "^1.0.0-alpha.0", | ||
"koishi-core": "^1.0.0-alpha.1", | ||
"koishi-utils": "^1.0.0-alpha.0" | ||
} | ||
} |
# [koishi-plugin-common](https://koishijs.github.io/plugins/common.html) | ||
[](https://www.npmjs.com/package/koishi-plugin-common) | ||
koishi-plugin-common 包含了一些基本插件,它们在你使用 `koishi` 库时是默认安装的。尽管如此,你仍然可以在 `koishi.config.js` 中显式地配置或禁用其中的一些功能: | ||
@@ -53,5 +55,3 @@ | ||
::: tip 提示 | ||
这个插件的默认行为已经包含了复读、检测重复复读和检测打断复读,但是不包含打断复读。如果希望修改这种行为,你需要手动覆盖这其中的部分配置。 | ||
::: | ||
**提示:**这个插件的默认行为已经包含了复读、检测重复复读和检测打断复读,但是不包含打断复读。如果希望修改这种行为,你需要手动覆盖这其中的部分配置。 | ||
@@ -117,5 +117,3 @@ ## 插件:respondent | ||
::: warning 注意 | ||
由于 CoolQ 的机制问题,机器人刚加某个群时可能无法获取成员列表,从而导致插件无法运行。遇到这种情况一般等待 1-2 天即可恢复正常。 | ||
::: | ||
**注意:**由于 CoolQ 的机制问题,机器人刚加某个群时可能无法获取成员列表,从而导致插件无法运行。遇到这种情况一般等待 1-2 天即可恢复正常。 | ||
@@ -208,5 +206,3 @@ ## 插件:requestHandler | ||
::: tip 提示 | ||
Koishi 的命令行工具使用**子进程**来实现对机器人的管理。当子进程退出时,主进程可以通过查看 exit code 来确定退出的原因,并执行相应的操作。 | ||
::: | ||
**提示:**Koishi 的命令行工具使用**子进程**来实现对机器人的管理。当子进程退出时,主进程可以通过查看 exit code 来确定退出的原因,并执行相应的操作。 | ||
@@ -250,5 +246,3 @@ ## 指令:info | ||
::: warning 注意 | ||
由于 CoolQ 的限制,本功能只能由四季酱的好友使用。 | ||
::: | ||
**注意:**由于 CoolQ 的限制,本功能只能由四季酱的好友使用。 | ||
@@ -255,0 +249,0 @@ ## 指令:callme |
@@ -0,0 +0,0 @@ import { Context, User, userFlags, UserFlag, Meta, UserField, getTargetId, CommandConfig, GroupField, UserData, GroupData } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { GroupContext, GroupMemberInfo, injectMethods, GroupRole, App } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, appMap, CommandConfig } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, CommandConfig, Meta } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, CommandConfig } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { MetaTypeMap, Context, CommandConfig } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, CommandConfig } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, Command, UserData, CommandConfig, MessageMeta } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, CommandConfig } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, getSenderName, UserField, UserData, getTargetId, CommandConfig } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context, getSenderName, CommandConfig, UserType } from 'koishi-core' |
@@ -58,3 +58,3 @@ import { Meta, GroupMemberInfo, UserData, Context, UserField, CommandConfig } from 'koishi-core' | ||
if (options.global) { | ||
const users = await ctx.app.database.getAllUsers(['id', 'name', ...rank.fields]) | ||
const users = await ctx.app.database.getUsers(['id', 'name', ...rank.fields]) | ||
data = users.map(user => ({ user, name: user.name })) | ||
@@ -61,0 +61,0 @@ } else { |
@@ -0,0 +0,0 @@ import { GroupContext } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { App, Meta } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { Context } from 'koishi-core' |
@@ -0,0 +0,0 @@ import { App, Meta } from 'koishi-core' |
{ | ||
"extends": "../tsconfig.base", | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "commonjs", | ||
"composite": true, | ||
"incremental": true, | ||
"esModuleInterop": true, | ||
"moduleResolution": "node", | ||
"declaration": true, | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
"rootDir": "src", | ||
}, | ||
"include": [ | ||
"." | ||
] | ||
"src", | ||
], | ||
} |
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
2
0
0
243552
1857
333
Updatedkoishi-core@^1.0.0-alpha.1