mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2014
Posts: 24
J
Jokke Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Dec 2014
Posts: 24
Hi guys, once again I've got problems with my bot.


I'm trying to make a sub only command, and I've googled alot to find this:
Code:
on *:connect {
  raw CAP REQ :twitch.tv/membership  
  raw CAP REQ :twitch.tv/tags  
}
raw *:*!emotebomb: {
  if (subscriber=1 isin $msgtags) {
    msg $3 Kappa Kappa Kappa Kappa Kappa Kappa
  }
}


When I to !emotebomb and another subscriber is doing it, NOTHING comes up. What's wrong with it? smirk

Last edited by Jokke; 13/12/15 02:25 PM.
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try use this code:

Code:
ON*:CONNECT: {
  raw CAP REQ :twitch.tv/membership 
  raw CAP REQ :twitch.tv/commands 
  raw CAP REQ :twitch.tv/tags  
}

ON *:TEXT:!emotebomb:#: {
  if ($msgtags(subscriber).key) { msg $chan Kappa }
}


NOTE: Make sure you are running the latest mIRC version.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard