mIRC Home    About    Download    Register    News    Help

Print Thread
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.

Joined: Apr 2014
Posts: 191
B
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.  
}



Joined: Jan 2014
Posts: 107
M
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107
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?

Joined: Dec 2013
Posts: 779
N
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
Joined: Jan 2014
Posts: 107
M
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107
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?

Joined: Dec 2013
Posts: 779
N
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
Joined: Jan 2014
Posts: 107
M
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107
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?

Joined: Apr 2014
Posts: 170
Vogon poet
Offline
Vogon poet
Joined: Apr 2014
Posts: 170

Joined: Jan 2014
Posts: 107
M
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107


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

Joined: Apr 2014
Posts: 170
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.

Joined: Jan 2014
Posts: 107
M
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107
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

Joined: Apr 2015
Posts: 1
P
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!

Joined: Apr 2014
Posts: 170
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.

Joined: May 2015
Posts: 1
M
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?


Link Copied to Clipboard