[feat] support extended roll syntax
This commit is contained in:
@@ -600,8 +600,8 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
|
||||
}
|
||||
}
|
||||
if(p1.startsWith('roll')){
|
||||
const arr = p1.split(' ', 2)
|
||||
let ina = arr[1]
|
||||
const arr = p1.split(/\:|\ /g)
|
||||
let ina = arr.at(-1)
|
||||
|
||||
if(ina.startsWith('d')){
|
||||
ina = ina.substring(1)
|
||||
|
||||
Reference in New Issue
Block a user