在python中向pidgin上的主房间发送消息

时间:2016-07-08 15:47:58

标签: python python-2.7 pidgin

我需要创建一个python脚本,将具有特定警报的消息发送到pidgin聊天的主要房间,以便所有连接的人都可以看到警报,消息等。

我有一个工作,但只发送消息给特定的人,但我需要将消息发送到主要房间。

脚本是这样的:

$s = "{block content\nddggggggggggggggg\n/endcontent}";
$pt='~\{\s*block\s*-?\s*(\w+)(\s+|\~)(.*)\/end\1}~s';
preg_match($pt, $s, $match1);
print_r($match1);

任何提示发送给主房间的所有人? 感谢

0 个答案:

没有答案