Do nightbot have bug or it should be like this?

Hey @aezarkones!

We all like beautiful code, but for Nightbot you have to keep it short as you’re limited in number of characters, so here’s your code rewritten to use with Nightbot, excluding the unimportant bits, and using ternary operators to assign values to your variables:

$(eval `$(1)`==`null`?a=`aezarkones`:a=`$(1)`; `$(2)`==`null`?b=`eune`:b=`$(2)`; `$(leagueoflegends ${a} ${b})`)

That said, as you seem to have figured out, the ranks don’t work, so this command will give you an error, and it seems to be a new issue, the API Nightbot gets its data from might have been updated, in which case you’ll have to wait for Nightbot to be updated as well, updates will likely be posted there.