Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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 + '
- 'Winky Winky
- socketz.send('USER ' + username + ':' + username + '
- 'Winky Winky
- socketz.send('NICK ' + username + '
- 'Winky Winky
- print socketz.recv(1024)
- socketz.send('JOIN #' + channel + '
- 'Winky Winky
- while 1:
- # idk
- socketz.recv(1024)
- socketz.send('PRIVMSG #' + channel + ' :Fuck all you motherfuckers <3
- 'Winky Winky
- # limit
- time.sleep(1)
- except:
- time.sleep(10)
- joinTwitch(channel, username, oauth)
- channel = raw_input('Channel to raid:'Winky Winky
- userFile = open('users.txt', 'r'Winky Winky.read()
- userSplit = userFile.split(chr(10))
- for user in userSplit:
- userData = user.split(':'Winky Winky
- username = userData[0]
- oauth = userData[1]
- twitchThread = threading.Thread(target=joinTwitch, args=(channel, username, oauth,))
- twitchThread.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement