mIRC Homepage
Posted By: x3pos Twitch bot - this person here? - 25/01/16 05:56 PM
i need irc code
me:this person are you there?
bot:this person is here.
or
bot:this person is not here.
Posted By: Fonic_Artes Re: Twitch bot - this person here? - 26/01/16 12:21 PM
It's possible, by using $fline and if you don't have the CAP requests for Twitch then you can call the API for a chatters list to see.

Note: If I'm incorrect on the $fline part, please let me know as I was reading about it a little on the mirc/scriptbox site.


[Personal Note]
I don't recommend it being used to call out non-active chatters (lurkers) as calling out lurkers on Twitch is rude to those who want to just watch and not talk.
Posted By: Blas Re: Twitch bot - this person here? - 27/01/16 01:28 PM
Code:
ON $*:TEXT:/^\w+ are you there\?$/iS:#: $IIF($1 ison $chan, MSG $chan $1 is here., MSG $chan $1 is not here.)

The above code works if you type in exactly as in your example.
This assumes that you have userlists enabled. Also, viewerlists can be a little... weird... it can take up to a minute for JOINS to show up in Twitch chat, and occasionally some names will randomly PART and then REJOIN within seconds.

Having said that, I second Fonic_Artes comment about it being rude to call out lurkers by name. Just a personal opinion, but it's a common one that you'll see on Twitch.
Posted By: x3pos Re: Twitch bot - this person here? - 11/03/16 12:42 PM
i need this
viewer=x3pos is here?
bot=yes.x3pos is here.
viewers=admin is here?
viewers=random is here?
viewers=all is here?
viewers=xxx is here?
i want to only my name's command.

this code working all names
Code:
ON $*:TEXT:/^\w+ are you there\?$/iS:#: $IIF($1 ison $chan, MSG $chan $1 is here., MSG $chan $1 is not here.)
Posted By: x3pos Re: Twitch bot - this person here? - 13/03/16 12:01 PM
someone help?
Posted By: Blas Re: Twitch bot - this person here? - 13/03/16 01:02 PM
I'm not sure what you're asking exactly. If I understand correctly, you only want people to be able to ask if YOU are in the channel? Maybe try this:

Code:
ON $*:TEXT:/\s?x3pos\s.*(t?here)\?$/iS:#: MSG $chan x3pos is $IIF(x3pos ison $chan, here., not here.)


This should cover queries such as:
is x3pos in here?
x3pos are you there?
etc...
Posted By: x3pos Re: Twitch bot - this person here? - 13/03/16 07:28 PM
Originally Posted By: Blas
I'm not sure what you're asking exactly. If I understand correctly, you only want people to be able to ask if YOU are in the channel? Maybe try this:

Code:
ON $*:TEXT:/\s?x3pos\s.*(t?here)\?$/iS:#: MSG $chan x3pos is $IIF(x3pos ison $chan, here., not here.)


This should cover queries such as:
is x3pos in here?
x3pos are you there?
etc...


this code is working thank you.can you change for turkish language?
Code:
This should cover queries such as:
x3pos burdami?
x3pos kanaldami?
© mIRC Discussion Forums