Advertisement
Guest User

Untitled

a guest
Mar 13th, 2010
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import random
  4. from Credentials import botowner, botname, botpassword
  5. from SubspaceBot import *
  6.  
  7. if __name__ == '__main__':
  8.     bot = SubspaceBot(botowner, 'This bot announces kills to the arena')
  9.     bot.connectToServer('66.235.184.102', 7900, botname, botpassword, '#python')
  10.    
  11.     print "Bot connected to server"
  12.    
  13.     while bot.isConnected():
  14.         event = bot.waitForEvent()
  15.         if event.type == EVENT_KILL:
  16.             bot.sendArenaMessage(event.killer.name + ' killed ' + event.killed.name + '!')
  17.        
  18.     print "Bot disconnected"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement