mIRC Home    About    Download    Register    News    Help

Print Thread
F
Fulcrum13
Fulcrum13
F
Code:
 
ON *:TEXT:!*:#: {
  tokenize 32 $strip($1-)
  var %not_nicks =  BlueFireGaminz
  if (!$istok(%not_nicks,$nick,32)) && (%commands_not) { msg $chan $nick Sorry WobblerQuote is on Cooldown... Try again in $var(commands_not,1).secs seconds!" | return }

  var %not_nicks_onoff = BlueFireGaminz


  if ($1 == !off) && ($istok(%not_nicks_onoff,$nick,32)) { 
    if (%commands) { msg $chan Can't a QuoteBot get any sleep around here? }
    elseif (!%commands) { set %commands 1 | msg $chan Sorry WobblerQuote is going to sleep... }
  }
  if ($1 == !on) && ($istok(%not_nicks_onoff,$nick,32)) { 
    if (!%commands) { msg $chan Didn't you hear me? Was I not scary enough? }
    elseif (%commands) { unset %commands | msg $chan WobblerQuote is BACK! Fear me! FEAR ME!. }
  }

I have this code that looks to see if the bot is on cooldown with the exception of me. However I dont want him to say it in the $chan I wan't him to private message them with their $nick.
In twitch the writing in chat /w <nickname> <message> it normally works. However if I say
Code:
{ msg $chan /w $nick Sorry WobblerQuote is on Cooldown... Try again in $var(commands_not,1).secs seconds!" | return }

However the /w isn't registering and sending the message as a whisper like I want. In the mIRC client I am seeing the message "/w <nickname> Sorry WobblerQuote is on Cooldown... Try again in # seconds". Anyone know how to get it to do it as a /w in Twitch?

Joined: Dec 2015
Posts: 147
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2015
Posts: 147
Assuming there is support on server side for the "w" command; just remove the "msg $chan" part. If you mean an actual private message, change the "$chan" to "$nick". There's also notice type of message, just change the "msg" to "notice".

In case you still got the default aliases.ini loaded and/or custom "w" alias, add an exclamation mark in front of the "w", it'll force mIRC to send it to the server directly.

B
Blas
Blas
B
I found that the simplest way to do this is to simply install the mTwitch script in mIRC. It allows you to emulate mIRC's native /MSG command to be used on Twitch. I've been using it with my bot for about a month and it works perfectly. You'll need the mTwitch.Core.mrc and mTwitch.GroupChat.mrc scripts. The code then would simply be:
Code:
{ msg $nick Sorry WobblerQuote is on Cooldown... Try again in $var(commands_not,1).secs seconds!" | return }

Joined: Apr 2010
Posts: 964
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 964
Nice to hear my scripts are getting some milage.

--

Along with the two mentioned scripts, you will need to install my JSON parser JSON Parser* prior to installing the two mentioned scripts above.

*: Edited; mTwitch repo now includes JSONfor mIRC.mrc

Last edited by FroggieDaFrog; 10/12/15 01:05 PM.

Link Copied to Clipboard