Pass a variable to Alias command


#1

I need some help, Can I pass a variable from the message to the alias command? How can I create a variable? How can pass It on the alias command? for example I create a variable r =3 in the message, now can I call a command ( for example !c1) with r with param?
Thanks.


#2

First command (alias to !c1)

$(eval r = 3; r)

!c1 can access whatever was passed to it with $(query)


#3

in the message of the command !p1 i write:
$(eval r = 3; r)

in the alias box of !p1 i write:
!c1 $(query)

And it don’t got, the bot print me in the chat : $(query)
Can you help me? =)


#4

The alias for !p1 should be !c1
The message for !c1 should be $(query)


#5

can you explain me better?


#6



#7

Thank you so much my friend.


#8

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.