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
d708f095
Commit
d708f095
authored
Feb 20, 2020
by
jasonczc
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # docs/guide_getting_started.md
parents
c09d0086
538980b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
docs/guide_getting_started.md
docs/guide_getting_started.md
+7
-11
No files found.
docs/guide_getting_started.md
View file @
d708f095
# Mirai Guide - Getting Started
# Mirai Guide - Getting Started
由于Mirai项目在快速推进中,因此内容时有变动,本文档的最后更新日期为
```2020-02-20```
,对应版本
```0.1
7
.0```
由于Mirai项目在快速推进中,因此内容时有变动,本文档的最后更新日期为
```2020-02-20```
,对应版本
```0.1
6
.0```
假如仅仅使用Mirai,不需要对整个项目进行Clone,只需在项目内添加Gradle Dependency或使用即可。
假如仅仅使用Mirai,不需要对整个项目进行Clone,只需在项目内添加Gradle Dependency或使用即可。
下面介绍详细的入门步骤。
下面介绍详细的入门步骤。
本文章使用Kotlin作为开发语言。
**若你希望使用 Java 开发**
, 请查看:
[
mirai-japt
](
mirai-japt/README.md
)
## With Console
## Use Console
使用mirai-console,以插件形式对服务器功能进行管理,启动无需任何IDE。
使用mirai-console,以插件形式对服务器功能进行管理,启动无需任何IDE。
**由于mirai-console还没有开发完成,暂时不提供入门。**
**由于mirai-console还没有开发完成,暂时不提供入门**
*
假如需要体验mirai-console,请clone整个项目,自行进行编译与部署。
##
Use
Loader
##
With
Loader
通过编写Kotlin程序启动mirai-core,并定义你的Mirai Bot行为。
通过编写Kotlin程序启动mirai-core,并定义你的Mirai Bot行为。
...
@@ -59,8 +55,8 @@ JDK要求8以上
...
@@ -59,8 +55,8 @@ JDK要求8以上
```
groovy
```
groovy
dependencies
{
dependencies
{
implementation
'net.mamoe:mirai-core:0.1
7
.0'
implementation
'net.mamoe:mirai-core:0.1
6
.0'
implementation
'net.mamoe:mirai-core-qqandroid-jvm:0.1
7
.0'
implementation
'net.mamoe:mirai-core-qqandroid-jvm:0.1
6
.0'
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile
group:
'junit'
,
name:
'junit'
,
version:
'4.12'
testCompile
group:
'junit'
,
name:
'junit'
,
version:
'4.12'
}
}
...
@@ -72,7 +68,7 @@ JDK要求8以上
...
@@ -72,7 +68,7 @@ JDK要求8以上
### 4 Try Bot
### 4 Try Bot
-
在src/main文件夹下新建文件夹,命名为
```kotlin```
-
在src/main文件夹下新建文件夹,命名为
```kotlin```
-
在
```kotlin```
下新建包(在
```kotlin```
文件夹上右键-
```New```
-
```Package```
) 包名为
```net.mamoe.mirai.simpleloader```
-
在
```kotlin```
下新建包(在
```kotlin```
文件夹上右键-
```New```
-
```Package
s
```
) 包名为
```net.mamoe.mirai.simpleloader```
-
在包下新建kotlin文件
```MyLoader.kt```
-
在包下新建kotlin文件
```MyLoader.kt```
...
...
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