Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
c7584c2d
Commit
c7584c2d
authored
Aug 17, 2019
by
Him188moe
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
52857fad
ccd3d8fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
README.md
README.md
+8
-11
mirai-core/src/main/java/net/mamoe/mirai/utils/config/MiraiConfig.java
...c/main/java/net/mamoe/mirai/utils/config/MiraiConfig.java
+4
-0
No files found.
README.md
View file @
c7584c2d
# 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
...
...
mirai-core/src/main/java/net/mamoe/mirai/utils/config/MiraiConfig.java
View file @
c7584c2d
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment