QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。
通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx]、[@xxx]这些命令就不可使用了。整个消息只有XML。
| addEventListener("fetch", (event) => { | |
| event.respondWith( | |
| handleRequest(event.request).catch( | |
| (err) => | |
| new Response(err.stack, { | |
| status: 500, | |
| }) | |
| ) | |
| ); | |
| }); |
| addEventListener("fetch", (event) => { | |
| event.respondWith( | |
| router(event.request).catch((err) => | |
| err instanceof HttpError | |
| ? err.toResponse() | |
| : new Response(err.stack, { status: 500 }) | |
| ) | |
| ); | |
| }); |
| /* | |
| Blank character encoder/decoder | |
| A tool to anti-censorship at Bilibili | |
| Original author: https://not-see.pages.dev/ | |
| */ | |
| const ALLOWED_BLANKS = [ | |
| "\u0020", | |
| "\u3000", |
| /* eslint-disable @typescript-eslint/no-unused-vars */ | |
| import { Type as ClassType } from '@nestjs/common'; | |
| import { ApiProperty } from '@nestjs/swagger'; | |
| import { METADATA_FACTORY_NAME } from '@nestjs/swagger/dist/plugin/plugin-constants'; | |
| import { BUILT_IN_TYPES } from '@nestjs/swagger/dist/services/constants'; | |
| import { Transform, Type } from 'class-transformer'; | |
| import { IsEnum, IsOptional, IsPositive, Max } from 'class-validator'; | |
| import { Request } from 'express'; | |
| import { | |
| IPaginationLinks, |
| // ==UserScript== | |
| // @name Marxist downloader | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Downlaod PDF books from Marxists.org Chinese | |
| // @author Mix <[email protected]> | |
| // @match https://www.marxists.org/chinese/pdf/* | |
| // @grant GM_download | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
已弃用, 请前往mnixry/nonebot-plugin-guild-patch获取最新更新
go-cqhttp >= 1.0.0-beta8
1.0.0-beta8-fix1新加入的事件NoneBot2 >= 2.0.0a16| import '@ssttevee/cfw-formdata-polyfill'; | |
| import * as poly from '@ssttevee/blob-ponyfill'; | |
| export const BuiltinBlob = Blob, | |
| BuiltinFile = File, | |
| BuiltinFormData = FormData; | |
| class OverrideFormData extends BuiltinFormData { | |
| public append(name: string, value: string | Blob, filename?: string): void { | |
| const reader = new poly.FileReaderSync(); |
| <template> | |
| <q-slider v-model="cols" :max="6" :min="1"></q-slider> | |
| <div class="column" :class="`masonry-${cols}`"> | |
| <div | |
| v-for="(_, index) in new Array(cols).fill(undefined)" | |
| :key="index" | |
| class="flex-break" | |
| /> | |
| <q-card |
| // ==UserScript== | |
| // @name Highlight inactive group member | |
| // @namespace https://gist.github.com/mnixry/ | |
| // @version 0.1 | |
| // @description Highlight inactive group members with rainbow color | |
| // @author Mix | |
| // @author yanyongyu | |
| // @match https://qun.qq.com/member.html | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=qq.com | |
| // @updateURL https://gist.github.com/mnixry/8f77e4fa658170561d6f7197ce7d6340/raw/highlight-inactive-member.user.js |