Automating Skype using API and Python on OS X
So I gave Skype API a try and created a small test-bot:
from ideelabor.skype import SkypeBot
# the user to whom you send a message when somebody talks to you
forward = "martinpaljak"
class IdeelaborSkypeBot(SkypeBot):
def tellCallback(self, user, text):
# tell our forward user what was said
self.tell_user(forward, "%s said: %s" % (user, text))
bot = IdeelaborSkypeBot()
bot.run()
I think it doesn't require any explanation. User 'ideelabor' is running on my laptop as a different user and martinpaljak is my skype name. You can try to talk to ideelabor and I'll know what you are telling him (it).
As i did not find a generic Python based highlevel Skype API library, i created one myself.
This bot is highly portable and does not require asynchronous notifications from Skype (but could and should be extended to use them)
Check back later for the SkypeBot code!