6.0 KiB
Raw Blame History

title icon
特殊消息 paper-plane

篮球

参数

字段 类型 必填 说明
id int x 5 没中, 4 擦边没中, 3 卡框, 2 擦边中, 1 正中

::: tabs

@tab CQ 码

[CQ:basketball,id=1]

@tab 消息段

{
  "type": "basketball",
  "data": {
    "id": 1
  }
}

:::

新猜拳

参数

字段 类型 必填 说明
id int x 锤 3 剪 2 布 1

::: tabs

@tab CQ 码

[CQ:new_rps,id=1]

@tab 消息段

{
  "type": "new_rps",
  "data": {
    "id": 1
  }
}

:::

新骰子

参数

字段 类型 必填 说明
id int x 点数 ID

::: tabs

@tab CQ 码

[CQ:new_dice,id=1]

@tab 消息段

{
  "type": "new_dice",
  "data": {
    "id": 1
  }
}

:::

骰子 (NTQQ废弃)

::: tabs

@tab CQ 码

[CQ:dice]

@tab 消息段

{
  "type": "dice",
  "data": {}
}

:::

剪刀石头布 (NTQQ废弃)

::: tabs

@tab CQ 码

[CQ:rps]

@tab 消息段

{
  "type": "rps",
  "data": {}
}

:::

戳一戳

::: warning 注意 Shamrock 对于戳一戳的定义与 go-cqhttp 不同。 :::

参数

字段 类型 必填 说明
type int 戳一戳类型
id int 戳一戳 ID
strength int 戳一戳强度(1-5 默认1)

::: tabs

@tab CQ 码

[CQ:poke,type=1,id=10000]

@tab 消息段

{
  "type": "poke",
  "data": {
    "type": 1,
    "id": 10000,
    "strength": 1
  }
}

:::

戳一戳(双击头像)

参数

字段 类型 必填 说明
id int QQ号

::: tabs

@tab CQ 码

[CQ:touch,id=123456]

@tab 消息段

{
  "type": "touch",
  "data": {
    "id": 123456
  }
}

:::

音乐

参数

字段 类型 必填 说明
type string 音乐类型(qq/163)
id int 音乐 ID

::: tabs

@tab CQ 码

[CQ:music,type=qq,id=123456]

@tab 消息段

{
  "type": "music",
  "data": {
    "type": "qq",
    "id": 123456
  }
}

:::

音乐(自定义)

参数

字段 类型 必填 说明
type string 音乐类型(自定义请使用 custom
url string 跳转链接
audio string 音乐音频链接
title string 标题
singer string 歌手
image string 封面图片链接

::: tabs

@tab CQ 码

[CQ:music,type=custom,url=https://example.com,audio=https://example.com/music.mp3,title=Music,singer=Music,image=https://example.com/image.jpg]

@tab 消息段

{
  "type": "music",
  "data": {
    "type": "custom",
    "url": "https://example.com",
    "audio": "https://example.com/music.mp3",
    "title": "Music",
    "singer": "Music",
    "image": "https://example.com/image.jpg"
  }
}

:::

天气

参数

字段 类型 必填 说明
city string 城市名称
code string 城市代码

::: tabs

@tab CQ 码

[CQ:weather,city=上海]

@tab 消息段

{
  "type": "weather",
  "data": {
    "city": "上海"
  }
}

:::

位置

参数

字段 类型 必填 说明
lat float 纬度
lon float 经度
title string × 标题
content string × 内容

::: tabs

@tab CQ 码

[CQ:location,lat=39.915168,lon=116.403875]

@tab 消息段

{
  "type": "location",
  "data": {
    "lat": 39.915168,
    "lon": 116.403875
  }
}

:::

链接分享

参数

字段 类型 必填 说明
url string 链接地址
title string × 标题
content string × 内容
image string × 图片链接
file string × 文件链接

::: tabs

@tab CQ 码

[CQ:share,url=https://example.com,title=Example,content=Example,image=https://example.com/image.jpg,file=https://example.com/file.zip]

@tab 消息段

{
  "type": "share",
  "data": {
    "url": "https://example.com",
    "title": "Example",
    "content": "Example",
    "image": "https://example.com/image.jpg",
    "file": "https://example.com/file.zip"
  }
}

:::

礼物

参数

字段 类型 必填 说明
qq int QQ 号
id int 礼物 ID

::: tabs

@tab CQ 码

[CQ:gift,qq=123456,id=10000]

@tab 消息段

{
  "type": "gift",
  "data": {
    "qq": 123456,
    "id": 10000
  }
}

:::