#!/usr/bin/python
import socket
import time
from random import randint
import threading
def joinTwitch(channel, username, oauth):
try:
socketz = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socketz.connect(('irc.twitch.tv', 6667))
socketz.send('PASS oauth:' + oauth + '
'
socketz.send('USER ' + username + ':' + username + '
'
socketz.send('NICK ' + username + '
'
print socketz.recv(1024)
socketz.send('JOIN #' + channel + '
'
while 1:
# idk
socketz.recv(1024)
socketz.send('PRIVMSG #' + channel + ' :Fuck all you motherfuckers <3
'
# limit
time.sleep(1)
except:
time.sleep(10)
joinTwitch(channel, username, oauth)
channel = raw_input('Channel to raid:'
userFile = open('users.txt', 'r'.read()
userSplit = userFile.split(chr(10))
for user in userSplit:
userData = user.split(':'
username = userData[0]
oauth = userData[1]
twitchThread = threading.Thread(target=joinTwitch, args=(channel, username, oauth,))
twitchThread.start()
Copyright © 2024, NextGenUpdate.
All Rights Reserved.