mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Custom IP/Port now available for Streamer.bot action drop down controls
This commit is contained in:
@@ -225,6 +225,21 @@ function RefreshWidgetPreview(data) {
|
|||||||
|
|
||||||
widgetUrlInput.value = widgetURL + "?" + paramString;
|
widgetUrlInput.value = widgetURL + "?" + paramString;
|
||||||
widgetPreview.src = widgetUrlInput.value;
|
widgetPreview.src = widgetUrlInput.value;
|
||||||
|
|
||||||
|
UpdateStreamerBotConnection();
|
||||||
|
}
|
||||||
|
|
||||||
|
function UpdateStreamerBotConnection() {
|
||||||
|
let addressElement = document.getElementById('address');
|
||||||
|
let portElement = document.getElementById('port');
|
||||||
|
|
||||||
|
if (addressElement && portElement)
|
||||||
|
client.options.host = addressElement.value;
|
||||||
|
|
||||||
|
if (portElement)
|
||||||
|
client.options.port = portElement.value;
|
||||||
|
|
||||||
|
client.connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -234,9 +249,9 @@ function RefreshWidgetPreview(data) {
|
|||||||
//////////////////
|
//////////////////
|
||||||
|
|
||||||
// Connect to Streamer.bot and get list of actions
|
// Connect to Streamer.bot and get list of actions
|
||||||
const sbServerAddress = '127.0.0.1';
|
let sbServerAddress = '127.0.0.1';
|
||||||
const sbServerPort = '8080';
|
let sbServerPort = '8080';
|
||||||
const client = new StreamerbotClient({
|
let client = new StreamerbotClient({
|
||||||
host: sbServerAddress,
|
host: sbServerAddress,
|
||||||
port: sbServerPort,
|
port: sbServerPort,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user