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
eef9e6b3
Commit
eef9e6b3
authored
Jun 16, 2020
by
Him188
Committed by
GitHub
Jun 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update guide_quick_start.md
parent
0da92bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
docs/guide_quick_start.md
docs/guide_quick_start.md
+7
-4
No files found.
docs/guide_quick_start.md
View file @
eef9e6b3
...
...
@@ -21,10 +21,13 @@
[
![Download
](
https://api.bintray.com/packages/him188moe/mirai/mirai-core/images/download.svg
)
](https://bintray.com/him188moe/mirai/mirai-core/)
### 添加依赖
#### 直接导入jar包
您可以从以下repo下载已经编译好的jar包:
可通过以下三种方法之一添加 mirai 依赖.
#### 直接导入jar包 (不推荐)
下载已经编译好的 Jar 包, 并添加 Jar 依赖:
-
[
mirai-core
](
https://github.com/mamoe/mirai-repo/tree/master/shadow/mirai-core
)
-
[
mirai-qqandriod
](
https://github.com/mamoe/mirai-repo/tree/master/shadow/mirai-core-qqandroid
)
#### Maven
Kotlin 在 Maven 上只支持 JVM 平台.
...
...
@@ -48,7 +51,7 @@ Kotlin 在 Maven 上只支持 JVM 平台.
</dependencies>
```
#### Gradle
#### Gradle
(推荐)
Mirai 只发布在
`jcenter`
, 因此请确保添加
`jcenter()`
仓库:
...
...
@@ -87,7 +90,7 @@ implementation("net.mamoe:mirai-core-qqandroid-android:VERSION")
val
bot
=
Bot
(
qqId
,
password
).
alsoLogin
()
bot
.
subscribeAlways
<
GroupMessageEvent
>
{
event
->
if
(
event
.
message
.
content
.
contains
(
"你好"
))
{
reply
(
"你好!"
)
reply
(
"你好!"
)
}
else
if
(
event
.
message
.
content
.
contains
(
"你好"
))
{
File
(
"C:\\image.png"
).
sendAsImage
()
}
...
...
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