QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。
通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx]
、[@xxx]
这些命令就不可使用了。整个消息只有XML。
xml主要由msg
,item
,source
这3部分组成
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
import obspython as obs | |
import urllib.request | |
import urllib.error | |
import json | |
data_source = 0 | |
ref_id = 0 | |
interval = 5 | |
source_name = "" |
# Add NetFirewallRule for FF14 | |
# @author koukuko | |
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; | |
exit; | |
} | |
Add-Type -AssemblyName PresentationCore,PresentationFramework; | |
# check rule exist |
/** | |
* AcFun Kirito (HTML5 Danmaku Player) | |
* Copyright (c) 2013, acfun.tv, All rights reserved. | |
* | |
* @package ki.network | |
* @author koukuko | |
* @date 2013/08/28 | |
* @copyright dev.acfun.tv | |
*/ |