Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Credentials import botowner, botname, botpassword
- from SubspaceBot import *
- class BotName():
- def __init__(self):
- 1_command_id = bot.registerCommand(blah blah)
- 2_command_id = bot.registerCommand(blah blah)
- while bot.isConnected():
- event = bot.waitForEvent()
- if event.type == EVENT_ENTER:
- blah blah
- Function1()
- if event.type == EVENT_COMMAND:
- blah blah
- def Function1(self):
- blah
- bot.sendPublicMessage('blah')
- def Function2(self):
- blah
- if __name__ == '__main__':
- bot = SubspaceBot(botowner, 'This bot will start the blah Event.')
- bot.connectToServer('66.235.184.xxx', 7900, botname, botpassword, '#python')
- BlahBot1 = BotName()
- print "Bot disconnected"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement