Hello,
I am in need of a script that will extract info from a text file (when file is modified) and send a chat message with the matching contents.
When dayzprofile.txt is modified
Search dayzprofile.txt for "LastMPServer="
Return data after "LastMPServer=" (Should be the IP for server)
Send a chat message "!editcmd !server " + IP
Expected chat message outcome:
!editcmd !server 192.168.0.1
For more info, this is to update twitch viewers with the current server I'm playing in Dayz. I am trying to automate the process, currently i open the dayzprofile text file, search for lastmp, copy and paste IP into chat and update the !server command in my twitch bot.