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