「浪打聊天插件」:修訂間差異
跳至導覽
跳至搜尋
Lambda.cat(對話 | 貢獻) 無編輯摘要 標籤:2017 原始碼編輯 |
Lambda.cat(對話 | 貢獻) 無編輯摘要 標籤:2017 原始碼編輯 |
||
第86行: | 第86行: | ||
"msg", "", "^/sc\\s+([千易]\\S+|[^千易])", "schm", ["$args"] | "msg", "", "^/sc\\s+([千易]\\S+|[^千易])", "schm", ["$args"] | ||
"msg", "", "^/sc\\s+[千易]\\s+\\S+", "schm", ["$[2-]", "$1"] | "msg", "", "^/sc\\s+[千易]\\s+\\S+", "schm", ["$[2-]", "$1"] | ||
["me","msg"], "", "^搜索\\s*$", "ashm", [] | |||
["me","msg"], "", "^搜索([123]?)\\s+(\\d\\S|\\D)\\S*", "schm", ["$apply(args => [args[0], args[$str($_1) || 1]])","$args","Q","易","Y"] | |||
["me","msg"], "", "^下一首\\s*$", "nxtm", [] | |||
["msg","me"], "", "^播放\\s+(\\D|\\d\\S)", "plym", ["$args"] | |||
["me","msg"], "", "^(歌單|歌单)\\S*$", "pndm", [""] | |||
["me","msg"], "", "^(來|来|加)一首([123]?)\\s+(\\D|\\d\\S)", "pndm", ["$apply(args => [args[0], args[$str($_1) || 1]])","$args","Q","易","Y"] | |||
["me","msg"], "", "^(來|来|加)一首\\s+(\\d\\s*)+$", "nop", ["$call((idxs)=>mapact('ashm', idxs.pysplit()))","$args"] | |||
["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('delm', idxs.pysplit().sort((a,b)=>b-a)))","$args"] | |||
</syntaxhighlight>可以由以下訊息調用<syntaxhighlight lang="bash"> | </syntaxhighlight>可以由以下訊息調用<syntaxhighlight lang="bash"> | ||
/play 剛好遇見你 | /play 剛好遇見你 |