thanks a lot for your help. it’s really amazing what you’ve done
Hi brother, I updated the list using the same model of yours but it’s not working now, any ideas?
Can you share your updated list? Hopefully it’s just a small formatting tweak so the javascript code can handle it
I think that’s failing because the very last player has a comma after their name. If you delete the last comma, things should work again!
Nightbot might cache the pastebin data for a short time, so if the command doesn’t work immediately, it should work within a few hours.
I fixed it but it’s still not working, not even showing anything in chat
i wonder if changing "$(querystring)"
to "$(query)"
would help…
no, it didn’t work either
hmmm… can u paste the command contents, maybe u accidentally removed a symbol when updating the pastebin link
oh wait… did u use that exact link u posted earlier?.. because u left out the “raw” portion…
it worked for me… the first 2 tries r with "$(querystring)"
and the last one is with "$(query)"
so that change actually does help… but if i had to guess, the “raw” part of the link was left out… this is what i have, that worked on the last try in the pic…
$(eval q="$(query)"; p=$(urlfetch json https://pastebin.com/raw/SEya1Ynh).split(","); i=p.findIndex(e => e.toLowerCase().includes(q.toLowerCase())); (i < 0) ? q + " is not in the top 100" : p[i] + " is in position " + (i + 1))
hope that does it for ya ^^
but this is discord, isn’t it? not in twitch chat
well, yes, but the only difference in output is how it handles usernames… it shows the core username instead of the display name (“nickname”)
here it is in twitch… and interestingly it will give the first place one if u don’t include a name… purdy cool feature
but it doesn’t work at all. it worked during the first days but now nothing. I used to use the command !ranking name
can u share what u have in the command
$(eval q=“$(query)”; p=$(urlfetch json https://pastebin.com/raw/SEya1Ynh).split(“,”); i=p.findIndex(e => e.toLowerCase().includes(q.toLowerCase())); (i < 0) ? q + " is not in the top 100" : p[i] + " is in position " + (i + 1))
hmmm… everything looks in order… that should work… r there any twitch settings like banned words or anything that would stop it? like automod
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.