Aluf

Spam

Jan 18th, 2015
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.41 KB | None | 0 0
  1. import chatango
  2. import time
  3. import threading
  4. import random
  5. chatango.debug(False)
  6. class bot(threading.Thread):
  7.         def __init__(self, addr):
  8.                 self.room=chatango.chatroom(addr)
  9.                 self.room.login('','')
  10.                 self.room.set_font(size=13)
  11.                 threading.Thread.__init__(self)
  12.         def run(self):
  13.                 while True:
  14.                         try:
  15.                                 self.room.say('PINGAS')
  16.                                 time.sleep(3+random.random())
  17.                         except: print('>ERROR')
  18. print('\
  19. ===============================')
  20. target=input('TARGET_CHATROOM:')
  21. while True:
  22.         magnitude=int(input('ATTACK_MAGNITUDE:'))
  23.         if magnitude==0 or magnitude>10:
  24.                 print('Unnacceptable magnitude. Please try again.')
  25.         else: break
  26. print('''\
  27. ===============================
  28. Initializing %d instances
  29. At http://%s.chatango.com/
  30. ==============================='''%(magnitude,target))
  31. for i in range(0, magnitude):
  32.         exec('BOTINST_'+str(i)+'=bot("%s")'%target)
  33.         print('INSTANCE '+str(i)+'INITIATED.')
  34. print('''\
  35. ===============================
  36. MAXIMUM OVERTROLL REACHED.
  37. FIRING ALL WEAPONS.
  38. ===============================''')
  39. for i in range(0, magnitude):
  40.         exec('BOTINST_'+str(i)+'.start()')
  41. print('''\
  42. R.I.P.
  43. http://%s.chatango.com/
  44. ==============================='''%target)
Advertisement
Add Comment
Please, Sign In to add comment