I'm a fledgling engineer.
As the title says, I found out that I can use pastebin to get around nightbot's 500 character limit.
But I cannot find enough information.
One command can be written in 499 characters and it worked fine with nightbot. However, one variable increased due to maintenance, so it exceeded 500 characters and could not be described.
The contents are stored in pastebin as they are (over 500 chars).
I thought it could be executed by fetching with urlfetch and eval, but the familiar Nightbot:missing ) after argument list is emitted.
Pasting the raw command data here is discouraged because the access token is pasted in pastebin, but the content is roughly as follows after masked it with xxx or XXX.
$(eval const c = $(urlfetch json http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=xxx&key=xxxxxxxxxx);const r = $(urlfetch https://xxx.co.jp/id=XXXX&query=XXXX);var td = new Date().getTimezoneOffset()/60;var date = new Date(r["updated_at"]*1000); date = new Date(date.setHours(date.getHours()+9+td));const dt = date.getMonth()+1+`/`+date.getDate()+` `+date.getHours()+`:`+date.getMinutes().toString().padStart(2,"0");`Your number of the global ranking is ${c["playerstats"]["stats"][115]["value"]}, and the position is ${rank["position"]}th (last updated at `+dt+`)`;)