diff --git a/_plugin/DGJ.md b/_plugin/DGJ.md deleted file mode 100644 index b1ddd9f..0000000 --- a/_plugin/DGJ.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -hide: true -title: 点歌姬 -auther: -plugin_author: -plugin_name: 点歌姬 -plugin_desc: -plugin_version: 2.0.0 -plugin_update_datetime: 2017-08-04 16:47:00 +0800 -#plugin_update_desc: |- -# 扒拉扒拉扒拉测试 -# 测试,测试测试。 -# 换行。 -plugin_dllink: "about:blank" -#plugin_dlnote: 看这个页面右侧的使用说明! ---- - -点歌姬v2已停止维护无法使用,不再提供下载。 diff --git a/_plugin/DGJv3.md b/_plugin/DGJv3.md deleted file mode 100644 index 2e1766b..0000000 --- a/_plugin/DGJv3.md +++ /dev/null @@ -1,133 +0,0 @@ ---- -hide: true -title: 点歌姬 -auther: 宅急送队长 -plugin_author: 宅急送队长 -plugin_name: 点歌姬 (v3) -plugin_desc: 用弹幕来播放歌曲吧 -plugin_version: 3.0.5 -plugin_update_datetime: 2019-05-30 00:00:00 +0800 -#plugin_update_desc: |- -# 扒拉扒拉扒拉测试 -# 测试,测试测试。 -# 换行。 -plugin_dllink: /resource/DGJv3/DGJv3.7z -#plugin_dlnote: 看这个页面右侧的使用说明! ---- - -## 点歌姬v3已停止维护 - -### 点歌姬v3已停止维护,内置的搜索模块已经不能使用,如需使用可以配合西井开发的拓展模块 - -如果你想自行修改维护点歌姬v3,可以在这里获取源码: https://github.com/Bililive/DGJv3 - -下面的使用文档仅作为参考保留 - -
- -## 安装插件 - -将压缩包中的 `DGJv3.dll` 解压放到 `文档\弹幕姬\Plugins` 文件夹,插件文件夹可以在弹幕姬的插件一页用快速打开按钮打开。 - -安装后,打开弹幕姬,在插件一页右键点歌姬,点击 “管理” 可以打开点歌姬界面。 - -第一次使用,在点歌之前需要选择使用什么歌曲平台搜索。 - -点歌前需要弹幕姬连接房间。 - -![install](/resource/DGJv3/install.png) - -## 弹幕命令 - -### 普通命令 - -- `点歌 搜索关键词` 搜索歌曲 - - 或 `點歌 關鍵詞` -- `取消点歌` 取消自己的最后一首还没有开始播放的歌曲 - - 或 `取消點歌` - -### 房管命令 - -- `切歌` 删除列表中的第一首歌曲 -- `暂停` 暂停播放 - - 或 `暫停` -- `播放` 继续播放 -- `音量 数字` 设置音量 - -## 输出文本 - -在 `文档\弹幕姬\Plugins\点歌姬v3` 文件夹里有 `信息.txt` 和 `歌词.txt` 两个文件,可以使用直播软件读取,显示在直播画面上。 - -![output](/resource/DGJv3/output.png) - -
- -OBS Studio 添加来源方法: - -1. 在 “来源” 中右键,添加一个 `文本 (GDI+)` 来源 -2. 给来源设置一个容易区分的名字 -3. 勾选 “从文件读取” -4. 点击 “浏览” 按钮,选择一个 txt 文件 -5. 调整颜色、字体、样式到想要的样子 - -哔哩哔哩直播姬添加来源方法: - -1. 点击左下角的 “文本” -2. 给来源设置一个容易区分的名字 -3. 勾选 “从文件读” -4. 点击 “浏览” 按钮,选择一个 txt 文件 -5. 调整颜色、字体、样式到想要的样子 - -OBS Classic 添加来源方法: - -1. 在 “来源” 中右键,选择 “添加”、“文字来源” -2. 随便填写一个容易区分的来源名字,确认 -3. 勾选 “使用文件中的文字” -4. 点击 “浏览” 按钮,选择一个 txt 文件 -5. 调整颜色、字体、样式到想要的样子 - -## 输出文本模板 - -点歌姬v2 使用的是简单的文本替换,而 点歌姬v3 使用了文本模板引擎,功能更强大、可以运行简单的脚本,但使用方法也相对较复杂。 - -有能力的主播可以自行翻阅文本模板引擎的文档: [语法](https://github.com/lunet-io/scriban/blob/master/doc/language.md) [内置函数](https://github.com/lunet-io/scriban/lob/master/doc/builtins.md)(英语) - -{% raw %} -简单说明: -在 `{{` 和 `}}` 中间的内容是变量,会被替换成实际的文字,比如 `{{ 当前播放时间 }}` 会被替换成像 `01:34` 一样的时间。 - -默认示例: - -```txt -播放进度 {{ 当前播放时间 }}/{{ 当前总时间 }} -当前列表中有 {{ 歌曲数量 }} 首歌 -还可以再点 {{ 总共最大点歌数量 - 歌曲数量 }} 首歌 -每个人可以点 {{ 单人最大点歌数量 }} 首歌 - -歌名 - 点歌人 - 歌手 - 歌曲平台 -{{~ for 歌曲 in 播放列表 ~}} -{{ 歌曲.歌名 }} - {{ 歌曲.点歌人 }} - {{ 歌曲.歌手 }} - {{ 歌曲.搜索模块 }} -{{~ end ~}} -``` - -只显示列表中前 3 首歌示例: - -```txt -{{~ 最多显示歌曲数量 = 3 # <=- 修改这里的数字就是修改显示数量 ~}} -播放进度 {{ 当前播放时间 }}/{{ 当前总时间 }} -当前列表中有 {{ 歌曲数量 }} 首歌 -还可以再点 {{ 总共最大点歌数量 - 歌曲数量 }} 首歌 -每个人可以点 {{ 单人最大点歌数量 }} 首歌 - -歌名 - 点歌人 - 歌手 - 歌曲平台 -{{~ for 歌曲 in 播放列表 ~}} -{{ 歌曲.歌名 }} - {{ 歌曲.点歌人 }} - {{ 歌曲.歌手 }} - {{ 歌曲.搜索模块 }} -{{~ - if for.index + 1 >= 最多显示歌曲数量 - break - end - end -~}} -``` - -{% endraw %} diff --git a/_plugin/FollowAlert.md b/_plugin/FollowAlert.md deleted file mode 100644 index fa017d1..0000000 --- a/_plugin/FollowAlert.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -hide: true -title: 关注提醒 -auther: 宅急送队长 -plugin_author: 宅急送队长 -plugin_name: 关注提醒 -plugin_desc: 有新观众关注时发出提醒 -plugin_version: 1.2.1 -plugin_update_datetime: 2017-11-23 19:21:00 +0800 -plugin_update_desc: |- - 因为B站接口变动,旧插件已不能使用,请升级到最新版本。 -plugin_dllink: /resource/FollowAlert/FollowAlert1.2.1.zip -plugin_contact: ==wZy9mLppWdt5WYkBkbpdWdsBHIwiY52uL5uKY6BCY6R+Y53+K6YKa6ueZ6Eq552uL5S+o5syp5 -#plugin_dlnote: 并不需要下载说明 ---- - -## 注意 - -本插件会持续请求B站接口,又因B站使用了屏蔽大量请求的网站防火墙规则,所以很容易导致被B站临时屏蔽IP。因此目前不再推荐使用本插件。 - -[更多日志插件现已有提醒新关注的功能,点此下载](/plugins/ExtendLogging) - -本插件已从插件列表隐藏,但还可以通过链接访问、下载。 - -### 安装使用方法 - -将插件放到 `文档\弹幕姬\Plugins\` 文件夹里 -重启弹幕姬,在弹幕姬的 “插件” 面板启用插件即可 - -插件已添加防刷屏功能,观众连续关注、取关主播不会导致提醒刷屏。 - -插件会把关注人的名字显示到弹幕侧边栏。 -并且写入到文件,供主播展示到直播画面中。每个关注人在文件中保留五秒(直播画面中停留五秒)。 - -插件界面 - -
- -### 常用直播软件添加从文件读取的文字方法 - -OBS Classic 添加来源方法: - -1. 在“来源”中右键,选择“添加”、“文字来源” -2. 随便填写一个容易区分的来源名字,确认 -3. 点击 “使用文件中的文字”,点击浏览,选择需要显示的文件 -4. 调整颜色、字体、样式到想要的样子 - -
- -哔哩哔哩直播姬添加来源方法: - -1. 点击左下角的 “文本” -2. 给来源设置一个容易区分的名字 -3. 勾选 “从文件读” 前面的勾选框 -4. 点击浏览,选择需要显示的文件 -5. 调整颜色、字体、样式到想要的样子 diff --git a/_plugin/LoginCenter.md b/_plugin/LoginCenter.md deleted file mode 100644 index 9c77449..0000000 --- a/_plugin/LoginCenter.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -hide: true -title: 登录中心 -auther: 宅急送队长 -plugin_author: 宅急送队长 -plugin_name: 登录中心 -plugin_desc: 登录B站账号供其他插件使用 -plugin_version: 1.2.3 -plugin_update_datetime: 2019-06-01 00:00:00 +0800 -plugin_update_desc: |- - 恢复用户名密码登录功能,内部接口修改 -plugin_dllink: /resource/LoginCenter/LoginCenter.zip -plugin_contact: ==wZy9mLppWdt5WYkBkbpdWdsBHIwiY52uL5uKY6BCY6R+Y53+K6YKa6ueZ6Eq552uL5S+o5syp5 -#plugin_dlnote: 请不要二次上传到其他网站谢谢 ---- - -插件界面 - -## 安装插件 - -下载插件后解压压缩包,把 `LoginCenter.dll` 放到插件文件夹。 -插件文件夹在 `文档\弹幕姬\Plugins` (Win7中,“文档” 叫做 “我的文档”) -放到插件文件夹后需要重启弹幕姬。 - -
- -## 登录账号 - -安装插件后,在弹幕姬的插件列表中,右键“登录中心”点击“管理”打开插件界面。 - -支持使用客户端扫码登录和手动输入 Cookie。 -账号数据在简单加密后保存到 `文档\弹幕姬\Plugins\登录中心\账号数据` ,请注意不要把账号信息发给别人 - -
- -## 插件授权 - -其他插件只有在经过授权后才能使用B站账号。 -在其他插件申请授权后,“登录中心” 会弹出一个弹窗询问用户是否同意授权。 -可以在 “登录中心” 的界面中取消或临时禁用插件的授权。 - -
- -## 面向开发者 - 使用“登录中心”的API - -所有提供给其他插件使用的接口均在 `LoginCenter.API` 命名空间下 -未授权访问账号相关接口会抛出 `PluginNotAuthorizedException` -有问题可以加开发群 553934452 询问 diff --git a/_plugin/Lottery.md b/_plugin/Lottery.md deleted file mode 100644 index 51927ed..0000000 --- a/_plugin/Lottery.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -hide: true -title: 弹幕抽奖 -auther: 宅急送队长 -plugin_author: 宅急送队长 -plugin_name: 弹幕抽奖 -plugin_desc: 从弹幕中随机抽奖 -plugin_version: 1.1 -plugin_update_datetime: 2018-04-20 20:40:00 +0800 -#plugin_update_desc: |- -# -plugin_dllink: /resource/Lottery/DMPlugin_Lottery.zip -plugin_contact: ==wZy9mLppWdt5WYkBkbpdWdsBHIwiY52uL5uKY6BCY6R+Y53+K6YKa6ueZ6Eq552uL5S+o5syp5 -#plugin_dlnote: 并不需要下载说明 ---- -界面样子 - -
- -### 使用流程: - -1. 在弹幕姬中右键插件,管理,打开界面 -2. 设置是否需要佩戴勋章等设定 -3. 启用插件 -4. 等待观众刷弹幕 -5. 点击 “开始抽奖” 按钮 - -
- -### 说明: - -- 启用插件后,插件才能记录弹幕 -- 抽奖为从最后若干条弹幕中随机抽奖 -- 如果有人发送了多条弹幕,有概率抽中多次一个人的不同弹幕 -- 同一条弹幕不可能抽中两次 diff --git a/_plugin/SendDanmaku.md b/_plugin/SendDanmaku.md deleted file mode 100644 index dcd76ea..0000000 --- a/_plugin/SendDanmaku.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -hide: true -title: 弹幕发送 -auther: 宅急送队长 -plugin_author: 宅急送队长 -plugin_name: 弹幕发送 -plugin_desc: 在弹幕姬中快速发送弹幕 -plugin_version: 1.1.7 -plugin_update_datetime: 2019-05-30 00:00:00 +0800 -plugin_update_desc: |- - 整体更新 -plugin_dllink: /resource/SendDanmaku/SendDanmaku.zip -plugin_contact: ==wZy9mLppWdt5WYkBkbpdWdsBHIwiY52uL5uKY6BCY6R+Y53+K6YKa6ueZ6Eq552uL5S+o5syp5 -#plugin_dlnote: 请不要二次上传到其他网站谢谢 ---- - -插件界面 - -
- -## 安装插件 - -**此插件需要安装 “[登录中心](/plugins/LoginCenter)” 插件才能使用** -安装插件后,在“登录中心”中登录账号 - -下载插件后解压压缩包,把 `SendDanmaku.dll` 放到插件文件夹。 -插件文件夹在 `文档\弹幕姬\Plugins` (Win7中,“文档” 叫做 “我的文档”) -放到插件文件夹后需要重启弹幕姬。 - -
- -## 授权使用B站账号 - -点击弹幕发送框右侧的 “申请授权” 按钮,会弹出 “登录中心” 插件的授权界面。 -同意授权后,弹幕发送插件就可以使用在“登录中心”登录的账号发送弹幕了。 - -
- -## 使用方式 - -在弹幕发送框中, -按 `回车` 发送弹幕 -按 `上` `下` 键可以翻弹幕发送历史 diff --git a/resource/DGJ/admin.png b/resource/DGJ/admin.png deleted file mode 100644 index 5667681..0000000 Binary files a/resource/DGJ/admin.png and /dev/null differ diff --git a/resource/DGJ/archive/450.mp3 b/resource/DGJ/archive/450.mp3 deleted file mode 100644 index 7c1bc1c..0000000 Binary files a/resource/DGJ/archive/450.mp3 and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.3.zip b/resource/DGJ/archive/DGJ1.3.zip deleted file mode 100644 index 5c511be..0000000 Binary files a/resource/DGJ/archive/DGJ1.3.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.4.1.zip b/resource/DGJ/archive/DGJ1.4.1.zip deleted file mode 100644 index 6bdc574..0000000 Binary files a/resource/DGJ/archive/DGJ1.4.1.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.4.zip b/resource/DGJ/archive/DGJ1.4.zip deleted file mode 100644 index 7e25b2f..0000000 Binary files a/resource/DGJ/archive/DGJ1.4.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.5.0.zip b/resource/DGJ/archive/DGJ1.5.0.zip deleted file mode 100644 index 4d608e4..0000000 Binary files a/resource/DGJ/archive/DGJ1.5.0.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.5.1.zip b/resource/DGJ/archive/DGJ1.5.1.zip deleted file mode 100644 index 4195663..0000000 Binary files a/resource/DGJ/archive/DGJ1.5.1.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.5.1b.zip b/resource/DGJ/archive/DGJ1.5.1b.zip deleted file mode 100644 index 52adb6a..0000000 Binary files a/resource/DGJ/archive/DGJ1.5.1b.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.5.2.zip b/resource/DGJ/archive/DGJ1.5.2.zip deleted file mode 100644 index 7a4dd4f..0000000 Binary files a/resource/DGJ/archive/DGJ1.5.2.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.5.3.zip b/resource/DGJ/archive/DGJ1.5.3.zip deleted file mode 100644 index c3b3f94..0000000 Binary files a/resource/DGJ/archive/DGJ1.5.3.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.5.4.zip b/resource/DGJ/archive/DGJ1.5.4.zip deleted file mode 100644 index bd31ea4..0000000 Binary files a/resource/DGJ/archive/DGJ1.5.4.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ1.5.4_old.zip b/resource/DGJ/archive/DGJ1.5.4_old.zip deleted file mode 100644 index 6822805..0000000 Binary files a/resource/DGJ/archive/DGJ1.5.4_old.zip and /dev/null differ diff --git a/resource/DGJ/archive/DGJ2.0.0.7z b/resource/DGJ/archive/DGJ2.0.0.7z deleted file mode 100644 index 0bb14af..0000000 Binary files a/resource/DGJ/archive/DGJ2.0.0.7z and /dev/null differ diff --git a/resource/DGJ/archive/about.html b/resource/DGJ/archive/about.html deleted file mode 100644 index 5235c7e..0000000 --- a/resource/DGJ/archive/about.html +++ /dev/null @@ -1,93 +0,0 @@ - - - -
作者信息:
-插件作者:宅急送队长
-插件使用说明:https://www.danmuji.org/plugins/DGJ
-问题反馈QQ群:95349372
- -
更新日志:
-2018-8-31 : 3.0.0
-	* 点歌姬重做
-
-2017-8-4 : 正式版 2.0.0
-	+ 增加投票切歌功能
-	+ 增加优先歌曲功能
-	+ 增加日志输出文件功能
-	* 在点歌姬界面添加歌曲时,点歌人名字改为 “主播”
-	* 歌词搜索默认开启,并取消开关
-	* 搜索功能内置进点歌姬
-	* 不再从 “曲源” 文件夹中加载搜索模块
-	* 播放时,歌曲文件都假设为 mp3 播放
-	* 其他内部细节修改
-
-2017-2-10 : 正式版 1.5.4
-	* 修改搜素模块系统代码中的typo
-	* 搜索模块“LWLAPI”同步更新到1.0版本,支持了多个歌曲平台
-	注:使用新版LWLAPI需要点歌姬本体版本1.5.4或以上
-
-2017-2-5 : 正式版 1.5.3
-	* 修复部分歌曲在Win7上播放出错的问题
-
-2017-2-2 : 正式版 1.5.2
-	+ 所有弹幕命令都支持繁体了
-	+ 关闭弹幕姬时清空输出文本
-	+ 在界面上添加了“切歌”按钮
-	* “播放暂停”按钮的图标分成“播放”和“暂停”两个图标
-	* 过滤了歌曲缓存文件名中的非法字符
-	* 修改了版本更新提醒中的更新日期,现在只有年月日,没有时间
-
-2016-12-06 : 正式版 1.5.1
-	* 修复自定义文本输出“歌曲上限”无效的问题
-	* 修复自定义文本输出中有空行的问题
-
-2016-12-01 : 正式版 1.5.0
-	+ 歌曲信息格式可以自定义了
-	+ 播放方式现在会保存了
-	+ 增加设置选项“只输出一行歌词”
-	* 细节修改
-
-2016-11-02 : 正式版 1.4.1
-	# 这是一个可选更新的问题修复更新
-	* 修复部分人同时打开QQ音乐和弹幕姬会导致弹幕姬崩溃问题
-	* 彻底修复了切换输出方式/刷新设备处可能导致崩溃的问题
-
-2016-10-28 : 正式版 1.4
-	* 同步初始化流程修改,报错信息调整。
-	* 修复切换输出方式到DirectSound时弹幕姬崩溃的问题
-	*调整DirectSound为默认播放方式
-	* 修复获取其他播放器歌名偶然出现迷之字符的BUG
-	* 禁用了歌曲列表的排序,防止显示混乱
-	* 配合网站,修改插件检查新版本的接口
-		 注:1.3及以前版本在11月17日后将获取
-		 不到更新提醒,请尽快更新到新版本
-
-2016-10-20 : 正式版 1.3
-	+ 下载防卡死,自动取消没速度的下载
-	+ 删除正在下载的歌曲时取消下载
-	+ 获取其他播放器歌名显示到输出文本中(暂时只支持QQ和网易云)
-	* 修复选择DirectSound输出方式时刷新设备会崩溃的问题
-	* 其他并没感觉的细节修改
-
-2016-9-18 : 正式版 1.2
-	* 修复版本检查失败会崩溃弹幕姬的ZZ BUG(MDZZ
-	* 修复快速拖动播放进度条有可能崩溃弹幕姬的BUG(MDZZZZZZZ
-	注:再给点歌姬加功能应该会是十月份以后了。。
-
-2016-8-24 : 正式版 1.1
-	* 修复“允许弹幕控制”开关反了(打开就不能控制了)的问题
-	* 修复播放输出设备在部分电脑上错位或出错的问题
-	+ 新增一个播放方法DirectSound(原先的为WaveOutEvent)
-	+ 新增对非MP3格式音频文件播放的支持(暂时没有什么用处)
-
-2016-8-20 : 正式版 1.0
-2016-8-14 : 内测版 a0.6
-2016-8-10 : 内测版 a0.5
-2016-8-09 : 内测版 a0.4
-2016-8-06 : 内测版 a0.3
-2016-7-26 : 内测版 a0.2
-2016-7-22 : 内测版 a0.1
-
- - \ No newline at end of file diff --git a/resource/DGJ/docu.png b/resource/DGJ/docu.png deleted file mode 100644 index c6a3d34..0000000 Binary files a/resource/DGJ/docu.png and /dev/null differ diff --git a/resource/DGJ/obss.png b/resource/DGJ/obss.png deleted file mode 100644 index b98d92e..0000000 Binary files a/resource/DGJ/obss.png and /dev/null differ diff --git a/resource/DGJv3/DGJv3.7z b/resource/DGJv3/DGJv3.7z deleted file mode 100644 index b9d275d..0000000 Binary files a/resource/DGJv3/DGJv3.7z and /dev/null differ diff --git a/resource/DGJv3/install.png b/resource/DGJv3/install.png deleted file mode 100644 index 5148c7a..0000000 Binary files a/resource/DGJv3/install.png and /dev/null differ diff --git a/resource/DGJv3/output.png b/resource/DGJv3/output.png deleted file mode 100644 index d1d0872..0000000 Binary files a/resource/DGJv3/output.png and /dev/null differ diff --git a/resource/FollowAlert/FollowAlert1.2.1.zip b/resource/FollowAlert/FollowAlert1.2.1.zip deleted file mode 100644 index 7cf5453..0000000 Binary files a/resource/FollowAlert/FollowAlert1.2.1.zip and /dev/null differ diff --git a/resource/FollowAlert/archives/FollowAlert1.1.0.zip b/resource/FollowAlert/archives/FollowAlert1.1.0.zip deleted file mode 100644 index 3ae9d0e..0000000 Binary files a/resource/FollowAlert/archives/FollowAlert1.1.0.zip and /dev/null differ diff --git a/resource/FollowAlert/archives/FollowAlert1.1.1.zip b/resource/FollowAlert/archives/FollowAlert1.1.1.zip deleted file mode 100644 index 4abd556..0000000 Binary files a/resource/FollowAlert/archives/FollowAlert1.1.1.zip and /dev/null differ diff --git a/resource/FollowAlert/archives/FollowAlert1.2.0.zip b/resource/FollowAlert/archives/FollowAlert1.2.0.zip deleted file mode 100644 index 49495a2..0000000 Binary files a/resource/FollowAlert/archives/FollowAlert1.2.0.zip and /dev/null differ diff --git a/resource/FollowAlert/archives/FollowAlert100.zip b/resource/FollowAlert/archives/FollowAlert100.zip deleted file mode 100644 index b61eabc..0000000 Binary files a/resource/FollowAlert/archives/FollowAlert100.zip and /dev/null differ diff --git a/resource/FollowAlert/pic.png b/resource/FollowAlert/pic.png deleted file mode 100644 index fdd5152..0000000 Binary files a/resource/FollowAlert/pic.png and /dev/null differ diff --git a/resource/LoginCenter/1.png b/resource/LoginCenter/1.png deleted file mode 100644 index 5f09b09..0000000 Binary files a/resource/LoginCenter/1.png and /dev/null differ diff --git a/resource/LoginCenter/LoginCenter.zip b/resource/LoginCenter/LoginCenter.zip deleted file mode 100644 index 5837a36..0000000 Binary files a/resource/LoginCenter/LoginCenter.zip and /dev/null differ diff --git a/resource/Lottery/DMPlugin_Lottery.zip b/resource/Lottery/DMPlugin_Lottery.zip deleted file mode 100644 index 3d981dd..0000000 Binary files a/resource/Lottery/DMPlugin_Lottery.zip and /dev/null differ diff --git a/resource/Lottery/GUI.png b/resource/Lottery/GUI.png deleted file mode 100644 index fbbd2a8..0000000 Binary files a/resource/Lottery/GUI.png and /dev/null differ diff --git a/resource/SendDanmaku/1.png b/resource/SendDanmaku/1.png deleted file mode 100644 index f465705..0000000 Binary files a/resource/SendDanmaku/1.png and /dev/null differ diff --git a/resource/SendDanmaku/SendDanmaku.zip b/resource/SendDanmaku/SendDanmaku.zip deleted file mode 100644 index 64fa955..0000000 Binary files a/resource/SendDanmaku/SendDanmaku.zip and /dev/null differ diff --git a/webhook/index.js b/webhook/index.js deleted file mode 100644 index 6addd98..0000000 --- a/webhook/index.js +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env node - -const hook = require('githubhook'), - child_process = require('child_process'), - fs = require('fs'), - path = require("path"), - minify = require('html-minifier').minify, - cleancss = new(require('clean-css'))({ - level: 2 - }); - -const options = { - hook: { - port: 12451, - secret: "[SECRET]" - }, - execSync_options: { - cwd: "/opt/www/Bililive_dm_Website/", - }, - build: "build", - refresh: "cdn", - buildoptions: { - src: "/opt/www/Bililive_dm_Website/", - dist: "/opt/www/output/" - }, - minify_options: { - collapseBooleanAttributes: true, - collapseWhitespace: true, - minifyCSS: true, - minifyJS: true, - removeAttributeQuotes: true, - removeComments: true, - removeEmptyAttributes: true, - removeScriptTypeAttributes: true, - removeStyleLinkTypeAttributes: true, - sortAttributes: true, - sortClassName: true, - } -}; - -// process.on('uncaughtException', err => dolog('Caught exception: ' + err)); - -var push = function (data) { - dolog("开始操作"); - - child_process.execSync("sudo git clean -fdx", options.execSync_options); - - dolog(child_process.execSync("sudo git fetch --all", options.execSync_options)); - - dolog(child_process.execSync("sudo git reset --hard origin/master", options.execSync_options)); - - if (new RegExp(options.build).test(data.head_commit.message)) { - var build_cmd = "sudo bundle exec jekyll build --source " + options.buildoptions.src + " --destination " + options.buildoptions.dist; - dolog(child_process.execSync(build_cmd, options.execSync_options)); - - // 压缩代码文件 - readFileList(options.buildoptions.dist).filter(w => w.endsWith('.html')) - .forEach(file => - fs.writeFileSync(file, - minify(fs.readFileSync(file, { - encoding: "utf8" - }), options.minify_options) - ) - ); - - readFileList(options.buildoptions.dist).filter(w => w.endsWith('.css')) - .forEach(file => - fs.writeFileSync(file, - cleancss.minify(fs.readFileSync(file, { - encoding: "utf8" - })).styles - ) - ); - - dolog("代码文件压缩完毕\n"); - } else { - dolog("不需要 Build\n"); - } - - if (new RegExp(options.refresh).test(data.head_commit.message)) { - var refresh_cmd = "qcloudcli cdn RefreshCdnDir --dirs '[\"https://www.danmuji.org/\",\"http://www.danmuji.org/\"]'"; - dolog(child_process.execSync(refresh_cmd, options.execSync_options)); - } else { - dolog("不需要 RefreshCDN\n"); - } - - dolog("操作结束\n"); -} - -const readFileList = (dir) => - fs.readdirSync(dir).reduce((files, file) => - fs.statSync(path.join(dir, file)).isDirectory() ? - files.concat(readFileList(path.join(dir, file))) : - files.concat(path.join(dir, file)), []); - -function dolog(text) { - var logdate = new Date(); - var logfile = "/opt/www/log/" + logdate.getFullYear() + "-" + ('0' + (logdate.getMonth() + 1)).slice(-2) + "-" + ('0' + logdate.getDate()).slice(-2) + ".log"; - fs.appendFileSync(logfile, "[" + logdate.getFullYear() + "-" + (logdate.getMonth() + 1) + "-" + logdate.getDate() + - " " + logdate.getHours() + ":" + logdate.getMinutes() + ":" + logdate.getMinutes() + "] - " + text); -} - -var github = hook(options.hook); -github.listen(); -github.on('push:Bililive_dm_Website:refs/heads/master', function (data) { - process.nextTick(function () { - push(data) - }) -}); \ No newline at end of file diff --git a/webhook/package.json b/webhook/package.json deleted file mode 100644 index 63a8ad6..0000000 --- a/webhook/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "bililive_dm_website_autobuild", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "Genteure", - "private": true, - "dependencies": { - "clean-css": "^4.1.9", - "githubhook": "^1.9.1", - "html-minifier": "^3.5.5" - } -}