mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-18 19:50:58 -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;
|
||||
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
|
||||
const sbServerAddress = '127.0.0.1';
|
||||
const sbServerPort = '8080';
|
||||
const client = new StreamerbotClient({
|
||||
let sbServerAddress = '127.0.0.1';
|
||||
let sbServerPort = '8080';
|
||||
let client = new StreamerbotClient({
|
||||
host: sbServerAddress,
|
||||
port: sbServerPort,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user