<?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[Topics tagged with cpp]]></title><description><![CDATA[A list of topics that have been tagged with cpp]]></description><link>https://mirai.mamoe.net/tags/cpp</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 01:45:19 GMT</lastBuildDate><atom:link href="https://mirai.mamoe.net/tags/cpp.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[【MocliaParseBot】综合性的多平台网络服务解析插件]]></title><description><![CDATA[关于插件
<p dir="auto">本插件基于Mirai-Cpp SDK和C++ 17语言规范开发，专注于解析各网络服务的内容发布到聊天群。目前还处于早期开发阶段，仅支持以下平台的部分服务解析。</p>



平台
功能




网易云音乐
根据关键词内容搜索歌曲返回歌曲卡片


BiliBili动画
解析av/bv号、b23短链的内容到聊天群


Ascii2d搜图
接收图片返回识别到的原图地址



<p dir="auto">项目发布在<a href="https://github.com/Moclia-Developer-Team/MocliaParseBot" target="_blank" rel="noopener noreferrer nofollow ugc">GitHub</a>和<a href="https://gitee.com/staswit/MocliaParseBot" target="_blank" rel="noopener noreferrer nofollow ugc">Gitee</a>，采用<a href="https://ci.appveyor.com/project/STASWIT/mocliaparsebot" target="_blank" rel="noopener noreferrer nofollow ugc">AppVeyor CI</a>自动构建，可实时知晓最新平台支持状态。</p>
<p dir="auto">如对本插件有任何的功能建议，问题反馈等，请善用本插件仓库的issue，或者给我<a href="mailto:XingxiaoStaswit@outlook.com" target="_blank" rel="noopener noreferrer nofollow ugc">发邮件</a></p>
平台支持
<p dir="auto">目前支持以下平台部署：</p>



架构
Windows
Linux
MacOS
Android
IOS
Docker




x64
√
√
×
暂无法编译
×
√


x86
√
暂无法编译
×
暂无法编译
×
√


aarch64
暂无法编译
√
×
暂无法编译
×
√


arm
暂无法编译
√
×
暂无法编译
×
√



<blockquote>
<p dir="auto">√：表示开发者已知该程序能支持此平台<br />
×：表示开发者无法为此平台编译程序<br />
未测试：表示开发者还未在此平台测试过程序是否正常运行<br />
暂无法编译：表示开发者暂时无法编译出该平台版本</p>
</blockquote>
<p dir="auto">CI构建情况：</p>



架构
构建




msvc x64
AppVeyor Job


msvc x86
AppVeyor Job


msvc arm


gcc x64
AppVeyor Job


gcc x86
AppVeyor Job


gcc arm64
AppVeyor Job


gcc arm



如何部署
<blockquote>
<p dir="auto">ps：本教程默认使用者已正确配置mirai-api-http 2.0+并同时开启http和ws adapter</p>
</blockquote>
<p dir="auto">从ci或releases下载最新的插件<br />
在插件同目录下新建config.json<br />
在config.json下写入以下内容：</p>
{
    "hostname": "127.0.0.1",
    "port": 8080,
    "botQQ": 10000,
    "verifyKey": "Hello",
    "enableVerify": false,
    "singleMode": true,
    "threadPoolSize": 4
}

<p dir="auto">由于json不支持注释，相关解释呈现在下表：</p>



json键
说明
类型
示例内容




hostname
MiraiApiHttp的IP地址
string
127.0.0.1


port
MiraiApiHttp开放的端口
int
8080


botQQ
要连接的机器人账号
int
10000


verifykey
MiraiApiHttp配置文件中定义的验证密钥
string
hello


enableVerify
MiraiApiHttp是否开启验证模式
bool
true


singleMode
MiraiApiHttp是否开启单账号模式
bool
true


threadPoolSize
程序使用的线程池大小
int
4



<p dir="auto">更多配置文件选项请参阅<a href="https://github.com/cyanray/mirai-cpp/blob/master/doc/Documentation.md#%E5%A6%82%E4%BD%95%E4%B8%8Emirai-api-http%E5%BB%BA%E7%AB%8B%E8%BF%9E%E6%8E%A5" target="_blank" rel="noopener noreferrer nofollow ugc">MiraiCPP文档</a></p>
<p dir="auto">完成后直接运行程序，当控制台提示bot working后，启动完成。</p>
如何使用
群命令列表

关于点歌 —— 本程序暂时的帮助列表
点歌[歌名] —— 进行网易云点歌
开启识图 —— 在本群开启识图功能（仅群主或管理）
关闭识图 —— 在本群关闭识图功能（仅群主或管理）
[回复内容]识图 —— 识别回复内容中的第一张图
识图[图片] —— 识别图片

<blockquote>
<p dir="auto">ps：B站视频解析直接输入av/bv号或链接即可</p>
</blockquote>
控制台命令列表

exit —— 结束程序（如正常使用退出需使用本命令，否则会导致机器人程序内存泄漏）

]]></description><link>https://mirai.mamoe.net/topic/621/mocliaparsebot-综合性的多平台网络服务解析插件</link><guid isPermaLink="true">https://mirai.mamoe.net/topic/621/mocliaparsebot-综合性的多平台网络服务解析插件</guid><dc:creator><![CDATA[STASWIT]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[随机百度图片]]></title><description><![CDATA[<p dir="auto">QQ截图20210321180946.png<br />
介绍：效果如上图，接口来自百度图片<br />
项目地址：<a href="https://github.com/super1207/PicBot" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/super1207/PicBot</a></p>
]]></description><link>https://mirai.mamoe.net/topic/101/随机百度图片</link><guid isPermaLink="true">https://mirai.mamoe.net/topic/101/随机百度图片</guid><dc:creator><![CDATA[super1207]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[silk4j--JVM的语音编码组件]]></title><description><![CDATA[<p dir="auto">项目地址<a href="https://github.com/mzdluo123/silk4j" target="_blank" rel="noopener noreferrer nofollow ugc">mzdluo123/silk4j</a></p>
<p dir="auto">本项目用于方便大家编码QQ可识别的silk语音格式来轻松发送语音消息</p>
<p dir="auto">目前支持mp3转silk，pcm编码转silk</p>
开始使用
// 要使用maven仓库导入，需要先为你的Github账号生成一个访问token才能正常拉取
repositories {
   maven { 
     url 'https://maven.pkg.github.com/mzdluo123/silk4j'
     credentials {
            username = '你的用户名'
            password = '你的token'
        }
   }
}
dependencies {
    implementation("io.github.mzdluo123:silk4j:版本号")
}

<p dir="auto">版本号请到https://github.com/mzdluo123/silk4j/packages/ 查看</p>
<p dir="auto">你也可以到<a href="https://github.com/mzdluo123/silk4j/actions/workflows/native_build.yml" target="_blank" rel="noopener noreferrer nofollow ugc">action</a>下载最新构建的AllInOne中的jar使用</p>
// 请使用这个类完成编码
// 所有的编码默认都只使用左声道
public class AudioUtils {
    //使用之前需要初始化
    public static void init() throws IOException {
    }
    // 初始化时可选指定缓存目录，未指定则使用系统目录
    public static void init(File tmpDir) throws IOException {
      
    }
    // 以下为编码函数，只可以同时进行一个编码任务，如需pcm文件请看源代码
    // 返回的文件在缓存目录内，使用完毕请删除
    public static File mp3ToSilk(File mp3File) throws IOException {
       
    }
    public static File mp3ToSilk(InputStream mp3FileStream) throws IOException {
        
    }

    public static File silkToMp3(File silkFile) throws IOException {
      
    }

    public static File silkToMp3(InputStream silkFileStream) throws IOException {
        
    }
    
}

]]></description><link>https://mirai.mamoe.net/topic/79/silk4j-jvm的语音编码组件</link><guid isPermaLink="true">https://mirai.mamoe.net/topic/79/silk4j-jvm的语音编码组件</guid><dc:creator><![CDATA[RainChan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[在线运行各种编程语言]]></title><description><![CDATA[<p dir="auto"><strong>例子：</strong><br />
runall_example.png<br />
如上图，触发方式：<br />
super &lt;源码文件后缀&gt;<br />
&lt;code&gt;</p>
<p dir="auto"><strong>部署：</strong><br />
此插件为原酷Q插件，使用  OneBot框架+<a href="https://github.com/super1207/MiraiCQ" target="_blank" rel="noopener noreferrer nofollow ugc">MiraiCQ</a>  运行即可。</p>
<p dir="auto"><strong>下载：</strong><br />
<a href="https://github.com/super1207/runall/archive/master.zip" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/super1207/runall/archive/master.zip</a> (已经包含MiraiCQ)</p>
<p dir="auto"><strong>其它可能有用的信息：</strong></p>

作者知道的OneBot 框架: <a href="https://github.com/Mrs4s/go-cqhttp" target="_blank" rel="noopener noreferrer nofollow ugc">go-cqhttp</a>(推荐这个)、<a href="https://github.com/yyuueexxiinngg/onebot-kotlin" target="_blank" rel="noopener noreferrer nofollow ugc">onebot-kotlin</a>(未测试，但理论上可行)
应该也可以使用<a href="https://github.com/iTXTech/mirai-native" target="_blank" rel="noopener noreferrer nofollow ugc">mirai-native</a>部署(未测试，但理论上可行)
插件使用<a href="https://glot.io/" target="_blank" rel="noopener noreferrer nofollow ugc">glot</a>的接口，如果glot难以访问，可以在config.ini文件中设置网络代理

<p dir="auto"><strong>项目开源：</strong></p>

项目使用GUN AGPLV3开源
开源地址：<a href="https://github.com/super1207/runall" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/super1207/runall</a>

]]></description><link>https://mirai.mamoe.net/topic/41/在线运行各种编程语言</link><guid isPermaLink="true">https://mirai.mamoe.net/topic/41/在线运行各种编程语言</guid><dc:creator><![CDATA[super1207]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>