mchangrh / sb-slash

Sponsorblock with discord slash commands
https://sb-slash.mchang.workers.dev/invite
GNU General Public License v3.0
7 stars 6 forks source link

Lookup buttons give errors #2

Closed AwesomenessZ closed 3 years ago

AwesomenessZ commented 3 years ago

As shown below whenever I click on either button "Lookup Last Submission" or "Lookup User" it results in an error. (Not tested on official sb server) image

mchangrh commented 3 years ago

seems to be related with using exports instead of module.exports - still debugging lookup user

mchangrh commented 3 years ago

SB seems to be returning "null" instead of 0 for ignored views and that's causing toLocale to bug out

mchangrh commented 3 years ago

Resolved upstream and added additional catch for null time in https://github.com/mchangrh/sb-slash/commit/eb7bcf3400875fbccacdc4268c4077fba3bd8b10