hash-command-arbitrary
Avril 5 years ago
parent 4e5364d960
commit 31a82cd06e
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -392,7 +392,7 @@ OS.karada = function (body) {
return output; return output;
} }
var dice_re = /(#dame|#muri|#flip|#when|#du|#pyu|#pcount|#test|#sleep|#janken|#8ball|#imfey|#\?(?:\[(?:\w,*)+\])?|#\d{0,2}d\d{1,4}(?:[+-]\d{1,4})?)/i; var dice_re = /(#dame|#tutturu|#muri|#flip|#when|#du|#pyu|#pcount|#test|#sleep|#janken|#8ball|#imfey|#\?(?:\[(?:\w,*)+\])?|#\d{0,2}d\d{1,4}(?:[+-]\d{1,4})?)/i;
exports.dice_re = dice_re; exports.dice_re = dice_re;
var WHEN = [ var WHEN = [
@ -450,7 +450,7 @@ var IMFEY = [
function parse_dice(frag) function parse_dice(frag)
{ {
if(/^#(dame|muri)$/i.test(frag)) if(/^#(dame|muri|tutturu)$/i.test(frag))
return {n:1, faces:2}; return {n:1, faces:2};
if(frag == '#loli') { if(frag == '#loli') {
return {n:1, faces:3}; return {n:1, faces:3};
@ -506,6 +506,8 @@ function readable_audio(bit, d) {
return "dame.wav"; return "dame.wav";
else if (bit=='#muri') else if (bit=='#muri')
return "muri.wav"; return "muri.wav";
else if (bit=='#tutturu')
return "tutturu.wav";
} }
function readable_dice(bit, d) { function readable_dice(bit, d) {

Loading…
Cancel
Save