sb-slash

1.6.2 • Public • Published

sb-slash

Retrieve SponsorBlock segments and user info with slash commands, buttons and message commands.

Invite

slash commands

# users
/userinfo publicid:
/showoff publicid:
/userstats publicid: sort:
/userid username: exact:

# segments
/skipsegments videoid: categories: json:
/segmentinfo segmentid:
/lockcategories videoid:
/searchsegments videoid:
/status

# /me
userid set / get
userinfo
showoff
userstats

/invite
/github

more details here

  • Other commands were not added since a local ID is required, this is for quickly retreiving general stats and checking segments.
  • Mass stat related commands were not included
  • Anonymous lookup was not included
  • All commands can have their response be ephemeral by setting the hide parameter to true

Cloudflare Environment Variables (Handling Interactions)

CLIENT_ID - Client ID from bot portal
CLIENT_PUBLIC_KEY - Public Key from bot portal

Local Environment Variables (Populating slash commands & options)

CLIENT_ID - Client ID from bot portal
BOT_TOKEN - Bot Token from bot portal
CLIENT_PUBLIC_KEY - Public key from bot portal

Credit

API follows CC BY-NC-SA 4.0 Documentation at wiki.sponsor.ajay.app

/src/util/sbc-util.js from MRuy/sponsorBlockControl

Logo from ajayyy/SponsorBlock, created by @munadikieh

Formatting and Links from Lartza/SBTools

Package Sidebar

Install

npm i sb-slash

Weekly Downloads

10

Version

1.6.2

License

GPL-3.0-only

Unpacked Size

92.5 kB

Total Files

38

Last publish

Collaborators

  • mchangrh