Commit f99dfcab authored by srO's avatar srO

qq分享链接

parent 40c07c45
......@@ -292,6 +292,16 @@ const parseMessage = (message, isPro) => {
}
break;
case 'rich':
// [CQ:rich,url=XXX.jpg,text=...]
tmp = param.match(/url=(.*?)(,|$)/);
if (tmp && tmp[1]) {
return `[分享链接:${tmp[1]}]`;
} else {
return '';
}
break;
case 'record':
// [CQ:record,file=XXX.amr] 或 XXX.silk(對講或變音)
tmp = param.match(/file=(.*?)(,|$)/);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment