mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2013
Posts: 57
E
Babel fish
OP Offline
Babel fish
E
Joined: Sep 2013
Posts: 57
This may seem strange, but I will try and explain what I'm after.

I currently have a twitch chat-bot. It's going amazingly, however, I need to manually change the commands through Remote on mIRC. The bot is being used in 2 different channels, and the second person does not have access to change the bot commands.


Basically, I need to have a way, for a user to type !edit <command> <New Command Syntax>

(i.e. The command !dual gives: Dualstreaming http://link.com)
(What I want it to do: !editcomm !dual " Dualstreaming http://differentlink.com " - when !dual is now posted, it will show ( Dualstreaming http://differentlink.com ) instead of (Dualstreaming http://link.com)


I know what I want it to do, I just need a way to put this into practice. I know basic mIRC Syntax, however, I don't know alot in detail. If this can be done, and you can show me how to do it, I will give you massive props on stream! laugh



HERE IS THE CURRENT FORMAT OF THE COMMANDS USED:

on *:TEXT:!ip:#keepthepeace420: {
if (%ip) { return }
set -u10 %ip On
.msg # Get stranded with us! play.castawaymc.net or if that ip doesnt work try play2.castawaymc.net || 1.7.2 and 1.7.4
}


So in the above example, typing !editcomm !ip would change the message shown on .msg # <here>


Twitch Live-Streamer:
Synth Riders
Beat Saber
www.twitch.tv/eggfriedcheese
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
If no one else provides an actual solution to this. (Which I'm a bit interested in as well) You could just make a shared dropbox folder with textfiles and make the bot read the textfiles.

like this:
Code:
 on *:TEXT:!song:#nillens: {
  if ($($+(%,floodsong.,$chan),2)) || ($($+(%,flood.,$nick),2)) || ($($+(%,floodchan.,$chan),2)) { return }
  set -u10 %floodchan. $+ $chan On
  set -u20 %floodsong. $+ $chan On
  set -u60 %flood. $+ $nick On
  .play # C:\Users\Nillen\Downloads\Snip\Snip.txt 0
}


And have your friend edit his own text files.


Link Copied to Clipboard