I am writing a custom mIRC bot for a friend of mine on Twitch. My goal is to only have one copy of mIRC open, yet have two Twitch accounts logged on to the Twitch server. I am aware that I can use "/server -m" in my script to log on both accounts. The issue that I am having is that all of my scripts end up working on both accounts, as I cannot figure out a simple way to tell mIRC to only run all of the scripts on the BOT's account, rather than the secondary account. Both accounts are logged on to the Twitch server, so using "if $server" does not work. If possible, I would rather not have to edit all of my scripts to get this to work, as I would imagine there's a simpler way that I can not think of.
Any help would be greatly appreciated. Thanks.
The reason that I want to do this is to create a simple script for real-time "host alerts." I have been able to do this by running two copies of mIRC and having the streamer account whisper the BOT account, and then having the BOT convert the whisper into a "User is now hosting the channel" message. As I mentioned, I am trying to provide the same function by only running one copy of mIRC. Using the Twitch API is not ideal, as it is not "real time" like the message in the chat that the streamer receives when a host occurs.