我尝试运行一个脚本来响应个人和群组聊天,但它只响应个人聊天
import Skype4Py
def commands(Message, Status):
if Status == 'SENT' or Status == 'RECEIVED':
if Message.Body == "ping":
cmd_ping(Message)
else:
pass
else:
pass
def cmd_ping(Message):
Message.Chat.SendMessage('pong')
print "Ping Command Received \n"
skype = Skype4Py.Skype();
skype.OnMessageStatus = commands
skype.Attach();
while True:
raw_input('')发布于 2015-03-04 21:09:37
我假设你已经在新版本的Skype中创建了聊天。
请尝试以下解决方案:创建P2P聊天(通过/createmoderatedchat在任何群组或个人聊天)。我们在我们的项目中遇到了同样的问题,所以你可以参考我们的wiki page。
https://stackoverflow.com/questions/27847806
复制相似问题