#!/usr/bin/python

"""
__author__ = "Brandon Jackson"
__license__ = "GPL"
__version__ = "2.7.6"
"""

import Skype4Py, random, string

skype = Skype4Py.Skype()
skype.Attach

def FloodMessage():
	counter = 1
	person = "skype_username"
	chat = skype.CreateChatWith(person)
	
	while True:
		message = ''.join(random.choice(string.printable) for x in range(random.randrange(10,50)))
		chat.SendMessage(message)

		print("Sent %s messages.") % (counter)
		counter += 1

		time.sleep(0.1)	#I've found that sometimes the messages don't send if there isn't a pause.

def main():
	FloodMessage()

if __name__ == '__main__':
	main()