Rolisteam / DiceParser

Powerful dice Roller is used as discord bot, irc bot, cli tool and inside Rolisteam : 1d20+4, 1L[head,arm,leg,belly,chest], 1d6+1d8, 8+5*3
http://www.rolisteam.org/
GNU General Public License v3.0
125 stars 31 forks source link

Unexpected Quote Error #90

Closed AbimaelCosta closed 4 years ago

AbimaelCosta commented 4 years ago

Hi,

I'm very new in GitHub, Discord and DiceParser. If someone can help me i'm very grateful to this one!

I'm using Dice Parser Bot in my Discord Server. I read the Documentation of Dice Parser and give a try to make some macros. The first simple macros works very well. But when i try put a macro or alias with " (quotas) i have the same error "Unexpected Quote Error".

1 The command work well, like we can see on the above image...

But when i try save a macro i have a error (other macros and aliases, without quotas work well): 2

Can someone help-me please?

AbimaelCosta commented 4 years ago

Solved with external " and \ before internal ". Like this:

.macro add s. "d10;$1c[>7];$1c1;$2i:[=0]{$2-$3}{$2};$4i:[>0]{\"$2 SUCESSO(S) [%2]\"};$4i:[=0]{\"FALHA COMUM [%2]\"};$4i:[<0]{\"FALHA CRITICA [%2]\"}" false