Skip to content

Commit

Permalink
📃 docs: 增加基本文档
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed May 4, 2024
1 parent b42ddcd commit 66e81ac
Show file tree
Hide file tree
Showing 29 changed files with 1,478 additions and 65 deletions.
21 changes: 16 additions & 5 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,29 @@ export default defineConfig({
text: '编辑此页面'
},
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
{ text: '主页', link: '/' },
{ text: '简介', link: '/intro/start/' },
{ text: '功能', link: '/feature/linkGame/' }
],
search: {
provider: 'local'
},
sidebar: [
{
text: 'Examples',
text: '简介',
items: [
{ text: '快速开始', link: '/start' },
{ text: 'Runtime API Examples', link: '/api-examples' }
{ text: '快速开始', link: '/intro/start/' },
{ text: '关于插件', link: '/intro/about/' }
]
},
{
text: '功能',
items: [
{ text: '连连看', link: '/feature/linkGame/' },
{ text: '扫雷', link: '/feature/minesweeper/' },
{ text: '消灭星星', link: '/feature/popstar/' },
{ text: '人生重开', link: '/feature/remake/' },
{ text: '今日超能力', link: '/feature/todaySuperPower/' },
]
}
],
Expand Down
49 changes: 0 additions & 49 deletions api-examples.md

This file was deleted.

Binary file added feature/linkGame/image/game.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/linkGame/image/start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/linkGame/image/stop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions feature/linkGame/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 连连看

## 介绍

使用按钮进行交互, 两个图像直接可以拐两次弯

## 指令

| 指令 | 用途 | 示例 | 备注 |
| ---------- | -------- | ----------------- | ------------ |
| 连连看 | 开始游戏 | #连连看 | |
| 连线 | 选择天赋 | 连线 1,1 连线 1,2 | 必须要两个值 |
| 结束连连看 | 结束游戏 | #结束连连看 | |

## 注意事项

- 连线必须要有两个值
- 一条消息选择多个时会收不到这条消息

## 配置文件

如果有的话

## 鸣谢

- [zhanyuzhang/link-game](https://github.com/zhanyuzhang/link-game) H5 消消乐(连连看)小游戏

## 效果图

### 开始游戏

![开始游戏](./image/start.png)

### 进行游戏

![进行游戏](./image/game.png)

### 结束游戏

![结束游戏](./image/stop.png)
Binary file added feature/minesweeper/image/mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/minesweeper/image/open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/minesweeper/image/start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions feature/minesweeper/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 扫雷

## 介绍

通过按钮点击来进行扫雷游戏,最大支持 5\*10

## 指令

| 指令 | 用途 | 示例 | 备注 |
| ----- | -------- | ------------- | ------------------ |
| #扫雷 | 开始游戏 | #扫雷 | |
| 挖开 | 进行游戏 | 挖开 1,1 | |
| 标记 | 标记格子 | 挖开 1,1 标记 | 需要和挖开一起使用 |

## 注意事项

- 一般来说只能点击按钮进行操作,所以没有支持`标记 x,y`这样的指令
-`PCQQNT`可能会显示不全

## 配置文件

如果有的话

## 鸣谢

- [noneplugin/nonebot-plugin-minesweeper](https://github.com/noneplugin/nonebot-plugin-minesweeper) Nonebot2 扫雷插件

## 效果图

### 开始游戏

![开始游戏](./image/start.png)

### 进行游戏

![进行游戏](./image/open.png)

### 标记

![标记](./image/mark.png)
Binary file added feature/popstar/image/game.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/popstar/image/start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/popstar/image/stop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions feature/popstar/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 消灭星星

## 介绍

通过按钮交互, 实现经典小游戏《消灭星星》

## 指令

| 指令 | 用途 | 示例 | 备注 |
| ------------ | -------- | ------------- | ---- |
| 消灭星星 | 开始游戏 | #消灭星星 | |
| 消灭 | 进行游戏 | 消灭 1 | |
| 结束消灭星星 | 结束游戏 | #结束消灭星星 | |

## 注意事项

- 因为消灭星星为 10\*10,所以会发送两排按钮
-`PCQQNT`可能会显示不全

## 配置文件

如果有的话

## 鸣谢

- [leeenx/popstar](https://github.com/leeenx/popstar) H5 小游戏 100 例:消灭星星

## 效果图

### 开始游戏

![开始游戏](./image/start.png)

### 进行游戏

![进行游戏](./image/game.png)

### 结束游戏

![结束游戏](./image/stop.png)
Binary file added feature/remake/image/start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/remake/image/stats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/remake/image/tlt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions feature/remake/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 人生重开模拟器

## 介绍

人生重开模拟器

## 指令

| 指令 | 用途 | 示例 | 备注 |
| ------- | -------- | --------- | ---- |
| remake | 开始游戏 | #人生重开 | |
| 0 1 2 | 选择天赋 | 0 1 2 | |
| 5 5 5 5 | 分配属性 | 5 5 5 5 | |
| 随机 | 随机分配 | 随机 | |

## 注意事项

如果有的话

## 配置文件

如果有的话

## 鸣谢

- [VickScarlet/lifeRestart](https://github.com/VickScarlet/lifeRestart) 人生重开本体
- [noneplugin/nonebot-plugin-remake](https://github.com/noneplugin/nonebot-plugin-remake) 人生重开结果图片

## 效果图

### 开始游戏

![开始游戏](./image/start.png)

### 选择天赋

![选择天赋](./image/tlt.png)

### 分配属性

![分配属性](./image/stats.png)
Binary file added feature/todaySuperPower/image/like.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/todaySuperPower/image/lookReview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/todaySuperPower/image/pass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/todaySuperPower/image/review.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/todaySuperPower/image/select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feature/todaySuperPower/image/start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions feature/todaySuperPower/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# 今日超能力

## 介绍

每日刷新不同的超能力以及副作用并统计数据

## 指令

| 指令 | 用途 | 示例 | 备注 |
| ---------- | ---------------- | ---------- | ---------------- |
| 今日超能力 | 查看今日的超能力 | 今日超能力 | 可查看昨日和明日 |
| 按下 | 选择按下 | 按下 | |
| 不按 | 选择不按 | 不按 | |
| 评论 | 进行评论 | 评论 123 | |
| 查看评论 | 查看评论 | 查看评论 | |
| 点赞评论 | 点赞评论 | 点赞评论 1 | |
| 点踩评论 | 点踩评论 | 点踩评论 1 | |
| 通过评论 | 对评论进行审核 | 通过评论 1 | |
| 删除评论 | 对评论进行删除 | 删除评论 1 | |

## 注意事项

- 如果要审核评论需要有其他可以发主动消息的 Bot

## 配置文件

### config/todaySuperPower.yaml

```yaml
# 是否启用本功能
enable: false

# 可以发送主动消息的Bot信息,用于审核评论以及推送明日超能力
otherBotInfo:
# 可以发送主动消息的Bot的QQ号,没有可以填false
QQ: false
# 可以发送主动消息的Bot和QQbot需要在一个群里
group: 1234556
# 建议将野生Bot设置为master,或者配置此项,可以发送主动消息的bot在QQBot的id
QQBotID: 38890001385C0739E3009010448273A26F09967EB5

# 官方Bot信息,用于审核评论以及推送明日超能力
QQBotInfo:
# 官方Bot的QQ号
QQ: 3889000138

# 审核评论 需要可以发送主动消息的Bot
examineReviewInfo:
# 是否启用审核评论功能
enable: false

# 明日超能力 需要可以发送主动消息的Bot
TomorrowSuperPowerInfo:
# 是否启用明日超能力推送功能
enable: true
# 什么时候进行推送
cron: "0 30 23 * * ?"

# 启用此功能的适配器,达成条件才会开启
adapter:
- key: "e.adapter_name"
value: "QQBot"
- key: "e.bot.config.markdown"
value: true

```

## 鸣谢

- [https://willyoupressthebutton.com/](https://willyoupressthebutton.com/) 数据来源

## 效果图

### 今日超能力

![今日超能力](./image/start.png)

### 选择按下

![选择按下](./image/select.png)

### 评论

![评论](./image/review.png)

### 查看评论

![查看评论](./image/lookReview.png)

### 点赞

![点赞评论](./image/like.png)
23 changes: 12 additions & 11 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ layout: home
hero:
name: "Shiranai-Plugin"
# text: "希腊奶文档"
tagline: 专注于QQBot的游戏插件
tagline: 专注于QQBot的插件
image:
src: https://count.getloli.com/get/@XasYer-Shiranai-Plugin?theme=rule34
actions:
- theme: brand
text: 快速开始
link: /start
link: /intro/start/
- theme: alt
text: 游戏文档
link: /api-examples
text: 详细功能
link: /feature/minesweeper/

features:
- title: 游戏
details: 致力于大部分经典游戏
- title: 按钮
details: 使用按钮进行交互
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: 不如TRSS
details: 不如TRSS
- title: 不如TRSS
details: 不如TRSS
- title: 不如TRSS
details: 不如TRSS
---

3 changes: 3 additions & 0 deletions intro/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 关于插件

适用于`TRSS-Yunzai`以及`QQbot-Plugin`的扩展插件, 提供部分娱乐功能
3 changes: 3 additions & 0 deletions start.md → intro/start/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ git clone --depth=1 https://github.com/XasYer/Shiranai-Plugin.git ./plugins/Shir
pnpm install --filter=Shiranai-Plugin
```

## 注意事项

1. 主要以`TRSS-Yunzai`以及`QQBot-Plugin`为主,若不是这两个插件,请自行查看是否可用
Loading

0 comments on commit 66e81ac

Please sign in to comment.