浪打聊天插件:修订间差异

无编辑摘要
无编辑摘要
标签2017年版源代码编辑
无编辑摘要
标签2017年版源代码编辑
第87行: 第87行:
"msg", "", "^/sc\\s+[千易]\\s+\\S+", "schm", ["$[2-]", "$1"]
"msg", "", "^/sc\\s+[千易]\\s+\\S+", "schm", ["$[2-]", "$1"]


["me","msg"], "", "^ 搜索\\s*$", "ashm", []
["me","msg"], "", "^ ( 單|单)\\s*$", "pndm", []
["me","msg"], "", "^搜索([123]?)\\s+(\\d\\S|\\D)\\S*", "schm", ["$apply(args => [args[0], args[$str($_1) || 1]])","$args","Q","易","Y"]
["me","msg"], "", "^ 切歌\\s*$", "nxtm", []
["me","msg"], "", "^ 下一首\\s*$", "nxtm", []
["msg","me"], "", "^ 播\\s+(\\D|\\d\\S)", "plym", ["$args"]
["msg","me"], "", "^播 \\s+(\\D|\\d\\S)", "plym", ["$args"]
["me","msg"], "", "^ 播放\\+([123]?)\\s+(\\D|\\d\\S)", "pndm", ["$apply(args => [args[0], args[$str($_1) || 1]])","$args","Q","易","Y"]
["me","msg"], "", "^(歌單|歌单)\\S*$", "pndm", [""]
["me","msg"], "", "^ 播放\\s+(\\d\\s*)+$", "nop", ["$call((idxs)=>mapact('ashm', idxs.pysplit()))","$args"]
["me","msg"], "", "^(來|来|加)一首([123]?)\\s+(\\D|\\d\\S)", "pndm", ["$apply(args => [args[0], args[$str($_1) || 1]])","$args","Q","易","Y"]
["me","msg"], "", "^ 播放\\s+(\\d)\\s*-\\s*(\\d)\\s*$", "nop", ["$call((a, b)=>mapact('ashm', span(a,b)))","$_1","$_2"]
["me","msg"], "", "^(來|来|加)一首\\s+(\\d\\s*)+$", "nop", ["$call((idxs)=>mapact('ashm', idxs.pysplit()))","$args"]
["me","msg"], "", "^(历|歷)史\\s*$", "ashm", [""]
["me","msg"], "", "^(來|来|加)一首\\s+(\\d)\\s*-\\s*(\\d)\\s*$", "nop", ["$call((a, b)=>mapact('ashm', span(a,b)))","$_1","$_2"]
["me","msg"], "", "^搜(索|尋|寻)([123]?)\\s+(\\d\\S|\\D)\\S*", "schm", ["$apply(args => [args[0], args[$str($_1) || 1]])","$args","Q","易","Y"]
["me","msg"], "", "^刪除\\s+(\\d+\\s*)+$", "nop", ["$call((idxs)=>mapact('delm', idxs.pysplit().sort((a,b)=>b-a)))","$args"]
["me","msg"], "", "^( |删) 除\\s+(\\d+\\s*)+$", "nop", ["$call((idxs)=>mapact('delm', idxs.pysplit().sort((a,b)=>b-a)))","$args"]
["me","msg"], "", "^手(冊|册)\\s*$", "msg", [" 插播 keyword\n 播放 (keyword|...number|number - number)\n 刪(删)除 (...number)\n 切歌 \n 搜索(尋)(寻)\n 歷(历)史 \n 歌單(单)\n 手冊(册)"]
</syntaxhighlight>可以由以下訊息調用<syntaxhighlight lang="bash">
</syntaxhighlight>可以由以下訊息調用<syntaxhighlight lang="bash">
/play 剛好遇見你
/play 剛好遇見你
153

个编辑