Comments (4)
Yup, I'm aware of the issue. However, the big problem is that the new update won't allow importing external libs, which this plugin needs to do.
I've been discussing with a BD dev to see if there is any way to fix it. For now, we will have to wait.
from xsoverlay-betterdiscord.
https://github.com/hideki0403/JustNotification
Repo Link if you wish to skip distribution per Booth
from xsoverlay-betterdiscord.
Hi, I made a dumb temporary workaround for people who really want this to work. It requires running a separate nodeJS process as a middleman.
Update: It only partially fixes it - the plugin still doesn't seem to be correctly intercepting notifications either? :/
Make a folder to run this express
server in:
const app = require("express")();
const dgram = require('dgram');
app.get('/dgram', function (req, res) {
const server = dgram.createSocket('udp4');
server.send(decodeURIComponent(req.query.data), 42069, '127.0.0.1', () => {
server.close();
});
});
app.listen(42070, function () {
console.log("Hosting!");
});
Then, in the plugin JS, remove the dgram
requirement, and replace sendToXSOverlay with this:
function sendToXSOverlay (data) {
fetch("https://127.0.0.1:42070/dgram?data=" + encodeURIComponent(data))
.then(d => {})
.catch(e => console.error(e));
}
(Might also have to remove auto-update stuff or bump up the version number for BD to not immediately overwrite this? Unsure.)
from xsoverlay-betterdiscord.
When it comes to running an external server to get your notifications in VR, I'd recommend switching to a non-plugin solution completely.
This one works great and pretty much forwards your PC notifications (Discord included) to XSOverlay: https://booth.pm/en/items/3237164
(that's just an example, you can probably find english alternatives that allow app-specific notifications)
The purpose of the plugin was to get your Discord notification without needing any software/server running in the background. Until we find a true fix, I would recommend this instead of running a "DIY" express server on top of a semi-broken plugin.
from xsoverlay-betterdiscord.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xsoverlay-betterdiscord.