mIRC Homepage
Posted By: Toot Help with twitch bot autogreet - 11/04/14 08:54 AM
Code:
on *:JOIN: {
  if ((%Join) || ($($+(%,Join.,$nick),2))) { return }
  set -u25100 %Join. $+ $nick
  .timer 1 2 msg $chan Welcome to the stream $nick have a great time! c: Kreygasm new viewer.
}

I need help with this code, I want it to welcome people on twitch and have it happen once every day. Help would be greatly appreciated.
Posted By: blessing Re: Help with twitch bot autogreet - 11/04/14 09:43 AM

Code:
on *:JOIN:#YOURCHANNELNAMEHERE:{
  if %join. [ $+ [ $nick ] ] { return }
  set -u86400 %join. [ $+ [ $nick ] ] $true
  .timer 1 2 msg # Welcome to the stream $nick have a great time! c: Kreygasm new viewer.  
}


Posted By: Majeye Re: Help with twitch bot autogreet - 20/07/14 09:45 PM
Anyone know how this script would be written to just greet the moderators as they come in, perhaps with a short delay to allow Twitch to actually grant moderator / op status?
Posted By: Nillen Re: Help with twitch bot autogreet - 20/07/14 09:49 PM
Store the nicks of the ops and check in the storage file if the nicks match.
Posted By: Majeye Re: Help with twitch bot autogreet - 20/07/14 09:51 PM
Originally Posted By: Nillen
Store the nicks of the ops and check in the storage file if the nicks match.


I thought about doing that, but meh.. is there a script where irc can check to see who is mod/op and have it write to the ini file and have it auto check it and echo it back into this on:join command?
Posted By: Nillen Re: Help with twitch bot autogreet - 20/07/14 10:11 PM
You can just trigger a script whenever jtv ops someone.
/help on op
Posted By: Majeye Re: Help with twitch bot autogreet - 20/07/14 10:20 PM
Originally Posted By: Nillen
You can just trigger a script whenever jtv ops someone.
/help on op


Always hate asking this...

but could you show me what that script looks like?
Posted By: Bramzee Re: Help with twitch bot autogreet - 20/07/14 11:23 PM
https://forums.mirc.com/ubbthreads.php/topics/246040/blessing#Post246040
Posted By: Majeye Re: Help with twitch bot autogreet - 21/07/14 12:03 AM


Tried that out - it was welcoming *everyone*, I only want it to have a custom message for mods/ops only.
Posted By: Bramzee Re: Help with twitch bot autogreet - 21/07/14 02:36 AM
Then just remove all the "unknown" welcome stuff and you should be good. If you want custom messages anyway. If not just do something like

Code:
on *:join:#:{
  if ($nick isop #) {
  msg # Hey $nick welcome!
  }
  else return
}


just change the message to whatever you want it to be.
Posted By: Majeye Re: Help with twitch bot autogreet - 21/07/14 02:37 AM
Originally Posted By: Bramzee
Then just remove all the "unknown" welcome stuff and you should be good. If you want custom messages anyway. If not just do something like

Code:
on *:join:#:{
  if ($nick isop #) {
  msg # Hey $nick welcome!
  }
  else return
}


just change the message to whatever you want it to be.


Thank you <3
Posted By: pixelmagic Re: Help with twitch bot autogreet - 12/04/15 04:09 PM
hiya I love this easy little bit of code, I was wondering if you could make this a multiple message one where it would select a random one each time to display

thanks pixel!
Posted By: Bramzee Re: Help with twitch bot autogreet - 14/04/15 11:43 AM
I'm sure it would be storing the messages in a file, then just reading them in the msg...

msg # $read(welcome.txt)

could be wrong, but I'm pretty sure it's that simple.
Posted By: mariomari007 Re: Help with twitch bot autogreet - 10/05/15 02:10 AM
Originally Posted By: blessing

Code:
on *:JOIN:#YOURCHANNELNAMEHERE:{
  if %join. [ $+ [ $nick ] ] { return }
  set -u86400 %join. [ $+ [ $nick ] ] $true
  .timer 1 2 msg # Welcome to the stream $nick have a great time! c: Kreygasm new viewer.  
}



i am using this code to let my channel viewers know when i am in the channel but can any of you help me make it so this can tell my viewers when i leave the channel?
© mIRC Discussion Forums