AxelChat + Streamer Bot, Sound Notification #781
Aeon1704
started this conversation in
Show and tell
Replies: 1 comment
-
|
In simple, to set the sound notification you can go directly to AxelChatSound script, double click on Sound Play Action and set your sound file. But also need to Enable Auto-Connect and Reconnect in Websocket Client for AxelChat. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, in this discussion I will show you little trick: Sound Notification via Streamer Bot.
Download: https://streamer.bot/downloads
And my script.
AxelChat Sounds Notification.zip
After installing Streamer Bot, push Import Button, and drag file from archive into Import Window.



You will get 4 scripts, queues and Websocket connection to AxelChat. Push Import to load them into Streamer Bot.
AxelChatConnect script is sending answer Websocket message to AxelChat for connection to be recognized.
AxelChatWSMessage script is listening for Websocket Messages from AxelChat, and filters "NEW_MESSAGES_RECEIVED" type.
In AxelChat_JSON, Streamer Bot will process all variables from new message, including: Platform, Nickname, Message Text and more.
First code in that action will process the variables.
Second code is a logic IF\Else fail safe to confirm message type. It goes to 3rd code if condition is true.
Third code serves as Nickname Ignore, same IF\Else logical script. Place Nickname you want to ignore, so the sound Notification will not happen. Your channel's bot's nickname for example. Double click on it to edit.
You can duplicate that IF\Else action for more Nicknames to set ignore for. Right Click on it and choose Duplicate. Make sure that duplicates will be higher than Custom Trigger, simply drag them, and place higher.
Fourth code will ignore command messages starting with ! symbol. Like: !socials - for example.
If none of conditions happen, AxelChat_JSON script initiates AxelChatSound script.
You can test sound in this dialogue window. I did set a 2 seconds delay, aswell as queue clear so the sound notification will not repeat itself, and will not drive you( or me :) ) crazy. You can modify delay to our licking, works in milliseconds. Last code in that action clears queue and serves very same purpose to avoid sound notification to loop on itself.
And just to make sure, double check the Websocket Client in Streamer Bot, and set AxelChat to Auto-Connect and Reconnect.
If everything done right, Streamer Bot should play sound notification for you on any new message received. Also you can confirm proper connection of Streamer Bot in AxelChat. In Developer section.

And you can confirm proper connection between two apps in streamer bot, checking Action History tab.

Beta Was this translation helpful? Give feedback.
All reactions