File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,14 @@ sudo apt-get install nodejs npm # Linux Debian系可以这样安装
102
102
# Linux 用户在此处打开终端,输入:
103
103
chmod +x ./TMBotStart && ./TMBotStart
104
104
```
105
+
105
106
3 . 启动TMBot
107
+
106
108
``` sh
107
109
./TMBotStart # Linux
108
110
TMBotStart.exe # Windows
109
111
```
112
+
110
113
### 文件目录说明
111
114
112
115
``` json
@@ -155,14 +158,15 @@ FileTree:
155
158
** 而在` LiteLoaderBDS ` 上,根目录是作用于` BDS根目录 ` 上的**
156
159
157
160
** 所以可以使用**
161
+
158
162
``` js
159
163
FileClass .getStandardPath (< 相对目录> )
160
164
```
165
+
161
166
** 来获取作用于项目路径的绝对路径来避免此类BUG出现**
162
167
163
168
* ``` TIPS: TMBot的基础接口实现已经全部使用了上述方法,所以可以直接传入作用于项目的相对路径 ``` *
164
169
165
-
166
170
#### 一些额外注意事项
167
171
168
172
1 . TMBot已经为你写好了一些基础接口实现,
@@ -193,6 +197,7 @@ tools/logger: Logger
193
197
(请不要随意"使用"内部功能实现的模块) 如:``` OneBotDocking ``` , ``` PluginLoader ``` ,``` Websocket ``` 。
194
198
虽然不可以使用,但是可以引用它内部的方法作为参数类型
195
199
8 . 请在你正在使用的WS实例销毁时一并结束你的插件的一切工作,例子:
200
+
196
201
``` js
197
202
let tmp = BotDockingMgr .getBot (" xxx" );
198
203
let sid = setInterval (()=> {},1000 );
@@ -201,10 +206,9 @@ tmp.Client.events.onDestroy.on(()=>{
201
206
})
202
207
```
203
208
204
-
205
209
### 版本控制
206
210
207
- 该项目使用Git进行版本管理。您可以在GitHub查看当前可用版本。
211
+ 该项目使用Git进行版本管理。您可以在GitHub查看当前可用版本。
208
212
209
213
### 作者
210
214
You can’t perform that action at this time.
0 commit comments