mIRC Home    About    Download    Register    News    Help

Print Thread
Help with twitch bot autogreet #245111 11/04/14 08:54 AM
Joined: Apr 2014
Posts: 4
T
Toot Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Apr 2014
Posts: 4
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.

Re: Help with twitch bot autogreet [Re: Toot] #245113 11/04/14 09:43 AM
Joined: Apr 2014
Posts: 191
B
blessing Offline
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191

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.  
}



Re: Help with twitch bot autogreet [Re: Toot] #247085 20/07/14 09:45 PM
Joined: Jan 2014
Posts: 101
M
Majeye Offline
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 101
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?

Re: Help with twitch bot autogreet [Re: Majeye] #247086 20/07/14 09:49 PM
Joined: Dec 2013
Posts: 779
N
Nillen Offline
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Store the nicks of the ops and check in the storage file if the nicks match.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Re: Help with twitch bot autogreet [Re: Nillen] #247087 20/07/14 09:51 PM
Joined: Jan 2014
Posts: 101
M
Majeye Offline
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 101
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?

Re: Help with twitch bot autogreet [Re: Majeye] #247088 20/07/14 10:11 PM
Joined: Dec 2013
Posts: 779
N
Nillen Offline
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
You can just trigger a script whenever jtv ops someone.
/help on op


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Re: Help with twitch bot autogreet [Re: Nillen] #247089 20/07/14 10:20 PM
Joined: Jan 2014
Posts: 101
M
Majeye Offline
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 101
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?

Re: Help with twitch bot autogreet [Re: Majeye] #247092 20/07/14 11:23 PM
Joined: Apr 2014
Posts: 170
Bramzee Offline
Vogon poet
Offline
Vogon poet
Joined: Apr 2014
Posts: 170

Re: Help with twitch bot autogreet [Re: Bramzee] #247093 21/07/14 12:03 AM
Joined: Jan 2014
Posts: 101
M
Majeye Offline
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 101


Tried that out - it was welcoming *everyone*, I only want it to have a custom message for mods/ops only.

Re: Help with twitch bot autogreet [Re: Majeye] #247094 21/07/14 02:36 AM
Joined: Apr 2014
Posts: 170
Bramzee Offline
Vogon poet
Offline
Vogon poet
Joined: Apr 2014
Posts: 170
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.

Re: Help with twitch bot autogreet [Re: Bramzee] #247095 21/07/14 02:37 AM
Joined: Jan 2014
Posts: 101
M
Majeye Offline
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 101
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

Re: Help with twitch bot autogreet [Re: blessing] #252446 12/04/15 04:09 PM
Joined: Apr 2015
Posts: 1
P
pixelmagic Offline
Mostly harmless
Offline
Mostly harmless
P
Joined: Apr 2015
Posts: 1
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!

Re: Help with twitch bot autogreet [Re: pixelmagic] #252460 14/04/15 11:43 AM
Joined: Apr 2014
Posts: 170
Bramzee Offline
Vogon poet
Offline
Vogon poet
Joined: Apr 2014
Posts: 170
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.

Re: Help with twitch bot autogreet [Re: blessing] #252766 10/05/15 02:10 AM
Joined: May 2015
Posts: 1
M
mariomari007 Offline
Mostly harmless
Offline
Mostly harmless
M
Joined: May 2015
Posts: 1
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?