NightDev Community Forums

Help me | volume command

is there a way to create a !volume +[1-100] / !volume -[1-100] command
i want to control songs volume by increment from chat

can some one help me with it?

@PsychoMan470

Unfortunately I don’t think this would be possible through commands alone. If you’re handy at custom scripts, you could write something that makes a request to the Nightbot API to get your current volume, does some math to figure out what the new volume should be, then makes another request to adjust the volume accordingly. Then host that script and use a $(urlfetch) to call it.

Documentation for getting and editing song request settings:

https://api-docs.nightbot.tv/#get-song-request-settings

https://api-docs.nightbot.tv/#edit-song-request-settings