From 286238517ff46e1993dd408d72afa1f01cd5862d Mon Sep 17 00:00:00 2001 From: Tnze Date: Sun, 19 Jan 2020 08:42:42 +0800 Subject: [PATCH] Remote support --- app.go | 4 ++-- go.mod | 2 +- go.sum | 28 ++++++++++++++++++++++++++-- log/log.go | 2 +- ping/ping.go | 2 +- 5 files changed, 31 insertions(+), 7 deletions(-) diff --git a/app.go b/app.go index e14b27b..70a6b6e 100644 --- a/app.go +++ b/app.go @@ -4,7 +4,7 @@ import ( "fmt" "runtime/debug" - "github.com/Tnze/CoolQ-Golang-SDK/cqp" + "github.com/Tnze/CoolQ-Golang-SDK/v2/cqp" "github.com/miaoscraft/SiS/customize" "github.com/miaoscraft/SiS/data" "github.com/miaoscraft/SiS/log" @@ -17,7 +17,7 @@ import ( // cqp: 版本: 1.2.2:0 // cqp: 作者: Tnze // cqp: 简介: Minecraft服务器综合管理器 -func main() { /*空*/ } +func main() { cqp.Main() } func init() { cqp.AppID = "cn.miaoscraft.sis" diff --git a/go.mod b/go.mod index de46e13..962d588 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.12 require ( github.com/BurntSushi/toml v0.3.1 - github.com/Tnze/CoolQ-Golang-SDK v1.1.0 + github.com/Tnze/CoolQ-Golang-SDK/v2 v2.1.0-pre1.0.20200119002847-0368b6d77a7b github.com/Tnze/go-mc v1.14.5-0.20200116045701-4370b6c3cd47 github.com/fatih/pool v3.0.0+incompatible github.com/go-sql-driver/mysql v1.4.1 diff --git a/go.sum b/go.sum index 36a547b..ab04d61 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,15 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/Tnze/CoolQ-Golang-SDK v1.1.0 h1:j4OyH5dn/kGsqaD+94NJ5pSCn7Xfl1PXNyGSbXxIXGw= -github.com/Tnze/CoolQ-Golang-SDK v1.1.0/go.mod h1:e0wTTiIAcKLmr4JHTUHOo0dLzctmhNE1m3HhNHHGQLA= +github.com/Tnze/CoolQ-Golang-SDK/v2 v2.1.0-pre1 h1:RuL2vTHLNh1nVIpqvw2Xpu3tp9I19I3QnZrCHm7jswc= +github.com/Tnze/CoolQ-Golang-SDK/v2 v2.1.0-pre1/go.mod h1:F+Yt41A61nZQYqpWCsjYQaZtV6v0Qwdb/CiG6irVCeE= +github.com/Tnze/CoolQ-Golang-SDK/v2 v2.1.0-pre1.0.20200119001824-fe6c08ccd9dc h1:MLt4D4AUQMO/l8cdsdfgMxUp5peZMxWVBfuT8y/3/Dg= +github.com/Tnze/CoolQ-Golang-SDK/v2 v2.1.0-pre1.0.20200119001824-fe6c08ccd9dc/go.mod h1:F+Yt41A61nZQYqpWCsjYQaZtV6v0Qwdb/CiG6irVCeE= +github.com/Tnze/CoolQ-Golang-SDK/v2 v2.1.0-pre1.0.20200119002847-0368b6d77a7b h1:2ASrRgjpfUfVKZFkXlNIyXf09nPuWn86lwUcuUQ9At0= +github.com/Tnze/CoolQ-Golang-SDK/v2 v2.1.0-pre1.0.20200119002847-0368b6d77a7b/go.mod h1:F+Yt41A61nZQYqpWCsjYQaZtV6v0Qwdb/CiG6irVCeE= github.com/Tnze/go-mc v1.14.5-0.20200116045701-4370b6c3cd47 h1:aRALhhipxce+3LJGmp4mpB0xVmvH8mgEKz0jtLLBHTw= github.com/Tnze/go-mc v1.14.5-0.20200116045701-4370b6c3cd47/go.mod h1:ZQpDcppzIn7X37rsk39CAL4C7nkmu4sxWvDpcy9pncc= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fatih/pool v3.0.0+incompatible h1:3xXzI/t5o6aEU/R+xe7ed44CTw41lV3oB0gB5pNXS5U= github.com/fatih/pool v3.0.0+incompatible/go.mod h1:v+kkrv3f2oJ1P9NHaKArMYdTVtNCwfR0DlXwnhA2L4k= github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA= @@ -12,12 +18,30 @@ github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-sqlite3 v1.13.0 h1:LnJI81JidiW9r7pS/hXe6cFeO5EXNq7KbfvoJLRI69c= github.com/mattn/go-sqlite3 v1.13.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65 h1:+rhAzEzT3f4JtomfC371qB+0Ola2caSKcY69NUBZrRQ= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= diff --git a/log/log.go b/log/log.go index be9c38e..6e959c1 100644 --- a/log/log.go +++ b/log/log.go @@ -2,7 +2,7 @@ package log import ( "fmt" - "github.com/Tnze/CoolQ-Golang-SDK/cqp" + "github.com/Tnze/CoolQ-Golang-SDK/v2/cqp" ) type Logger struct { diff --git a/ping/ping.go b/ping/ping.go index d566001..2c14b72 100644 --- a/ping/ping.go +++ b/ping/ping.go @@ -10,7 +10,7 @@ import ( "text/template" "time" - "github.com/Tnze/CoolQ-Golang-SDK/cqp/util" + "github.com/Tnze/CoolQ-Golang-SDK/v2/cqp/util" "github.com/Tnze/go-mc/bot" "github.com/Tnze/go-mc/chat" "github.com/google/uuid"