Esempio n. 1
0
		# if we cannot warn more. We really don't care at
		# this point
		for x in xrange(0,3):
			self.do_EVIL(screenname)

			# so that we don't exceed speed limit
			time.sleep(2)
			
# if this file is run directly
if __name__ == "__main__":
	
	bot = BattleBot(sn1, pass1)
	bot._info = "I'm warrior #1 in this sad, sad fight."
	# make verbose output.  more fun to watch frenzy
	bot._debug = 2

	bot2 = BattleBot(sn2, pass2)
	bot2._info = "I'm warrior #2, sure to be the victor!"
	bot2._debug = 2

	bm = BotManager()
	bm.addBot(bot,"myBot")
	bm.addBot(bot2,"myBot2")

	time.sleep(4) # time to log on

	#set 'em off..
	bot.do_SEND_IM(sn2,"Hi, friend?  How are you?")

	bm.wait()  # this will never return
Esempio n. 2
0
		elif str(msg[:5]) == "dance": 
			logging.info(time.asctime() + " Dance command was requested by " + str(message[0]))
			for i in self.danceLyrics:
				bot.do_SEND_IM(message[0], str(i))
				time.sleep(1)
		elif str(msg[:4]) == "help" : 
			logging.info(time.asctime() + " Help command was requested by " + str(message[0]))
			bot.do_SEND_IM(message[0], str(self.lovejoy.get_help()))
		elif str(msg[:4]) == "time" : 
			logging.info(time.asctime() + " Time command was requested by " + str(message[0]))
			bot.do_SEND_IM(message[0], time.asctime())
		else: 
			logging.info(time.asctime() + " Unknown command: \"" + str(msg[0:]) + "\" requested by " + str(message[0]))
			bot.do_SEND_IM(message[0], "Your message has me confused. Type help for a list of my commands.")

#Program is run.
#Get Lovejoy and AIM login information and start the AIMBot.
if __name__ == "__main__":
	print "__Lovejoy Login__"
	lovejoySN = raw_input("Username: "******"Password: "******"__AIM Login__"
	aimSN = raw_input("Username: "******"Password: "******"AIMBot")
	time.sleep(5)
	bm.wait()