I have updated the code with:

PRIVMSG #obeewnn :/w obeesak !editcmd !server %ip

PRIVMSG instead of msg, but it doesn't seem to be working. I have heard you need to have a multiconnection with irc.twitch.tv as well as chatdepot.twitch.tv but I'm not sure how to do this.

Code:
;Start timer when mirc starts that checks for changes every 30 seconds
on *:start: .timerdayzprofile 0 1 dayzprofile

;Alias that checks if the file has changed and messages channel. Make sure to update the path for the file and the channel name to message to.
alias dayzprofile {
  set -l %filepath E:\Users\oBeE\Documents\DayZ\oBeE.DayZProfile
  set -l %ip $noqt($remove($read(%filepath,w,LastMPServer=*),LastMPServer=))
  if (%ip != %dayzprofile) {
    set %dayzprofile %ip
    PRIVMSG #obeewnn :/w obeesak !editcmd !server %ip
  }
}