Hi, I have a problem here.
I’m trying to create a command that fetches the username and says what rank of the same in League of legends. I can make the command work, the problem is when the user’s nick has space and is invalid in the command.
I would like to know how I can include spaces in the command without making it invalid.
command input >>> $(touser) ► $(urlfetch https://api.antonyz.tk/lol/rank?name=$(touser)&r=BR&lang=en )
Command Response >>> MyName ► GOLD III (84 PDL)
The problem is when the user tries to put a nick with a space.
!rank My Name Jhon
I tried to put it in the following ways:
!rank (My Name Jhon)
And no way I can solve it. I’m having the same problem to create other commands, I believe it’s something very simple but as I’m starting, for me it’s a big problem.