Hack Forums
[Python] Skype4Py only working in group chats - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Skype4Py only working in group chats (/showthread.php?tid=3965586)



Skype4Py only working in group chats - _wind - Dec 31, 2013

Can anyone help me fix this issue? For some reason, it doesn't work in private chat.

What I have:

Code
#Init functions
skype = Skype4Py.Skype();
skype.OnMessageStatus = command
skype.OnUserAuthorizationRequestReceived = UserAuthorizationRequestReceived
skype.Attach();

Code
#command
def command(Message, Status):
            if Status == 'RECEIVED':
                  if Message.Body == '!help'
                      Message.Chat.SendMessage('hello')

Thanks 🤝