问题标签 [skype4py]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Add contact to Skype with Skype4py
I saw this thread:
Skype4Py - How to successfully add a contact?
and at the bottom this code:
and quote:
Should get you a handle to add me for instance. Within the object that you recieve, there will be an option to add me for instance.
So my question is "What function exactly within that object, because I found nothing like "addContact()" in docs???"
Here is link to docs:
http://skype4py.sourceforge.net/doc/html/
or option 2:
Should I go pressing buttons (sending events) trough client object?
Simple 20 lines snippet would clarify this to me, because beside that docs link there are virtually any examples for skype4py on google.
skype4py - Skype4Py 用户离开事件
当用户离开聊天组并提供用户名时,是否会调用一个事件?
我在活动列表中搜索过,但我找不到它,也许我错过了它。或者我可以通过 OnMessageStatus 事件检查它,并且它有一个特殊的离开枚举?
python - 您如何订购 Skype4Py 中回复的网站?
我一直在为我的 Skype Bot 使用 Skype4Py。
我想知道如何订购 API 响应的内容。
例如,如果我想获取天气,我会输入 !weather
,它会响应:
收集天气信息。请稍候......
天气:{“数据”:{“current_condition”:[{“cloudcover”:“0”,“湿度”:“39”,“observation_time”:“11:33 AM”,“precipMM”: “0.0”,“压力”:“1023”,“temp_C”:“11”,“temp_F”:“51”,“能见度”:“16”,“weatherCode”:“113”,“weatherDesc”:[{ “值”:“清除”}],“weatherIconUrl”:[{“值”:“http://cdn.worldweatheronline.net/images/wsymbols01_png_64/wsymbol_0008_clear_sky_night.png”}],“winddir16Point”:“N”, “winddirDegree”:“0”,“windspeedKmph”:“0”,“
我想让它更像:
天气:
当前温度:51 F | 22 C
湿度:39%
风速:0 MPH
或者像这样干净利落的东西。
这样它在 Skype 中看起来不那么难看,而且看起来更专业。
我应该添加代码:
那是我的functions.py
这是我的commands.py:
就像我说的,我正在使用 Skype4Py,是的。
python - 带有 Sevabot 的 Skype4Py:自动添加联系人请求
如何使用 Sevabot 实现 Skype4Py 以使其在请求时自动添加联系人。我是 python 新手,感谢所有帮助。
python - 从 HTML 发起 Skype 通话并记录通话时长
我正在尝试整合从我的 django 应用程序启动 Skype 通话聊天的可能性,我在官方 developer.skype 上找到的所有内容都是如何添加 skypeBoutton 使我能够呼叫其他 Skype 用户而无法获得类似通话的信息持续时间和其他功能。(https://developer.skype.com/skype-uris/skype-uri-tutorial-webpages#_skypeButtons)有没有办法让这些功能或任何可用于 django 的 skype api 包装器?
python - 在 Python 中对 XML 进行排序的最简单方法?[Skype 机器人]
我正在制作一个 Skype 机器人,我的命令之一是!trace ip_or_website_here
但是,我发现整理我的 XML 响应时遇到了问题。
Commands.py
:
我的functions.py
:
现在,我的问题是响应看起来像这样:
现在,我希望能够在没有 XML 标记的情况下使其工作。
更像这样:
IP 地址:ip
国家代码:CountryCodeHere
国家名称:countrynamehere
等等。
任何帮助,将不胜感激。
python - 在 Python 2.7 中拆分字符串
我想知道如何在 Python 中允许多个输入。
例如:如果消息是“!comment postid customcomment”
,我希望能够获取该帖子 ID,将其放在某个地方,然后是 customcomment,然后将其放在其他地方。
这是我的代码:
我似乎无法弄清楚。
提前谢谢你。
python-2.7 - 0xFFFFFFFFFFFFFFFF 使用 Skype4Py 回溯
在使用 Skype4Py 并运行我的代码时,我遇到了这个回溯:
它可以是任何代码,具有不同的功能,但仍会出现回溯。
当命令提示符处于管理状态以及在 Eclipse 等 IDE 上时,回溯仍然出现。
linux - Skype4py:错误:Skype 附加超时 Ubuntu 14.04
我最近从 Ubuntu 12.04 升级到 14.04。我有一个脚本,它连接到书签聊天并写出一条消息。我正在维护一个 cronjob 以每半小时执行一次。在 12.04 中,它运行良好。
该脚本在通过终端执行时正确,但在通过 cron-job 执行时出现“附加超时”错误...