<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁]]></title><description><![CDATA[<h1>Mirai Administrator</h1>
<blockquote>
<p dir="auto">基于 Mirai Console 的 管理员 Bot 及其标准</p>
</blockquote>
<p dir="auto"><a href="https://github.com/cssxsh/mirai-administrator/releases" target="_blank" rel="noopener noreferrer nofollow ugc"><img src="https://img.shields.io/github/v/release/cssxsh/mirai-administrator" alt="Release" class=" img-responsive img-markdown" /></a><br />
<a href="https://repo1.maven.org/maven2/xyz/cssxsh/mirai/mirai-administrator/" target="_blank" rel="noopener noreferrer nofollow ugc"><img src="https://img.shields.io/github/downloads/cssxsh/mirai-administrator/total" alt="Downloads" class=" img-responsive img-markdown" /></a><br />
<a href="https://search.maven.org/artifact/xyz.cssxsh.mirai/mirai-administrator" target="_blank" rel="noopener noreferrer nofollow ugc"><img src="https://img.shields.io/maven-central/v/xyz.cssxsh.mirai/mirai-administrator" alt="maven-central" class=" img-responsive img-markdown" /></a><br />
<a href="https://www.codacy.com/gh/cssxsh/mirai-administrator/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=cssxsh/mirai-administrator&amp;utm_campaign=Badge_Grade" target="_blank" rel="noopener noreferrer nofollow ugc"><img src="https://app.codacy.com/project/badge/Grade/8be173fe96c74059bfedd6268b8e6f0c" alt="Codacy Badge" class=" img-responsive img-markdown" /></a></p>
<p dir="auto"><strong>使用前应该查阅的相关文档或项目</strong></p>
<ul>
<li><a href="https://github.com/mamoe/mirai/blob/dev/docs/UserManual.md" target="_blank" rel="noopener noreferrer nofollow ugc">User Manual</a></li>
<li><a href="https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand" target="_blank" rel="noopener noreferrer nofollow ugc">Permission Command</a></li>
<li><a href="https://github.com/project-mirai/chat-command" target="_blank" rel="noopener noreferrer nofollow ugc">Chat Command</a></li>
</ul>
<p dir="auto">本插件实现的功能有:</p>
<ul>
<li>联系人相关 自动审批，指令查看，用户留言</li>
<li>消息相关 发送消息，撤回消息</li>
<li>群管理相关 群消息审核，自动宵禁，自动清理不发言，禁言自动退群</li>
</ul>
<p dir="auto">本插件提供<a href="#%E6%9C%8D%E5%8A%A1%E6%8E%A5%E5%8F%A3">服务接口</a>以供其他插件拓展功能<br />
例如使用 <a href="https://github.com/gnuf0rce/mirai-content-censor" target="_blank" rel="noopener noreferrer nofollow ugc">Mirai Content Censor</a> 依靠百度API审查群消息<br />
例如使用 <a href="https://github.com/cssxsh/mirai-authenticator" target="_blank" rel="noopener noreferrer nofollow ugc">Mirai Authenticator</a> 验证加群请求</p>
<h2>MCL 指令安装</h2>
<p dir="auto"><strong>请确认 mcl.jar 的版本是 2.1.0+</strong><br />
<code>./mcl --update-package xyz.cssxsh.mirai:mirai-administrator --channel maven-stable --type plugin</code></p>
<h2>指令</h2>
<p dir="auto">注意: 使用前请确保可以 <a href="https://github.com/project-mirai/chat-command" target="_blank" rel="noopener noreferrer nofollow ugc">在聊天环境执行指令</a><br />
<code>&lt;...&gt;</code>中的是指令名<br />
<code>[...]</code>表示参数，当<code>[...]</code>后面带<code>?</code>时表示参数可选</p>
<p dir="auto">本插件指令权限ID 格式为 <code>xyz.cssxsh.mirai.plugin.mirai-administrator:command.*</code>, <code>*</code> 是指令的第一指令名<br />
例如 <code>/send to 12345</code> 的权限ID为 <code>xyz.cssxsh.mirai.plugin.mirai-administrator:command.send</code><br />
对 机器人发送的<strong>联系人请求</strong>通知消息 回复 <code>同意</code> 或 <code>不同意</code> 或 <code>拉黑</code> 即可处理<br />
插件提供黑名单功能，使用指令 <code>/contact black u12345</code>, 即可拉黑用户，Bot将不响应用户动作（包括其他插件的功能）</p>
<h3>AdminContactCommand</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">Command</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>/&lt;contact&gt; &lt;delete&gt; [contact]</code></td>
<td style="text-align:left">删除联系人</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;contact&gt; &lt;handle&gt; [id] [accept]? [black]?</code></td>
<td style="text-align:left">处理联系人申请</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;contact&gt; &lt;request&gt;</code></td>
<td style="text-align:left">查看申请列表</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;contact&gt; &lt;black&gt; {permitteeIds}</code></td>
<td style="text-align:left">拉黑</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;contact&gt; &lt;white&gt; {permitteeIds}</code></td>
<td style="text-align:left">取消拉黑</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;contact&gt; &lt;backup&gt;</code></td>
<td style="text-align:left">触发备份功能</td>
</tr>
</tbody>
</table>
<ol>
<li><code>id</code> 是 事件id 或 好友id 或 群id</li>
<li><code>accept</code> 和 <code>black</code> 参数为 <code>true</code>, <code>yes</code>, <code>enabled</code>, <code>on</code>, <code>1</code> 时表示 <code>true</code> (不区分大小写)</li>
<li>对 机器人发送的新联系人通知消息 回复 <code>同意</code> 或 <code>不同意</code> 或 <code>拉黑</code> 即可处理，详见 <a href="#%E8%81%94%E7%B3%BB%E4%BA%BA%E5%AE%A1%E6%89%B9%E9%85%8D%E7%BD%AE">联系人审批配置</a></li>
<li><code>permitteeIds</code> 是 权限系统的用户标识符，例如 <code>m12345.6789</code>, 可以提供多个 <a href="https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/Permissions.md#%E8%A2%AB%E8%AE%B8%E5%8F%AF%E4%BA%BA-id" target="_blank" rel="noopener noreferrer nofollow ugc">PermitteeId</a> 一次性拉黑/取消拉黑</li>
<li>黑名单通过 <code>@EventHandler(priority = EventPriority.HIGH, concurrency = ConcurrencyKind.LOCKED)</code> 拦截消息</li>
</ol>
<h3>AdminFriendCommand</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">Command</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>/&lt;friend&gt; &lt;list&gt;</code></td>
<td style="text-align:left">好友列表</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;friend&gt; &lt;delete&gt; [friend]</code></td>
<td style="text-align:left">删除好友</td>
</tr>
</tbody>
</table>
<h3>AdminGroupCommand</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">Command</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;list&gt;</code></td>
<td style="text-align:left">群列表</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;member&gt; [group]</code></td>
<td style="text-align:left">群成员</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;quit&gt; [group]</code></td>
<td style="text-align:left">退出群聊</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;kick&gt; [member] [reason]? [black]?</code></td>
<td style="text-align:left">踢出群员</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;nick&gt; [member] [nick]</code></td>
<td style="text-align:left">群昵称</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;title&gt; [member] [title]</code></td>
<td style="text-align:left">群头衔</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;mute&gt; [member] [second]</code></td>
<td style="text-align:left">禁言</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;quiet&gt; [group] [open]?</code></td>
<td style="text-align:left">全体禁言</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;admin&gt; [member] [operation]?</code></td>
<td style="text-align:left">设置管理员</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;announce&gt; [group]</code></td>
<td style="text-align:left">设置公告</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;group&gt; &lt;rank&gt; [group] {levels}</code></td>
<td style="text-align:left">设置等级头衔</td>
</tr>
</tbody>
</table>
<h3>AdminRecallCommand</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">Command</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>/&lt;recall&gt; [contact]?</code></td>
<td style="text-align:left">撤回消息</td>
</tr>
</tbody>
</table>
<ol>
<li>不指定<code>contact</code>时，可以通过<strong>回复消息</strong>指定要撤销的消息，如果没有指定，将尝试撤销最后一条不是由指令发送者发送的消息</li>
<li><code>contact</code>是群员时，将尝试撤销这个群员的最后一条消息</li>
<li><code>contact</code>是群或好友时，将尝试撤销bot的最后一条消息</li>
</ol>
<h3>AdminRegisteredCommand</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">Command</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>/&lt;registered&gt;</code></td>
<td style="text-align:left">查看已注册指令</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;reg&gt;</code></td>
<td style="text-align:left">查看已注册指令</td>
</tr>
</tbody>
</table>
<h3>AdminSendCommand</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">Command</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>/&lt;send&gt; &lt;groups&gt; [bot]? [at]? [second]?</code></td>
<td style="text-align:left">发送给所有群</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;send&gt; &lt;friends&gt; [bot]? [second]?</code></td>
<td style="text-align:left">发送给所有好友</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;send&gt; &lt;to&gt; [contact] [at]?</code></td>
<td style="text-align:left">发送给指定联系人</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;send&gt; &lt;nudge&gt; [user]</code></td>
<td style="text-align:left">戳一戳指定联系人</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;send&gt; &lt;log&gt; {addresses}</code></td>
<td style="text-align:left">备份日志到邮箱</td>
</tr>
</tbody>
</table>
<ol>
<li><code>bot</code> 参数在命令行模式下需要指定</li>
<li><code>at</code> 参数为 <code>true</code>, <code>yes</code>, <code>enabled</code>, <code>on</code>, <code>1</code> 时表示 <code>true</code>, 将附加一个At</li>
<li><code>second</code> 参数为 延迟的秒数 例如 <code>/send groups 123456 false 10</code></li>
<li><code>addresses</code> 参数为 邮箱地址</li>
</ol>
<h3>AdminTimerCommand</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="text-align:left">Command</th>
<th style="text-align:left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>/&lt;timer&gt; &lt;config&gt;</code></td>
<td style="text-align:left">显示当前设置</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;timer&gt; &lt;mute&gt; [moment] [cron] [group]?</code></td>
<td style="text-align:left">宵禁</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;timer&gt; &lt;cleaner&gt; [day] [cron] [group]?</code></td>
<td style="text-align:left">清理不发言</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;timer&gt; &lt;status&gt; [cron] [bot]?</code></td>
<td style="text-align:left">定时发送机器人状态</td>
</tr>
<tr>
<td style="text-align:left"><code>/&lt;timer&gt; &lt;message&gt; [cron] [target] [at]</code></td>
<td style="text-align:left">定时发送消息</td>
</tr>
</tbody>
</table>
<ol>
<li>
<p dir="auto"><code>group</code> 为 要操作的群，在群聊中可以不指定</p>
</li>
<li>
<p dir="auto"><code>cron</code>, 为 CRON 表达式, 由 <code>秒 分钟 小时 日 月 周</code> 组成<br />
例如 <code>0 0 1 * * ?</code> 表示每天 01:00 执行一次，<code>0 30 2 ? * 2-6</code> 表示星期一至星期五 每天 02:30 执行一次<br />
可以使用在线编辑器生成 <a href="https://www.bejson.com/othertools/cron/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.bejson.com/othertools/cron/</a><br />
为防止被 空格 分成多个参数，请使用 <code>"</code> 包裹参数</p>
</li>
<li>
<p dir="auto"><code>moment</code> 为 DURATION 表达式, 由 <code>PnDTnHnMn.nS</code> 组成<br />
例如 <code>P1DT2H3M4.5S</code> 表示 一天二小时三分钟四点五秒，<code>PT5H</code> 表示 五小时</p>
</li>
<li>
<p dir="auto">mute 指令，moment 小于 <code>0</code> 宵禁就会关闭<br />
例如 <code>/timer mute PT5H "0 0 1 ? * 2-6"</code>, 将会在 星期一到星期五的凌晨01:00 禁言 5 小时<br />
例如 <code>/timer mute PT0S "0 0 0 1 * ?"</code>, 将会 取消 禁言定时器</p>
</li>
<li>
<p dir="auto">day 单位为天数的发言期限, 小于 <code>0</code> 宵禁就会关闭<br />
例如 <code>/timer cleaner 365 "0 0 12 ? * 0"</code>, 将会 取消 禁言定时器</p>
</li>
</ol>
<h2>配置</h2>
<h3>联系人审批配置</h3>
<ol>
<li><code>AdminAutoApproverConfig.yml</code></li>
</ol>
<h3>禁言自动退群配置</h3>
<ol>
<li><code>AdminAutoQuitConfig.yml</code></li>
<li><code>mute_limit</code> 大于这个设置秒数的禁言会触发自动退群</li>
</ol>
<h3>留言配置</h3>
<ol>
<li><code>AdminCommentConfig.yml</code></li>
<li><code>xyz.cssxsh.mirai.plugin.mirai-administrator:comment.include</code> 作用: 拥有此权限的用户，可以给机器人留言</li>
</ol>
<h3>机器人上线消息配置</h3>
<ol>
<li><code>AdminOnlineMessageConfig.yml</code></li>
<li><code>xyz.cssxsh.mirai.plugin.mirai-administrator:online.include</code> 作用: 拥有此权限的群，会发送上线通知</li>
</ol>
<h3>消息审查及机器人所有者</h3>
<ol>
<li><code>AdminSetting.yml</code></li>
<li><code>censor_types</code> 可选值 <code>IMAGE, FLASH, SERVICE, APP, AUDIO, FORWARD, VIP, MARKET, MUSIC, POKE</code></li>
<li>正则词库, 须手动添加，将会加载 censor 文件夹中的 txt 文件，每一行对应一个正则匹配，会监听文件改动，无需重启</li>
</ol>
<h3>邮件配置</h3>
<ol>
<li><code>AdminMailConfig.yml</code> 配置一些默认的发送对象</li>
<li><code>admin.mail.properties</code> 配置邮箱账号等</li>
</ol>
<p dir="auto">格式参考</p>
<pre><code class="language-properties">mail.host=smtp.mail.qq.com
mail.auth=true
mail.user=xxx
mail.password=***
mail.from=cssxsh@qq.com
mail.store.protocol=smtp
mail.transport.protocol=smtp
# smtp
mail.smtp.starttls.enable=true
mail.smtp.auth=true
mail.smtp.timeout=15000
</code></pre>
<p dir="auto">QQ邮箱帮助： <a href="https://service.mail.qq.com/cgi-bin/help?subtype=1&amp;&amp;id=28&amp;&amp;no=1001256" target="_blank" rel="noopener noreferrer nofollow ugc">https://service.mail.qq.com/cgi-bin/help?subtype=1&amp;&amp;id=28&amp;&amp;no=1001256</a></p>
]]></description><link>https://mirai.mamoe.net/topic/972/mirai-administrator-机器人管理插件-好友-群管理-黑名单-宵禁</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 22:53:23 GMT</lastBuildDate><atom:link href="https://mirai.mamoe.net/topic/972.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Feb 2022 13:22:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Fri, 01 Mar 2024 04:15:25 GMT]]></title><description><![CDATA[<p dir="auto">请问机器人上线功能是否可以上线时不@全体成员？</p>
]]></description><link>https://mirai.mamoe.net/post/27393</link><guid isPermaLink="true">https://mirai.mamoe.net/post/27393</guid><dc:creator><![CDATA[年年兽兽]]></dc:creator><pubDate>Fri, 01 Mar 2024 04:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Tue, 27 Feb 2024 01:29:47 GMT]]></title><description><![CDATA[<p dir="auto">这个拉黑是指拉黑用户不能使用bot吗？还是拉黑后无法加群</p>
]]></description><link>https://mirai.mamoe.net/post/27382</link><guid isPermaLink="true">https://mirai.mamoe.net/post/27382</guid><dc:creator><![CDATA[JiaYicard]]></dc:creator><pubDate>Tue, 27 Feb 2024 01:29:47 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sat, 17 Feb 2024 12:11:01 GMT]]></title><description><![CDATA[<p dir="auto">为什么加群提示现在不发了，是我设置出了问题吗？</p>
]]></description><link>https://mirai.mamoe.net/post/27310</link><guid isPermaLink="true">https://mirai.mamoe.net/post/27310</guid><dc:creator><![CDATA[738765194]]></dc:creator><pubDate>Sat, 17 Feb 2024 12:11:01 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Mon, 05 Feb 2024 02:10:52 GMT]]></title><description><![CDATA[<p dir="auto">大佬您好，请问如果我想设置多个管理员账号，在AdminSetting.yml owner中应该怎么填写两个或两个以上的qq？</p>
]]></description><link>https://mirai.mamoe.net/post/27268</link><guid isPermaLink="true">https://mirai.mamoe.net/post/27268</guid><dc:creator><![CDATA[Diting6167]]></dc:creator><pubDate>Mon, 05 Feb 2024 02:10:52 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sat, 12 Aug 2023 15:59:06 GMT]]></title><description><![CDATA[<p dir="auto">这个上线通知怎么触发，/perm add * xyz.cssxsh.mirai.plugin.mirai-administrator:online.include还是没有通知</p>
]]></description><link>https://mirai.mamoe.net/post/25638</link><guid isPermaLink="true">https://mirai.mamoe.net/post/25638</guid><dc:creator><![CDATA[smilecat2788]]></dc:creator><pubDate>Sat, 12 Aug 2023 15:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Mon, 07 Aug 2023 08:55:00 GMT]]></title><description><![CDATA[<p dir="auto">请问可以设置多个机器人所有者吗？</p>
]]></description><link>https://mirai.mamoe.net/post/25510</link><guid isPermaLink="true">https://mirai.mamoe.net/post/25510</guid><dc:creator><![CDATA[qinghemuyu]]></dc:creator><pubDate>Mon, 07 Aug 2023 08:55:00 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Mon, 24 Jul 2023 11:53:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/2631">@kiri</a></p>
<p dir="auto">感谢反馈</p>
]]></description><link>https://mirai.mamoe.net/post/25339</link><guid isPermaLink="true">https://mirai.mamoe.net/post/25339</guid><dc:creator><![CDATA[cssxsh]]></dc:creator><pubDate>Mon, 24 Jul 2023 11:53:16 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sun, 23 Jul 2023 17:27:15 GMT]]></title><description><![CDATA[<p dir="auto">给邮件教程的一点提醒</p>
<p dir="auto">好像是tx更新了地址？<br />
现在腾讯smtp的地址是smtp.qq.com而不是smtp.mail.qq.com了<br />
端口587</p>
<p dir="auto">实测有效<br />
来自：<a href="https://service.mail.qq.com/detail/0/427" target="_blank" rel="noopener noreferrer nofollow ugc">https://service.mail.qq.com/detail/0/427</a></p>
]]></description><link>https://mirai.mamoe.net/post/25325</link><guid isPermaLink="true">https://mirai.mamoe.net/post/25325</guid><dc:creator><![CDATA[kiri]]></dc:creator><pubDate>Sun, 23 Jul 2023 17:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Thu, 15 Jun 2023 04:29:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/11408">@sjxkfnskdd</a></p>
<p dir="auto">×窗口导致的问题自己解决<br />
自己的问题非得发到我的插件发布贴里</p>
]]></description><link>https://mirai.mamoe.net/post/24556</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24556</guid><dc:creator><![CDATA[cssxsh]]></dc:creator><pubDate>Thu, 15 Jun 2023 04:29:31 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Thu, 15 Jun 2023 04:16:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/622">@cssxsh</a> <img src="/assets/uploads/files/1686802457888-52ca7107-fd66-40cd-883f-fad3119aadb1-image.png" alt="52ca7107-fd66-40cd-883f-fad3119aadb1-image.png" class=" img-responsive img-markdown" /> 我用了/stop指令关闭还是如此</p>
]]></description><link>https://mirai.mamoe.net/post/24555</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24555</guid><dc:creator><![CDATA[sjxkfnskdd]]></dc:creator><pubDate>Thu, 15 Jun 2023 04:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Thu, 15 Jun 2023 04:01:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/11408">@sjxkfnskdd</a></p>
<p dir="auto">你自己不正确关闭 mirai 导致的</p>
]]></description><link>https://mirai.mamoe.net/post/24552</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24552</guid><dc:creator><![CDATA[cssxsh]]></dc:creator><pubDate>Thu, 15 Jun 2023 04:01:17 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Thu, 15 Jun 2023 03:58:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/622">@cssxsh</a> 对了大佬，我最近还发现那个整合包好像有点问题，就是每次关闭cmd命令行之后似乎插件会重置成默认值，我本来改好的配置都失效了，比如auto login里保存的账号密码会恢复成默认的123456和空字符，其他插件config里的配置文件也是如此，而且mirai 的权限也需要重新给，/status都用不了。</p>
]]></description><link>https://mirai.mamoe.net/post/24551</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24551</guid><dc:creator><![CDATA[sjxkfnskdd]]></dc:creator><pubDate>Thu, 15 Jun 2023 03:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Wed, 14 Jun 2023 10:56:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/622">@cssxsh</a> 下载了个jdk17,问题已解决,谢谢帮忙</p>
]]></description><link>https://mirai.mamoe.net/post/24532</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24532</guid><dc:creator><![CDATA[sjxkfnskdd]]></dc:creator><pubDate>Wed, 14 Jun 2023 10:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Wed, 14 Jun 2023 09:59:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/11408">@sjxkfnskdd</a></p>
<p dir="auto">从日志来看你安装了 java 8<br />
我的这个插件需要 java 11</p>
]]></description><link>https://mirai.mamoe.net/post/24530</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24530</guid><dc:creator><![CDATA[cssxsh]]></dc:creator><pubDate>Wed, 14 Jun 2023 09:59:04 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Wed, 14 Jun 2023 04:54:51 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1686718372253-d2b39f47-d3c1-4947-96e1-9c77bddd3fe5-image.png" alt="d2b39f47-d3c1-4947-96e1-9c77bddd3fe5-image.png" class=" img-responsive img-markdown" /><br />
6.11公告中发布的 <a href="https://github.com/cssxsh/fix-protocol-version/actions/runs/5233985323" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/cssxsh/fix-protocol-version/actions/runs/5233985323</a> 的整合包 console-runtime 貌似无法成功加载这个插件</p>
]]></description><link>https://mirai.mamoe.net/post/24523</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24523</guid><dc:creator><![CDATA[sjxkfnskdd]]></dc:creator><pubDate>Wed, 14 Jun 2023 04:54:51 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Tue, 06 Jun 2023 03:39:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/622">@cssxsh</a> 在 <a href="/post/8421">Mirai Administrator 机器人管理插件，好友/群管理，黑名单，宵禁</a> 中说：</p>
<blockquote>
<p dir="auto">./mcl --update-package xyz.cssxsh.mirai:mirai-administrator --channel maven-stable --type plugin</p>
</blockquote>
]]></description><link>https://mirai.mamoe.net/post/24397</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24397</guid><dc:creator><![CDATA[xiaoe]]></dc:creator><pubDate>Tue, 06 Jun 2023 03:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Tue, 16 May 2023 08:52:20 GMT]]></title><description><![CDATA[<p dir="auto">求教，上线提醒这么写就好了吗<img src="/assets/uploads/files/1684227138496-fc0facfa-d7de-41a5-867a-fd56a7fe876b-%E5%9B%BE%E7%89%87.png" alt="fc0facfa-d7de-41a5-867a-fd56a7fe876b-图片.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://mirai.mamoe.net/post/24116</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24116</guid><dc:creator><![CDATA[rs610ucf7]]></dc:creator><pubDate>Tue, 16 May 2023 08:52:20 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sat, 13 May 2023 00:58:01 GMT]]></title><description><![CDATA[<p dir="auto">问题：好友多的账号好友列表/friend list拿不到，私聊少数人不回复。</p>
<p dir="auto">系统：windows sever 2012r2-x64<br />
mirai版本：2.14.0<br />
插件版本: 1.4.0<br />
java：17.0.6</p>
<p dir="auto">试过两个号</p>
<p dir="auto">A账号好友不多，50个不到 正常获取好友列表<br />
<img src="https://www.z4a.net/images/2023/05/13/QQ20230513083954.png" alt="A账号好友列表" class=" img-responsive img-markdown" /></p>
<p dir="auto">B账号好友有427人，friend list获取不到，只返回bot自身qq<br />
<img src="https://www.z4a.net/images/2023/05/13/QQ20230513082909.jpg" alt="B账号好友列表" class=" img-responsive img-markdown" /></p>
<p dir="auto">两个号都能正常获取/group list（就算B账号有318个群）<br />
<img src="https://www.z4a.net/images/2023/05/13/QQ20230513082932.jpg" alt="群列表" class=" img-responsive img-markdown" /><br />
<img src="https://www.z4a.net/images/2023/05/13/QQ20230513083132.jpg" alt="B账号好友数" class=" img-responsive img-markdown" /><br />
<img src="https://www.z4a.net/images/2023/05/13/QQ20230513083148.jpg" alt="B账号群数" class=" img-responsive img-markdown" /></p>
<p dir="auto">是mirai获取好友列表失败的问题吗？因为几个插件出现了对少数人私聊插件指令不回的情况（导致要拉群才能使用指令，甚至当事人是administrator设定的所有者也不回，刚上线时是正常回复的，过几十分钟就不行了，需要用其他插件主动向当事人发消息来激活一小会儿，）</p>
]]></description><link>https://mirai.mamoe.net/post/24112</link><guid isPermaLink="true">https://mirai.mamoe.net/post/24112</guid><dc:creator><![CDATA[kiri]]></dc:creator><pubDate>Sat, 13 May 2023 00:58:01 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sun, 16 Apr 2023 08:05:10 GMT]]></title><description><![CDATA[<p dir="auto">已改用gmail的smtp。功能正常！<br />
————————————————<br />
以下是原问题：</p>
<p dir="auto">想要一个bot下线提醒的功能，我开启了qq邮箱的smtp并在配置文件密码处填好了授权码，结果测试logout登出时一直报无法链接到host，<a href="http://xn--qqhostsmtp-m92pm08a5pbs5gr77c08mr1nu0c8up0h5eflc214b2k4ikvf.mail.qq.com" target="_blank" rel="noopener noreferrer nofollow ugc">我去qq邮箱的帮助文档里也看到host是smtp.mail.qq.com</a></p>
<p dir="auto">mirai版本2.14.0<br />
mcl版本2.1.2<br />
administrator版本1.3.3<br />
以下是报错：</p>
<pre><code>2023-04-16 08:07:03 I/Bot.2040209149: Bot cancelled: Job was cancelled                                                  
2023-04-16 08:07:03 E/mirai-administrator: 邮件发送失败                                                                 
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.mail.qq.com, 25; timeout -1;                 
nested exception is:                                                                                                          
java.net.UnknownHostException: smtp.mail.qq.com                                                                         
    at mirai-administrator-1.3.2.mirai2.jar[private]//com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2259)                                                                                                                           
    at mirai-administrator-1.3.2.mirai2.jar[private]//com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:754)                                                                                                                       
    at mirai-administrator-1.3.2.mirai2.jar[shared]//jakarta.mail.Service.connect(Service.java:364)                         
    at mirai-administrator-1.3.2.mirai2.jar[shared]//jakarta.mail.Service.connect(Service.java:222)                         
    at mirai-administrator-1.3.2.mirai2.jar[shared]//jakarta.mail.Service.connect(Service.java:171)                         
    at mirai-administrator-1.3.2.mirai2.jar[shared]//jakarta.mail.Transport.send0(Transport.java:230)                       
    at mirai-administrator-1.3.2.mirai2.jar[shared]//jakarta.mail.Transport.send(Transport.java:100)                        
    at mirai-administrator-1.3.2.mirai2.jar//xyz.cssxsh.mirai.admin.MiraiAdministrator$handle$15.invokeSuspend(MiraiAdministrator.kt:546)                                                                                                           
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)                               
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)                                                         
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)                                
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)                       
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)                         
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)                       
Caused by: java.net.UnknownHostException: smtp.mail.qq.com                                                                      
    at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)                                                   
    at java.base/java.net.SocksSocketImpl.connect(Unknown Source)                                                           
    at java.base/java.net.Socket.connect(Unknown Source)                                                                    
    at java.base/java.net.Socket.connect(Unknown Source)                                                                    
    at mirai-administrator-1.3.2.mirai2.jar[private]//com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:361)                                                                                                                          
    at mirai-administrator-1.3.2.mirai2.jar[private]//com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:236)                                                                                                                             
    at mirai-administrator-1.3.2.mirai2.jar[private]//com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
    ... 13 more
</code></pre>
]]></description><link>https://mirai.mamoe.net/post/23641</link><guid isPermaLink="true">https://mirai.mamoe.net/post/23641</guid><dc:creator><![CDATA[kiri]]></dc:creator><pubDate>Sun, 16 Apr 2023 08:05:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sat, 25 Mar 2023 02:21:38 GMT]]></title><description><![CDATA[<p dir="auto">请求添加 关键词回复功能 已开issue <a href="https://github.com/cssxsh/mirai-administrator/issues/22" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/cssxsh/mirai-administrator/issues/22</a></p>
<div class="row github-embeds-container">
    
    
        <div class="col-md-6">
            <div class="github-embed panel panel-default">
                <div class="panel-body">
                    <div class="meta">
                        <img class="author-picture not-responsive" src="https://avatars.githubusercontent.com/u/109905194?v=4" title="QSlotus" />
                        <a href="https://github.com/QSlotus"><span class="username">QSlotus</span></a> created this issue <span class="timeago" title="2023-03-25T02:18:07Z"></span> in <a href="//github.com/cssxsh/mirai-administrator">cssxsh/mirai-administrator</a>
                    </div>
                    <h3>
                        <span class="label label-default open pull-right">open</span>
                        <a href="https://github.com/cssxsh/mirai-administrator/issues/22">关键词回复功能</a>
                        <span class="number">#22</span>
                    </h3>
                </div>
            </div>
        </div>
    
    
    
</div>]]></description><link>https://mirai.mamoe.net/post/23149</link><guid isPermaLink="true">https://mirai.mamoe.net/post/23149</guid><dc:creator><![CDATA[QSlotus]]></dc:creator><pubDate>Sat, 25 Mar 2023 02:21:38 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sat, 25 Feb 2023 09:31:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/622">@cssxsh</a> 开了，<a href="https://github.com/cssxsh/mirai-administrator/issues/21" target="_blank" rel="noopener noreferrer nofollow ugc">#21</a></p>
]]></description><link>https://mirai.mamoe.net/post/22288</link><guid isPermaLink="true">https://mirai.mamoe.net/post/22288</guid><dc:creator><![CDATA[MAX_XiaoKui]]></dc:creator><pubDate>Sat, 25 Feb 2023 09:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to Mirai Administrator 机器人管理插件，好友&#x2F;群管理，黑名单，宵禁 on Sat, 25 Feb 2023 08:51:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/1642">@MAX_XiaoKui</a></p>
<p dir="auto">有条件开 issue</p>
]]></description><link>https://mirai.mamoe.net/post/22287</link><guid isPermaLink="true">https://mirai.mamoe.net/post/22287</guid><dc:creator><![CDATA[cssxsh]]></dc:creator><pubDate>Sat, 25 Feb 2023 08:51:35 GMT</pubDate></item></channel></rss>