QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。
通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx]
、[@xxx]
这些命令就不可使用了。整个消息只有XML。
xml主要由msg
,item
,source
这3部分组成
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
# Script to render a sequence of ply files with Blender. First, setup your scene | |
# and material for the imported meshes. Scene must be in "OBJECT"-mode. | |
# Fill in variables in options. | |
# References. | |
# See: http://blender.stackexchange.com/questions/24133/modify-obj-after-import-using-python | |
# and: http://blenderartists.org/forum/showthread.php?320309-How-to-import-ply-files-from-script | |
import bpy | |
# Options. | |
meshFolder = "" # Folder without ending "\\". |
import redis | |
import json | |
from datetime import datetime, timedelta | |
from redis.exceptions import ResponseError | |
import subprocess | |
r = redis.Redis(host='localhost', port=6379, db=0, decode_responses=True) | |
now = datetime.now() | |
# 过期天数 |
#!/usr/bin/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |