Compare commits
	
		
			1 Commits
		
	
	
		
			4ec04837ff
			...
			61050a674e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 61050a674e | 
@ -28,7 +28,7 @@
 | 
			
		||||
    ComfyJS.onCommand = async (user, command, message, flags) => {
 | 
			
		||||
        if ((
 | 
			
		||||
                flags.broadcaster || ({modsAllowed} && flags.mod) || ({vipAllowed} && flags.vip) || ({subsAllowed} && flags.subscriber
 | 
			
		||||
                )) && '{cmd}' === command && !shouldWait() && message.match(/\d+d(4|6|8|10|12|20|100)/) && (+message.split('d')[0] <= {maxDice})
 | 
			
		||||
                )) && '{cmd}' === command && !shouldWait() && message.match(/^\d+d(4|6|8|10|12|20|100)$/) && (+message.split('d')[0] <= {maxDice})
 | 
			
		||||
        ) {
 | 
			
		||||
            toggleWait(true);
 | 
			
		||||
 | 
			
		||||
@ -38,7 +38,7 @@
 | 
			
		||||
                    result.rolls.forEach(roll => {
 | 
			
		||||
                        values.push(roll.value);
 | 
			
		||||
                    })
 | 
			
		||||
                    document.getElementById('results').innerHTML = '<strong>  D' + result.sides + '</strong>: [' + values.map(value => value === 1 ? '<strong style="text-shadow: 2px 2px 10px red">' + value + '</strong>' : value === result.sides ? '<strong style="text-shadow: 2px 2px 10px green">' + value + '</strong>' : value).join(' + ') + (result.modifier > 0 ? ' <a style="text-decoration: underline">+' + result.modifier + '</a>' : result.modifier < 0 ? ' <a style="text-decoration: underline">' + result.modifier + '</a>' : '') + '] = <strong>' + result.value + '</strong> '
 | 
			
		||||
                    document.getElementById('results').innerHTML = '<strong>' + message + '</strong>: [' + values.map(value => value === 1 ? '<strong style="text-shadow: 2px 2px 10px red">' + value + '</strong>' : value === result.sides ? '<strong style="text-shadow: 2px 2px 10px green">' + value + '</strong>' : value).join(' + ') + (result.modifier > 0 ? ' <a style="text-decoration: underline">+' + result.modifier + '</a>' : result.modifier < 0 ? ' <a style="text-decoration: underline">' + result.modifier + '</a>' : '') + '] = <strong>' + result.value + '</strong> '
 | 
			
		||||
                })
 | 
			
		||||
                document.getElementById('results').showPopover()
 | 
			
		||||
                setTimeout(() => {
 | 
			
		||||
 | 
			
		||||
@ -127,7 +127,7 @@
 | 
			
		||||
                    "/chatoverlay/" + document.getElementById('channel').value +
 | 
			
		||||
                    "?cmd=" + document.getElementById('cmd').value +
 | 
			
		||||
                    "&theme=" + document.getElementById('theme').value +
 | 
			
		||||
                    "&themeColor=" + document.getElementById('themeColor').value +
 | 
			
		||||
                    "&themeColor=" + encodeURIComponent(document.getElementById('themeColor').value) +
 | 
			
		||||
                    "&scale=" + document.getElementById('scale').value +
 | 
			
		||||
                    "&maxDice=" + document.getElementById('maxDice').value +
 | 
			
		||||
                    "&clearAfter=" + document.getElementById('clearAfter').value +
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user