Here you were forgetting to remove the PRIVATE_TOKEN from your output, this is dangerous as people would be able to edit your quote list; the invalid Twitch name error was misplaced, and finally, the maximum command cooldown is 5 minutes with Nightbot, not 15.
• !slicecheck:
$(eval u = '$(user)'.toLowerCase(); a = '$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN)'.split(/\d+\.\s/); a.shift(); m = a.map(b => b.toLowerCase()); s = m.filter(n => n === u).length; `${u} has had ${s} slices.`;)
Just a simplification to go along with the few changes I've done to !slicegive.
So here's what I'm thinking to solve your problem: since we store usernames to count how many slice each and everyone got, we can use the same process to build your leaderboard, the idea is to start from either side of the list, and try to find any matches to the username, add up how many we found, and repeat the process for each entry, if the username of one entry has already been counted, skip it.
My concern is that this has a bad Big O Notation rating, meaning the larger the list gets, the longer it'll take to compute, and Nightbot limits the amount of computation time you get so one doesn't use all the power of the bot for themselves, so it might occasionally time out, in which case the solution is to reset the list. I tried to mitigate that as much as possible with my code, but working with the character limitation, so it's not perfect. Also, as mentioned previously, you'll reach Twitch's character limitation pretty quickly.
Anyway, here's how I'd write the code for your !sliceboard command: