mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-04 07:19:18 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c7584c2d68
19
README.md
19
README.md
@ -1,13 +1,14 @@
|
||||
# Mirai
|
||||
|
||||
一个以<b>TIM QQ协议</b>驱动的JAVA <b>全开源</b> QQ机器人服务端核心<br>
|
||||
一个以<b>TIM QQ协议</b>驱动的JAVA(+Kotlin) <b>全开源</b> QQ机器人服务端核心<br>
|
||||
不受由于<b>SMARTQQ</b>关停的影响<br>
|
||||
项目仍处于开发阶段<br>
|
||||
项目处于快速开发阶段<br>
|
||||
由于是学生, 无法每日更新<br>
|
||||
一切开发旨在学习, 请勿用于非法用途<br>
|
||||
|
||||
<br>
|
||||
|
||||
a JAVA powered open-sources project under GPL license<br>
|
||||
A JAVA(+Kotlin) powered open-sources project under GPL license<br>
|
||||
It use protocols from <i>TIM QQ</i>, meaning it won't be affect by the close of <i>smart QQ</i><br>
|
||||
The project is all for <b>learning proposes</b> and still in <b>developing stage</b><br>
|
||||
|
||||
@ -15,10 +16,8 @@ The project is all for <b>learning proposes</b> and still in <b>developing stage
|
||||
|
||||
## 使用方法
|
||||
### 要求
|
||||
``` php
|
||||
Java 10 或以上
|
||||
...
|
||||
```
|
||||
- Java 11 或更高
|
||||
- Kotlin
|
||||
### 插件开发
|
||||
``` php
|
||||
to be continue
|
||||
@ -28,10 +27,8 @@ The project is all for <b>learning proposes</b> and still in <b>developing stage
|
||||
|
||||
## Usage
|
||||
### Requirements
|
||||
``` php
|
||||
Java 10 or higher
|
||||
...
|
||||
```
|
||||
- Java 11 or higher
|
||||
- Kotlin
|
||||
### Plugin Developments
|
||||
``` php
|
||||
to be continue
|
||||
|
@ -33,6 +33,9 @@ public class MiraiConfig {
|
||||
}
|
||||
this.file = file;
|
||||
try {
|
||||
if(file.exists()){
|
||||
file.createNewFile();
|
||||
}
|
||||
Config config = new Config();
|
||||
config.setMultiSection(true);
|
||||
ini = new Ini();
|
||||
@ -78,6 +81,7 @@ public class MiraiConfig {
|
||||
}
|
||||
a.saveAsSection(ini.get(k));
|
||||
});
|
||||
this.clearCache();
|
||||
try {
|
||||
ini.store(file);
|
||||
} catch (IOException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user