🎨 小修改

This commit is contained in:
Kanri 2021-10-15 22:02:14 +08:00
parent c46ca1d4c2
commit d375a3bbbb
5 changed files with 5 additions and 9 deletions

View File

@ -69,6 +69,7 @@ func (m *Control) Disable(groupID int64) {
m.Unlock()
}
// IsEnabledIn 开启群
func (m *Control) IsEnabledIn(gid int64) bool {
m.RLock()
var c grpcfg

View File

@ -1,3 +1,4 @@
// Package diana 嘉然相关
package diana
import (

View File

@ -1,10 +1,3 @@
/*
* @Author: Kanri
* @Date: 2021-10-15 21:23:14
* @LastEditors: Kanri
* @LastEditTime: 2021-10-15 21:40:37
* @Description:
*/
// Package minecraft MCSManager
package minecraft

View File

@ -7,6 +7,7 @@ import (
"os"
)
// DownloadTo 下载到路径
func DownloadTo(url, file string) error {
resp, err := http.Get(url)
if err == nil {

View File

@ -1,7 +1,7 @@
// Package math 计算实用工具
package math
// min 返回两数最大值,该函数将被内联
// Max 返回两数最大值,该函数将被内联
func Max(a, b int) int {
if a > b {
return a
@ -9,7 +9,7 @@ func Max(a, b int) int {
return b
}
// min 返回两数最小值,该函数将被内联
// Min 返回两数最小值,该函数将被内联
func Min(a, b int) int {
if a > b {
return b