Create your own SkypeBOT 10-13-2012, 11:17 PM
#1
What is Skype4Py
Skype4Py is a Python wrapper for the Skype API. It is platform independent, written completely in Python and reimplements the Skype4COM's API in a pythonic way.
This specific tutorial is written for Python 2, however it can easily be translated for Python 3. Even though this does have a lot of stuff, I will be going over what I personally use.
By the way, it says PHP code. That's because I want syntax highlighting. All this is in python. Not php.
Also, This will be a shitty bot. I feel the need to say this, because I'm covering the VERY BASICS. Learning python will help you a lot more.
Download Links
I assume you already have python when reading this, if not, Download here. Also, you will need to download Skype4Py. Anyways, that should be everything you need.
Get the bot attached to skype
First you will want your bot to attach to skype. This can be easily done with the code below.
After that, you should get something like this
Starting with the bot
Here's a few things you should know. These are the main things I use in my bot.
I still recommend you learn the other stuff too.
Putting together the bot
Useful Links
http://python.org/
http://skype4py.sourceforge.net/doc/html/
http://sourceforge.net/projects/skype4py/
Download to my thinned-down bot (not an achievement at all):
http://db.tt/ZHBlcT3M
Skype4Py is a Python wrapper for the Skype API. It is platform independent, written completely in Python and reimplements the Skype4COM's API in a pythonic way.
This specific tutorial is written for Python 2, however it can easily be translated for Python 3. Even though this does have a lot of stuff, I will be going over what I personally use.
By the way, it says PHP code. That's because I want syntax highlighting. All this is in python. Not php.
Also, This will be a shitty bot. I feel the need to say this, because I'm covering the VERY BASICS. Learning python will help you a lot more.
Download Links
I assume you already have python when reading this, if not, Download here. Also, you will need to download Skype4Py. Anyways, that should be everything you need.
Get the bot attached to skype
First you will want your bot to attach to skype. This can be easily done with the code below.
PHP Code:
import Skype4Py
# Create an instance of the Skype class.
skype = Skype4Py.Skype()
# Connect the Skype object to the Skype client.
skype.Attach()
After that, you should get something like this
Starting with the bot
Here's a few things you should know. These are the main things I use in my bot.
I still recommend you learn the other stuff too.
Spoiler: Message.Body
Spoiler: Message.Chat.SendMessage
Spoiler: Message.FromHandle
Putting together the bot
Spoiler:
Useful Links
http://python.org/
http://skype4py.sourceforge.net/doc/html/
http://sourceforge.net/projects/skype4py/
Download to my thinned-down bot (not an achievement at all):
http://db.tt/ZHBlcT3M
Spoiler: