Skip to content

Instantly share code, notes, and snippets.

@TheOpenDevProject
Created December 1, 2015 02:44
Show Gist options
  • Select an option

  • Save TheOpenDevProject/b42e05596bf9d203466c to your computer and use it in GitHub Desktop.

Select an option

Save TheOpenDevProject/b42e05596bf9d203466c to your computer and use it in GitHub Desktop.
void twitchManager::commandHandler(QString streamInput){
// commandExpression.setPattern("(?<=");
if(streamInput == "PING :tmi.twitch.tv\r\n"){
twitch_socket->write("PONG tmi.twitch.tv\r\n");
twitch_socket->flush();
qDebug() << "Pong Sent";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment