Socket help

By blackvenomm666 on Dec 09, 2018

i'm working on my own twitch bot i'm trying to get the bot to connect to my twitch the followers section and return who's following me if anyone could help i'd appreciate it
www.twitch.tv/solemnviper/followers is the link to the site

alias checksubs {
  sockopen subcheck www.twitch.tv 80
  set -u3 %subcheck2 .write follower.txt
}
on *:sockopen:subcheck: {
  sockwrite -n $sockname GET /solemnviper/followers HTTP/1.1
  sockwrite -n $sockname Host: $+($sock(subcheck).addr,$str($crlf,2))
}
on *:sockread:subcheck: {
  .set %subcheck | sockread %subcheck 
  if ( *tw-interactive tw-link* iswm %subcheck) {
    %subcheck2 $remove(%subcheck,<span class="welcome">,<i>,</i>,</strong>,</font>,&nbsp;,</td>,<strong>)
    sockclose subcheck
  }
}   

Comments

Sign in to comment.
Marecki   -  May 28, 2019

Great. Thanks!

blackvenomm666  -  Jun 27, 2019

how exactly is this great? i'm asking for help it doesn't work

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.