QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。
通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx]
、[@xxx]
这些命令就不可使用了。整个消息只有XML。
xml主要由msg
,item
,source
这3部分组成
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
RegularExpression | |
常用正则表达式大全汇总(持续更新中……) | |
校验数字的表达式 | |
数字:^[0-9]*$ | |
n位的数字:^\d{n}$ | |
m-n位的数字:^\d{m,n}$ | |
至少n位的数字:^\d{n,}$ |
let floatingWindow; | |
const createFloatingWindow = function() { | |
const electron = require('electron'); | |
const BrowserWindow = electron.BrowserWindow; | |
if (!floatingWindow) { | |
floatingWindow = new BrowserWindow({ | |
width: 1000, | |
height: 80, | |
titleBarStyle: 'hide', | |
transparent: true, |
This is a very tiny snippet of userscript that allows the one to enable debug features on the production version of Penguin Statistics website.
This snippet may NOT be distributed through any public file or code sharing services such as GreasyFork or other places on GitHub. This snippet is releasing under only a personal attribution of myself :D
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.