Skip to content

Commit

Permalink
ACGImage支持私发
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 3, 2021
1 parent e9ace4f commit 1675a44
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
- [x] 以图搜图|搜索图片|以图识图[图片]
- [x] 搜图[P站图片ID]
- 随机图片与AI点评 `github.com/FloatTech/ZeroBot-ACGImage`
- [x] 随机图片
- [x] 随机图片(评级大于6的图将私发)
- [x] 直接随机(无r18检测,务必小心,仅管理可用)
- [x] 设置随机图片网址[url]
- [x] 太涩了(撤回最近发的图)
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.16

require (
github.com/FloatTech/AnimeAPI v0.0.0-20210713044920-63367fe18ccd
github.com/FloatTech/ZeroBot-ACGImage v1.5.1
github.com/FloatTech/ZeroBot-ACGImage v1.5.5
github.com/FloatTech/ZeroBot-Plugin-Timer v1.3.4
github.com/FloatTech/Zerobot-ACGImage-Classify v1.2.1
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.3
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/robfig/cron v1.2.0
Expand Down
16 changes: 16 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ github.com/FloatTech/ZeroBot-ACGImage v1.4.3 h1:lQTKfrVYdO5T+4KfC8U2bIxYnZql2hG2
github.com/FloatTech/ZeroBot-ACGImage v1.4.3/go.mod h1:CtEYnFTjgzH4v1jaowyyjBmjSKK3p8WPXExfGnVmx1E=
github.com/FloatTech/ZeroBot-ACGImage v1.5.1 h1:iolon1PR4AjEJJmUHEDfCXL8tBZOx5W21hRvNirX1Bw=
github.com/FloatTech/ZeroBot-ACGImage v1.5.1/go.mod h1:Q9k43tGy2c5sDxw3XZc2An4YfqkN1wWIXeXUH2GlaBg=
github.com/FloatTech/ZeroBot-ACGImage v1.5.2 h1:jiwZd5KEqtiKAY5QsUa6LqtW0+c1ZTg5ffqDiyDpXA8=
github.com/FloatTech/ZeroBot-ACGImage v1.5.2/go.mod h1:BWZWhP/ZVtSRTkI7CHcLO2+E7kQ/kaMPrZkMMT9VNAc=
github.com/FloatTech/ZeroBot-ACGImage v1.5.3 h1:wgG7S8z+LeoCf2nkkJ3CmOX1g5JgH47TfdBMM3KSlBA=
github.com/FloatTech/ZeroBot-ACGImage v1.5.3/go.mod h1:E2hb+uQdzpiq+kB/EoOHgMFhLt61rGDz8hNiGcZr2wo=
github.com/FloatTech/ZeroBot-ACGImage v1.5.4 h1:jPS962qvBmOR+wy8qj6wpScYZv0pLKdnl5fKdFBjNEw=
github.com/FloatTech/ZeroBot-ACGImage v1.5.4/go.mod h1:olj7sxGxAPrxy9JmbfVwkCNxrVYJ7SKnp42WbEKvWD8=
github.com/FloatTech/ZeroBot-ACGImage v1.5.5 h1:cmAsXHl99RHJR38vQXL+q/U0BGWg5LyMHxBw5Mf8f1o=
github.com/FloatTech/ZeroBot-ACGImage v1.5.5/go.mod h1:TDGCgGHKjgcnA0akLaEwUcFwL+/ya7p6PZITdJQ1vnQ=
github.com/FloatTech/ZeroBot-Plugin-Timer v1.2.4 h1:BMrSHJO1lWKTKU1DCK+XEpTaK38FMlBEIywFLIiatu8=
github.com/FloatTech/ZeroBot-Plugin-Timer v1.2.4/go.mod h1:femu/wVuqVSN/rg209qksMx8/2OKUF8l1PZCNg4RwVA=
github.com/FloatTech/ZeroBot-Plugin-Timer v1.3.1 h1:AT/nudxY5murKpEyP+ZZTczknSipeZPP2tId6/2I7Nw=
Expand All @@ -30,6 +38,14 @@ github.com/FloatTech/ZeroBot-Plugin-Timer v1.3.4 h1:nRJqY/S7TRlN32MQGIBH3UWfVrpj
github.com/FloatTech/ZeroBot-Plugin-Timer v1.3.4/go.mod h1:NuODdnVhf9AClsJBdYFqnL9sQE7VIRZyZos37J286n0=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.2.1 h1:HEdT6yq06lV94jcArutpyqQLaPpczs0bTd6gdwVG1ps=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.2.1/go.mod h1:swPvVKyXu1YFWZ7Kt6R79LgIa16hs4cE1E5LroBB2SQ=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.0 h1:4lwSBYlwPsUE7uDzSaTH4/ZlaQwWbF1jeincg6eOByg=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.0/go.mod h1:swPvVKyXu1YFWZ7Kt6R79LgIa16hs4cE1E5LroBB2SQ=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.1 h1:T8cSLwoVppbMRPKnwFgItl8523BFBiyYjxo81KXGZFk=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.1/go.mod h1:swPvVKyXu1YFWZ7Kt6R79LgIa16hs4cE1E5LroBB2SQ=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.2 h1:7s06Cw2TggudMEz3t+OSAiSv/JAetNdNYgfmuLZhGwU=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.2/go.mod h1:swPvVKyXu1YFWZ7Kt6R79LgIa16hs4cE1E5LroBB2SQ=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.3 h1:mMaBe23yg8mk5U0yb9OS9iX/9hju6Dj+Z+Fty18vIhU=
github.com/FloatTech/Zerobot-ACGImage-Classify v1.3.3/go.mod h1:swPvVKyXu1YFWZ7Kt6R79LgIa16hs4cE1E5LroBB2SQ=
github.com/StackExchange/wmi v0.0.0-20210224194228-fe8f1750fd46 h1:5sXbqlSomvdjlRbWyNqkPsJ3Fg+tQZCbgeX1VGljbQY=
github.com/StackExchange/wmi v0.0.0-20210224194228-fe8f1750fd46/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/StackExchange/wmi v1.2.0 h1:noJEYkMQVlFCEAc+2ma5YyRhlfjcWfZqk5sBRYozdyM=
Expand Down
11 changes: 6 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

// 娱乐类
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_ai_false" // 服务器监控
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_minecraft"
//_ "github.com/FloatTech/ZeroBot-Plugin/plugin_minecraft"
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_music" // 点歌
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_shindan" // 测定

Expand All @@ -29,9 +29,10 @@ import (
// 二次元图片
_ "github.com/FloatTech/ZeroBot-ACGImage" // 随机图片与AI点评
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_image_finder" // 关键字搜图
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_lolicon" // lolicon 随机图片
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_saucenao" // 以图搜图
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_setutime" // 来份涩图

//_ "github.com/FloatTech/ZeroBot-Plugin/plugin_lolicon" // lolicon 随机图片
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_saucenao" // 以图搜图
//_ "github.com/FloatTech/ZeroBot-Plugin/plugin_setutime" // 来份涩图

// 以下为内置依赖,勿动
zero "github.com/wdvxdr1123/ZeroBot"
Expand Down Expand Up @@ -70,7 +71,7 @@ func main() {
// SuperUsers 某些功能需要主人权限,可通过以下两种方式修改
// []string{}:通过代码写死的方式添加主人账号
// os.Args[1:]:通过命令行参数的方式添加主人账号
SuperUsers: append([]string{"12345678", "87654321"}, os.Args[1:]...),
SuperUsers: os.Args[1:],

Driver: []zero.Driver{
&driver.WSClient{
Expand Down

0 comments on commit 1675a44

Please sign in to comment.