Sinisterly
Python Skype Bot - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Python (https://sinister.li/Forum-Python)
+--- Thread: Python Skype Bot (/Thread-Python-Skype-Bot)



Python Skype Bot - OverFloow - 06-07-2014

# Prerequisites, Skype + Python(http://www.python.org/download/) + Skype4py(https://pypi.python.org/pypi/Skype4Py/)
# If you want to modify the source, have some knowledge in python. Read up on Skype4py it's the pinnacle of the bot.
# If you don't like the json format, Learn to pasrse data. Start with local Ip's considering they are partially useless.
# Secondary API : http://resolver2.obn0xio.us:8080/api/echo123
# Bot & API Coded by @Hannah Montana

import Skype4Py
import urllib2
import json

def command(Message, Status):
if Status == 'SENT' or (Status == 'RECEIVED'):
if '!resolve' in Message.Body:
messageText = str(Message.Body)
messageText = messageText.split(' ')
resolverAPI = 'http://resolver.obn0xio.us:8080/api/'
resolverJSON = json.load(urllib2.urlopen(resolverAPI + messageText[1]))
for index in resolverJSON:
Message.Chat.SendMessage(index['public'])

skype = Skype4Py.Skype()

skype.OnMessageStatus = command

if skype.Client.IsRunning == False:
skype.Client.Start()

skype.Attach()

while True:
raw_input('')


RE: Python Skype Bot - RiMuS - 06-09-2014

can u repost it with the spaces ?