From 31aab55f6577b4c58a955a70c8eb53e8614f8e91 Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Sun, 9 Jun 2024 11:58:17 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV.md | 18 ++++++------------ src/bot.ts | 2 +- src/mys/MysUtil.ts | 3 --- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/DEV.md b/DEV.md index 3e429b4..1e30d4b 100644 --- a/DEV.md +++ b/DEV.md @@ -25,7 +25,7 @@ * @param T 任意字符串 * @returns false */ -function getTest(T:string){ +function getTest(T: string) { return false } ``` @@ -34,17 +34,13 @@ function getTest(T:string){ ```ts // 获得test值 -function getTest(T:string){ -} +function getTest(T: string) {} // 设置 -function setTest(T:string){ -} +function setTest(T: string) {} // 删除 -function delTest(T:string){ -} +function delTest(T: string) {} // 获取某数据依据为id -function getDataById(T:string){ -} +function getDataById(T: string) {} // 系统常量 const ENV_TEST = 'dev' @@ -88,12 +84,10 @@ lib目录将在未来逐渐放弃,在版本发布后,开发者需要有意 ## 新版目录 - - 核心源码 src/core - - 配置管理 src/config @@ -180,4 +174,4 @@ class Component { ) } } -``` \ No newline at end of file +``` diff --git a/src/bot.ts b/src/bot.ts index 4697c8b..c857bc0 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -18,7 +18,7 @@ import ListenerLoader from './lib/listener/loader.js' import { Client } from 'icqq' /** - * + * */ export class Yunzai extends Client { /** diff --git a/src/mys/MysUtil.ts b/src/mys/MysUtil.ts index 06122fe..0ec09bc 100644 --- a/src/mys/MysUtil.ts +++ b/src/mys/MysUtil.ts @@ -8,9 +8,6 @@ const games = [ { key: 'sr', name: '星穹铁道' } ] - - - /** * */