mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2014
Posts: 2
X
Bowl of petunias
OP Offline
Bowl of petunias
X
Joined: Jul 2014
Posts: 2
So what I am trying to do is make it so that when I type "!Follow Name" The bot will post in twitch chat "Please Follow http://twitch.tv/name" (Name being any possible person that I would want to enter, so !Follow John would display http://twitch.tv/john)

I just started using this yesterday so I am new to everything, but this is what I have tried using. (That hasn't worked)

Quote:

on *:TEXT:!Follow:#: {
if ($nick isop #) {
on *:INPUT:#:/echo Please Follow twitch.tv/" $1- " .
}
}

I'm guessing the problem is with the third line, but I am not sure.

I haven't been able to find any errors when I try using the command within chat.



Joined: Mar 2014
Posts: 215
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
echoing on twitch does not work. you have to "msg # blah"


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Originally Posted By: Xephronics
So what I am trying to do is make it so that when I type "!Follow Name" The bot will post in twitch chat "Please Follow http://twitch.tv/name" (Name being any possible person that I would want to enter, so !Follow John would display http://twitch.tv/john)

I just started using this yesterday so I am new to everything, but this is what I have tried using. (That hasn't worked)

Quote:

on *:TEXT:!Follow:#: {
if ($nick isop #) {
on *:INPUT:#:/echo Please Follow twitch.tv/" $1- " .
}
}

I'm guessing the problem is with the third line, but I am not sure.

I haven't been able to find any errors when I try using the command within chat.



Code:
on *:TEXT:!Follow:#: {
  if ($nick isop #) { msg $chan Please Follow twitch.tv/ $+ $mid($chan,2) $+ . }
}


er I guess i coulda read that...
Code:
on *:TEXT:!Follow*:#: {
  if ($nick isop #) { msg $chan Please Follow twitch.tv/ $+ $1 $+ . }
}

Last edited by Belhifet; 01/08/14 12:42 AM.
Joined: Jul 2014
Posts: 2
X
Bowl of petunias
OP Offline
Bowl of petunias
X
Joined: Jul 2014
Posts: 2
Originally Posted By: Belhifet
Originally Posted By: Xephronics
So what I am trying to do is make it so that when I type "!Follow Name" The bot will post in twitch chat "Please Follow http://twitch.tv/name" (Name being any possible person that I would want to enter, so !Follow John would display http://twitch.tv/john)

I just started using this yesterday so I am new to everything, but this is what I have tried using. (That hasn't worked)

Quote:

on *:TEXT:!Follow:#: {
if ($nick isop #) {
on *:INPUT:#:/echo Please Follow twitch.tv/" $1- " .
}
}

I'm guessing the problem is with the third line, but I am not sure.

I haven't been able to find any errors when I try using the command within chat.



Code:
on *:TEXT:!Follow:#: {
  if ($nick isop #) { msg $chan Please Follow twitch.tv/ $+ $mid($chan,2) $+ . }
}


er I guess i coulda read that...
Code:
on *:TEXT:!Follow*:#: {
  if ($nick isop #) { msg $chan Please Follow twitch.tv/ $+ $1 $+ . }
}



So I've found out that there is a period being added into the end of the link when it gets posted in chat. Is there any way to fix that?

Last edited by Xephronics; 01/08/14 01:20 AM.
Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Code:
on *:TEXT:!Follow*:#: {
  if ($nick isop #) { msg $chan Please Follow twitch.tv/ $+ $1 }
}

Oh..is that period a problem?

that fixes it


Link Copied to Clipboard