Skip to content

Commit 3a07967

Browse files
committed
Site updated: 2026-03-30 17:17:17
1 parent ca42b90 commit 3a07967

20 files changed

Lines changed: 24 additions & 21 deletions

File tree

2026/03/21/QQ-Discord-Bot-搭建/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<meta property="og:locale">
1717
<meta property="og:image" content="https://axis5hacker.github.io/img/404.jpg">
1818
<meta property="article:published_time" content="2026-03-21T13:20:54.000Z">
19-
<meta property="article:modified_time" content="2026-03-29T17:55:27.261Z">
19+
<meta property="article:modified_time" content="2026-03-30T09:16:54.488Z">
2020
<meta property="article:author" content="AXIS5">
2121
<meta property="article:tag" content="bot, QQbot, nonebot2, python">
2222
<meta name="twitter:card" content="summary">
@@ -62,7 +62,7 @@
6262

6363
<!-- Variable -->
6464
<script>window.ASYNC_CONFIG = {"hostname":"axis5hacker.github.io","author":"AXIS5","root":"/","typed_text":["AXIS5","an amateur programmer","Dynamix Fanmade Charter","Weirdcore lover","a video uploader on Bilibili","a UPRPRC elite member","Dynamix Explode Admin","a student in Cyber Security fields"],"theme_version":"2.2.7","theme":{"switch":true,"default":"style-light"},"favicon":{"logo":"/avatar/Chibi.png","icon16":"/img/favicon.svg","icon32":"/img/favicon.svg","apple_touch_icon":null,"webmanifest":null,"visibilitychange":false,"hidden":"/failure.ico","show_text":"(/≧▽≦/)咦!又好了!","hide_text":"(●—●)喔哟,崩溃啦!","dark_logo":"/avatar/pain100.jpg"},"i18n":{"placeholder":"搜索文章...","empty":"找不到您查询的内容: ${query}","hits":"找到 ${hits} 条结果","hits_time":"找到 ${hits} 条结果(用时 ${time} 毫秒)","author":"本文作者:","copyright_link":"本文链接:","copyright_license_title":"版权声明:","copyright_license_content":"本博客所有文章除特别声明外,均默认采用 undefined 许可协议。","copy_success":"复制成功","copy_failure":"复制失败","open_read_mode":"进入阅读模式","exit_read_mode":"退出阅读模式","notice_outdate_message":"距离上次更新已经 undefined 天了, 文章内容可能已经过时。","sticky":"置顶","just":"刚刚","min":"分钟前","hour":"小时前","day":"天前","month":"个月前"},"swup":false,"plugin":{"flickr_justified_gallery":"https://unpkg.com/flickr-justified-gallery@latest/dist/fjGallery.min.js"},"icons":{"sun":"far fa-sun","moon":"far fa-moon","play":"fas fa-play","email":"far fa-envelope","next":"fas fa-arrow-right","calendar":"far fa-calendar-alt","clock":"far fa-clock","user":"far fa-user","back_top":"fas fa-arrow-up","close":"fas fa-times","search":"fas fa-search","reward":"fas fa-hand-holding-usd","toc_tag":"fas fa-th-list","read":"fas fa-book-reader","arrows":"fas fa-arrows-alt-h","double_arrows":"fas fa-angle-double-down","copy":"fas fa-copy"},"icontype":"font","highlight":{"plugin":"highlighjs","theme":true,"copy":true,"lang":true,"title":"default","height_limit":false},"toc":{"post_title":true},"live_time":{"start_time":"","prefix":"博客已萌萌哒运行 undefined 天"},"danmu":{"enable":false,"el":".trm-banner"}};</script>
65-
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":true,"isHome":false,"postUpdate":"2026-03-30 01:55:27"};</script>
65+
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":true,"isHome":false,"postUpdate":"2026-03-30 17:16:54"};</script>
6666

6767
<!-- Theme mode css -->
6868
<link data-swup-theme rel="stylesheet" href="/css/index.css?v=2.2.7" id="trm-switch-style">
@@ -383,6 +383,9 @@ <h1 id="QQ协议端——NapCat-需要QQNT客户端"><a href="#QQ协议端——
383383
<h2 id="在雨云等Linux云服务器上部署NapCat-Docker-无需QQNT客户端"><a href="#在雨云等Linux云服务器上部署NapCat-Docker-无需QQNT客户端" class="headerlink" title="在雨云等Linux云服务器上部署NapCat (Docker,无需QQNT客户端)"></a>在雨云等Linux云服务器上部署NapCat (Docker,无需QQNT客户端)</h2><p>使用如下Docker命令进行部署:</p>
384384
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">docker run -d \</span><br><span class="line">-e NAPCAT_GID=$(id -g) \</span><br><span class="line">-e NAPCAT_UID=$(id -u) \</span><br><span class="line">-v /root/expbot/expbot:/root/expbot/expbot \ #挂在服务器的/root/expbot/expbot目录到容器的/root/expbot/expbot目录 (前为服务器目录,后为容器目录)</span><br><span class="line">--network=host \ #指定网络为使用服务器网络,即让容器和宿主服务器为同一ip</span><br><span class="line">--name napcat \</span><br><span class="line">--restart=always \</span><br><span class="line">mlikiowa/napcat-docker:latest</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">不挂载会导致图片发送错误:找不到文件</span></span><br></pre></td></tr></table></figure>
385385

386+
<p>或者使用Docker-compose进行容器编排:</p>
387+
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">napcat:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">mlikiowa/napcat-docker:latest</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">napcat</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"> <span class="attr">network_mode:</span> <span class="string">host</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">NAPCAT_UID=$&#123;MY_UID:-0&#125;</span> <span class="comment"># 如果环境变量没传,默认用 0 (root)</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">NAPCAT_GID=$&#123;MY_GID:-0&#125;</span> <span class="comment"># 如果环境变量没传,默认用 0 (root)</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="comment"># 宿主机路径 : 容器内路径</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/root/expbot/expbot:/root/expbot/expbot</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/app/.config/QQ:/app/.config/QQ</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/app/napcat/config:/app/napcat/config</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/app/napcat/plugins:/app/napcat/plugins</span></span><br></pre></td></tr></table></figure>
388+
386389
<h1 id="Nonebot2"><a href="#Nonebot2" class="headerlink" title="Nonebot2"></a>Nonebot2</h1><h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">python -m pip install --user pipx</span><br><span class="line">python -m pipx ensurepath <span class="comment"># 如果无法执行ensurepath需要手动把pipx所在地址添加到系统环境变量Path中</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 新开一个终端。安装nb-cli。</span></span><br><span class="line">pipx install nb-cli</span><br></pre></td></tr></table></figure>
387390

388391
<p>若在Ubuntu或其它Linux发行版中,可使用:<code>apt install pipx</code>安装pipx</p>

archives/2024/03/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<!-- Variable -->
5757
<script>window.ASYNC_CONFIG = {"hostname":"axis5hacker.github.io","author":"AXIS5","root":"/","typed_text":["AXIS5","an amateur programmer","Dynamix Fanmade Charter","Weirdcore lover","a video uploader on Bilibili","a UPRPRC elite member","Dynamix Explode Admin","a student in Cyber Security fields"],"theme_version":"2.2.7","theme":{"switch":true,"default":"style-light"},"favicon":{"logo":"/avatar/Chibi.png","icon16":"/img/favicon.svg","icon32":"/img/favicon.svg","apple_touch_icon":null,"webmanifest":null,"visibilitychange":false,"hidden":"/failure.ico","show_text":"(/≧▽≦/)咦!又好了!","hide_text":"(●—●)喔哟,崩溃啦!","dark_logo":"/avatar/pain100.jpg"},"i18n":{"placeholder":"搜索文章...","empty":"找不到您查询的内容: ${query}","hits":"找到 ${hits} 条结果","hits_time":"找到 ${hits} 条结果(用时 ${time} 毫秒)","author":"本文作者:","copyright_link":"本文链接:","copyright_license_title":"版权声明:","copyright_license_content":"本博客所有文章除特别声明外,均默认采用 undefined 许可协议。","copy_success":"复制成功","copy_failure":"复制失败","open_read_mode":"进入阅读模式","exit_read_mode":"退出阅读模式","notice_outdate_message":"距离上次更新已经 undefined 天了, 文章内容可能已经过时。","sticky":"置顶","just":"刚刚","min":"分钟前","hour":"小时前","day":"天前","month":"个月前"},"swup":false,"plugin":{"flickr_justified_gallery":"https://unpkg.com/flickr-justified-gallery@latest/dist/fjGallery.min.js"},"icons":{"sun":"far fa-sun","moon":"far fa-moon","play":"fas fa-play","email":"far fa-envelope","next":"fas fa-arrow-right","calendar":"far fa-calendar-alt","clock":"far fa-clock","user":"far fa-user","back_top":"fas fa-arrow-up","close":"fas fa-times","search":"fas fa-search","reward":"fas fa-hand-holding-usd","toc_tag":"fas fa-th-list","read":"fas fa-book-reader","arrows":"fas fa-arrows-alt-h","double_arrows":"fas fa-angle-double-down","copy":"fas fa-copy"},"icontype":"font","highlight":{"plugin":"highlighjs","theme":true,"copy":true,"lang":true,"title":"default","height_limit":false},"toc":{"post_title":true},"live_time":{"start_time":"","prefix":"博客已萌萌哒运行 undefined 天"},"danmu":{"enable":false,"el":".trm-banner"}};</script>
58-
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 01:56:22"};</script>
58+
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 17:17:14"};</script>
5959

6060
<!-- Theme mode css -->
6161
<link data-swup-theme rel="stylesheet" href="/css/index.css?v=2.2.7" id="trm-switch-style">

archives/2024/06/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<!-- Variable -->
5757
<script>window.ASYNC_CONFIG = {"hostname":"axis5hacker.github.io","author":"AXIS5","root":"/","typed_text":["AXIS5","an amateur programmer","Dynamix Fanmade Charter","Weirdcore lover","a video uploader on Bilibili","a UPRPRC elite member","Dynamix Explode Admin","a student in Cyber Security fields"],"theme_version":"2.2.7","theme":{"switch":true,"default":"style-light"},"favicon":{"logo":"/avatar/Chibi.png","icon16":"/img/favicon.svg","icon32":"/img/favicon.svg","apple_touch_icon":null,"webmanifest":null,"visibilitychange":false,"hidden":"/failure.ico","show_text":"(/≧▽≦/)咦!又好了!","hide_text":"(●—●)喔哟,崩溃啦!","dark_logo":"/avatar/pain100.jpg"},"i18n":{"placeholder":"搜索文章...","empty":"找不到您查询的内容: ${query}","hits":"找到 ${hits} 条结果","hits_time":"找到 ${hits} 条结果(用时 ${time} 毫秒)","author":"本文作者:","copyright_link":"本文链接:","copyright_license_title":"版权声明:","copyright_license_content":"本博客所有文章除特别声明外,均默认采用 undefined 许可协议。","copy_success":"复制成功","copy_failure":"复制失败","open_read_mode":"进入阅读模式","exit_read_mode":"退出阅读模式","notice_outdate_message":"距离上次更新已经 undefined 天了, 文章内容可能已经过时。","sticky":"置顶","just":"刚刚","min":"分钟前","hour":"小时前","day":"天前","month":"个月前"},"swup":false,"plugin":{"flickr_justified_gallery":"https://unpkg.com/flickr-justified-gallery@latest/dist/fjGallery.min.js"},"icons":{"sun":"far fa-sun","moon":"far fa-moon","play":"fas fa-play","email":"far fa-envelope","next":"fas fa-arrow-right","calendar":"far fa-calendar-alt","clock":"far fa-clock","user":"far fa-user","back_top":"fas fa-arrow-up","close":"fas fa-times","search":"fas fa-search","reward":"fas fa-hand-holding-usd","toc_tag":"fas fa-th-list","read":"fas fa-book-reader","arrows":"fas fa-arrows-alt-h","double_arrows":"fas fa-angle-double-down","copy":"fas fa-copy"},"icontype":"font","highlight":{"plugin":"highlighjs","theme":true,"copy":true,"lang":true,"title":"default","height_limit":false},"toc":{"post_title":true},"live_time":{"start_time":"","prefix":"博客已萌萌哒运行 undefined 天"},"danmu":{"enable":false,"el":".trm-banner"}};</script>
58-
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 01:56:22"};</script>
58+
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 17:17:14"};</script>
5959

6060
<!-- Theme mode css -->
6161
<link data-swup-theme rel="stylesheet" href="/css/index.css?v=2.2.7" id="trm-switch-style">

archives/2024/07/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<!-- Variable -->
5757
<script>window.ASYNC_CONFIG = {"hostname":"axis5hacker.github.io","author":"AXIS5","root":"/","typed_text":["AXIS5","an amateur programmer","Dynamix Fanmade Charter","Weirdcore lover","a video uploader on Bilibili","a UPRPRC elite member","Dynamix Explode Admin","a student in Cyber Security fields"],"theme_version":"2.2.7","theme":{"switch":true,"default":"style-light"},"favicon":{"logo":"/avatar/Chibi.png","icon16":"/img/favicon.svg","icon32":"/img/favicon.svg","apple_touch_icon":null,"webmanifest":null,"visibilitychange":false,"hidden":"/failure.ico","show_text":"(/≧▽≦/)咦!又好了!","hide_text":"(●—●)喔哟,崩溃啦!","dark_logo":"/avatar/pain100.jpg"},"i18n":{"placeholder":"搜索文章...","empty":"找不到您查询的内容: ${query}","hits":"找到 ${hits} 条结果","hits_time":"找到 ${hits} 条结果(用时 ${time} 毫秒)","author":"本文作者:","copyright_link":"本文链接:","copyright_license_title":"版权声明:","copyright_license_content":"本博客所有文章除特别声明外,均默认采用 undefined 许可协议。","copy_success":"复制成功","copy_failure":"复制失败","open_read_mode":"进入阅读模式","exit_read_mode":"退出阅读模式","notice_outdate_message":"距离上次更新已经 undefined 天了, 文章内容可能已经过时。","sticky":"置顶","just":"刚刚","min":"分钟前","hour":"小时前","day":"天前","month":"个月前"},"swup":false,"plugin":{"flickr_justified_gallery":"https://unpkg.com/flickr-justified-gallery@latest/dist/fjGallery.min.js"},"icons":{"sun":"far fa-sun","moon":"far fa-moon","play":"fas fa-play","email":"far fa-envelope","next":"fas fa-arrow-right","calendar":"far fa-calendar-alt","clock":"far fa-clock","user":"far fa-user","back_top":"fas fa-arrow-up","close":"fas fa-times","search":"fas fa-search","reward":"fas fa-hand-holding-usd","toc_tag":"fas fa-th-list","read":"fas fa-book-reader","arrows":"fas fa-arrows-alt-h","double_arrows":"fas fa-angle-double-down","copy":"fas fa-copy"},"icontype":"font","highlight":{"plugin":"highlighjs","theme":true,"copy":true,"lang":true,"title":"default","height_limit":false},"toc":{"post_title":true},"live_time":{"start_time":"","prefix":"博客已萌萌哒运行 undefined 天"},"danmu":{"enable":false,"el":".trm-banner"}};</script>
58-
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 01:56:22"};</script>
58+
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 17:17:14"};</script>
5959

6060
<!-- Theme mode css -->
6161
<link data-swup-theme rel="stylesheet" href="/css/index.css?v=2.2.7" id="trm-switch-style">

archives/2024/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<!-- Variable -->
5757
<script>window.ASYNC_CONFIG = {"hostname":"axis5hacker.github.io","author":"AXIS5","root":"/","typed_text":["AXIS5","an amateur programmer","Dynamix Fanmade Charter","Weirdcore lover","a video uploader on Bilibili","a UPRPRC elite member","Dynamix Explode Admin","a student in Cyber Security fields"],"theme_version":"2.2.7","theme":{"switch":true,"default":"style-light"},"favicon":{"logo":"/avatar/Chibi.png","icon16":"/img/favicon.svg","icon32":"/img/favicon.svg","apple_touch_icon":null,"webmanifest":null,"visibilitychange":false,"hidden":"/failure.ico","show_text":"(/≧▽≦/)咦!又好了!","hide_text":"(●—●)喔哟,崩溃啦!","dark_logo":"/avatar/pain100.jpg"},"i18n":{"placeholder":"搜索文章...","empty":"找不到您查询的内容: ${query}","hits":"找到 ${hits} 条结果","hits_time":"找到 ${hits} 条结果(用时 ${time} 毫秒)","author":"本文作者:","copyright_link":"本文链接:","copyright_license_title":"版权声明:","copyright_license_content":"本博客所有文章除特别声明外,均默认采用 undefined 许可协议。","copy_success":"复制成功","copy_failure":"复制失败","open_read_mode":"进入阅读模式","exit_read_mode":"退出阅读模式","notice_outdate_message":"距离上次更新已经 undefined 天了, 文章内容可能已经过时。","sticky":"置顶","just":"刚刚","min":"分钟前","hour":"小时前","day":"天前","month":"个月前"},"swup":false,"plugin":{"flickr_justified_gallery":"https://unpkg.com/flickr-justified-gallery@latest/dist/fjGallery.min.js"},"icons":{"sun":"far fa-sun","moon":"far fa-moon","play":"fas fa-play","email":"far fa-envelope","next":"fas fa-arrow-right","calendar":"far fa-calendar-alt","clock":"far fa-clock","user":"far fa-user","back_top":"fas fa-arrow-up","close":"fas fa-times","search":"fas fa-search","reward":"fas fa-hand-holding-usd","toc_tag":"fas fa-th-list","read":"fas fa-book-reader","arrows":"fas fa-arrows-alt-h","double_arrows":"fas fa-angle-double-down","copy":"fas fa-copy"},"icontype":"font","highlight":{"plugin":"highlighjs","theme":true,"copy":true,"lang":true,"title":"default","height_limit":false},"toc":{"post_title":true},"live_time":{"start_time":"","prefix":"博客已萌萌哒运行 undefined 天"},"danmu":{"enable":false,"el":".trm-banner"}};</script>
58-
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 01:56:22"};</script>
58+
<script id="async-page-config">window.PAGE_CONFIG = {"isPost":false,"isHome":false,"postUpdate":"2026-03-30 17:17:14"};</script>
5959

6060
<!-- Theme mode css -->
6161
<link data-swup-theme rel="stylesheet" href="/css/index.css?v=2.2.7" id="trm-switch-style">

0 commit comments

Comments
 (0)