NOALBS / nginx-obs-automatic-low-bitrate-switching

Simple app to automatically switch scenes in OBS based on the current bitrate fetched from the NGINX stats page.
http://noalbs.com
MIT License
365 stars 78 forks source link

Every command work but "!zw" no. #157

Open xKotelek opened 11 months ago

xKotelek commented 11 months ago

My config:


  "user": {
    "id": null,
    "name": "kotelekx_",
    "passwordHash": null
  },
  "switcher": {
    "bitrateSwitcherEnabled": true,
    "onlySwitchWhenStreaming": false,
    "instantlySwitchOnRecover": true,
    "autoSwitchNotification": true,
    "retryAttempts": 5,
    "triggers": {
      "low": 800,
      "rtt": 2500,
      "offline": null
    },
    "switchingScenes": {
      "normal": "Live",
      "low": "lbw",
      "offline": "offline"
    },
    "streamServers": [
      {
        "streamServer": {
          "type": "NodeMediaServer",
          "statsUrl": "http://localhost:8000/api/streams",
          "application": "live",
          "key": "IRL",
           "auth": {
            "username": "admin",
            "password": "admin"
          }
        },
        "name": "NodeMediaServer",
        "priority": 1,
        "overrideScenes": {
          "normal": "Live",
          "low": "lbw",
          "offline": "offline"
        },
        "dependsOn": null,
        "enabled": true
      }
    ]
  },
  "software": {
    "type": "Obs",
    "host": "192.168.1.118",
    "password": "PASSWORD",
    "port": 4455
  },
  "chat": {
    "platform": "Twitch",
    "username": "kotelekx_",
    "admins": [
      "kotelekx_",
      "Xyacoreq"
    ],
    "prefix": "!",
    "enablePublicCommands": true,
    "enableModCommands": true,
    "enableAutoStopStreamOnHostOrRaid": true,
    "announceRaidOnAutoStop": true,
    "commands": {
      "Fix": {
        "permission": null,
        "alias": [
          "f"
        ]
      },
      "Switch": {
        "permission": "Mod",
        "alias": [
          "ss"
        ]
      },
      "Bitrate": {
        "permission": null,
        "alias": [
          "b"
        ]
      }
    }
  },
  "optionalScenes": {
    "starting": "zs",
    "zarazw": "zw",
    "privacy": "privacy"
  },
  "optionalOptions": {
    "twitchTranscodingCheck": false,
    "twitchTranscodingRetries": 5,
    "twitchTranscodingDelaySeconds": 15,
    "offlineTimeout": null,
    "recordWhileStreaming": false
  },
  "language": "en"
}```
Every prefix command work and !ss zw work but !zw don't work. My friend also tested and for him also not worked.
715209 commented 11 months ago

Hi @xKotelek,

I assume zw is a scene name and you're trying to use the command !zw to switch to that scene. It's only possible to switch scenes by using the switch command or using one of the live, privacy, starting or ending command (having it configured in the optionalScenes).

If you want to create your own commands you can use streamer.bot.