Skip to content

DanishBeatSaber/ScoreFeedJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScoreFeed

The Scorefeed-code originally made for #scores-feed on Dane Saber Discord

JavaScript-version can be found here (Please go for the TypeScript-version, it's easier to work with :>)
TypeScript-version can be found here

What is this?

To put it simply, ScoreFeedJS hooks into the ScoreSaber Websocket for their Scores-page, and with some configuration, it posts the desired scores to a Discord-textchannel:

READ ME FIRST, PLEASE!

Caution

Due to the way that components work on Discord-messages, you need a Discord-webhook created by a Discord application.
If you DON'T use an application created webhook you will encounter the following problems, maybe others:

V1 version (JavaScript): Buttons will NOT be functional or fully missing. V2 version (JavaScript/TypeScript): The message will be fully missing.

So how do I solve this?

There's a guide here, on how to create the webhook you need.

After reading this, and you still can't get it to work, feel free to raise an issue, and I will see what I can do to help.

In the issue, please state what you have already done, and what problem you're facing, thank you!

V1 Example

V2 Example

How to run

Run npm install or yarn in ScoreFeed

Configure .env

For the JavaScript-version: Run npm run start or yarn start
For the TypeScript-version: Run npm run prod or yarn prod

Data recieved from the ScoreSaber WebSocket

About

The Scorefeed-code for #score-feed on Dane Saber Discord

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors