koishi-plugin-ll-schedule 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +26 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -526,6 +526,32 @@ function apply(ctx, config) {
|
|
|
526
526
|
return '📋 订阅列表:\n' + lines.join('\n')
|
|
527
527
|
})
|
|
528
528
|
|
|
529
|
+
ctx.command('我的ID', '查看自己的账号信息(openid/群ID)')
|
|
530
|
+
.action(({ session }) => {
|
|
531
|
+
logger.info('[schedule] 命令被调用: 我的ID')
|
|
532
|
+
const lines = [
|
|
533
|
+
'👤 我的账号信息:',
|
|
534
|
+
`平台:${session.platform}`,
|
|
535
|
+
`用户ID:${session.userId}`,
|
|
536
|
+
]
|
|
537
|
+
if (session.guildId) lines.push(`当前群ID:${session.guildId}`)
|
|
538
|
+
if (session.channelId && session.channelId !== session.guildId) lines.push(`频道ID:${session.channelId}`)
|
|
539
|
+
return lines.join('\n')
|
|
540
|
+
})
|
|
541
|
+
|
|
542
|
+
ctx.command('lls.me', '查看自己的账号信息(备用入口)')
|
|
543
|
+
.action(({ session }) => {
|
|
544
|
+
logger.info('[schedule] 命令被调用: lls.me')
|
|
545
|
+
const lines = [
|
|
546
|
+
'👤 我的账号信息:',
|
|
547
|
+
`平台:${session.platform}`,
|
|
548
|
+
`用户ID:${session.userId}`,
|
|
549
|
+
]
|
|
550
|
+
if (session.guildId) lines.push(`当前群ID:${session.guildId}`)
|
|
551
|
+
if (session.channelId && session.channelId !== session.guildId) lines.push(`频道ID:${session.channelId}`)
|
|
552
|
+
return lines.join('\n')
|
|
553
|
+
})
|
|
554
|
+
|
|
529
555
|
// 备用命令入口(避免与其他插件的 schedule 命令冲突)
|
|
530
556
|
ctx.command('lls', 'll-schedule 管理(备用入口)')
|
|
531
557
|
.action(() => {
|