Advertisement
Guest User

botcode local

a guest
May 14th, 2010
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. from Credentials import botowner, botname, botpassword
  2. from SubspaceBot import *
  3.  
  4. class BotName():
  5. def __init__(self):
  6.  
  7. 1_command_id = bot.registerCommand(blah blah)
  8. 2_command_id = bot.registerCommand(blah blah)
  9.  
  10. while bot.isConnected():
  11. event = bot.waitForEvent()
  12.  
  13. if event.type == EVENT_ENTER:
  14. blah blah
  15. Function1()
  16. if event.type == EVENT_COMMAND:
  17. blah blah
  18.  
  19. def Function1(self):
  20. blah
  21. bot.sendPublicMessage('blah')
  22.  
  23. def Function2(self):
  24. blah
  25.  
  26. if __name__ == '__main__':
  27. bot = SubspaceBot(botowner, 'This bot will start the blah Event.')
  28. bot.connectToServer('66.235.184.xxx', 7900, botname, botpassword, '#python')
  29. BlahBot1 = BotName()
  30.  
  31. print "Bot disconnected"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement