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
e11cdf24
Commit
e11cdf24
authored
Oct 08, 2019
by
Him188
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
522ac8b8
b796d30d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
README.md
README.md
+0
-5
mirai-demos/mirai-demo-1/build.gradle
mirai-demos/mirai-demo-1/build.gradle
+1
-1
No files found.
README.md
View file @
e11cdf24
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
3.
Run demo
[
Demo 1 Main
](
mirai-demos/mirai-demo-1/src/main/java/demo1/Main.kt#L22
)
3.
Run demo
[
Demo 1 Main
](
mirai-demos/mirai-demo-1/src/main/java/demo1/Main.kt#L22
)
### 事件 Hook
### 事件 Hook
#### Java:
暂不支持
#### Kotlin:
#### Kotlin:
```
kotlin
```
kotlin
FriendMessageEvent
.
subscribeAlways
{
FriendMessageEvent
.
subscribeAlways
{
...
@@ -40,9 +38,6 @@ FriendMessageEvent.subscribeAlways{
...
@@ -40,9 +38,6 @@ FriendMessageEvent.subscribeAlways{
发送图片已经完成,但我们还在开发上传图片至服务器。
发送图片已经完成,但我们还在开发上传图片至服务器。
现在你可以通过发送一张图片给机器人账号,再让机器人账号发送这张图片。你可以查看
[
Image.kt
](
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/message/defaults/Image.kt#L20-L93
)
现在你可以通过发送一张图片给机器人账号,再让机器人账号发送这张图片。你可以查看
[
Image.kt
](
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/message/defaults/Image.kt#L20-L93
)
## 语言使用说明
我们使用 Kotlin,但我们也会保留对 Java 和 Java开发者的支持。
# TODO
# TODO
-
[x] 事件(Event)模块
-
[x] 事件(Event)模块
-
[ ] 插件(Plugin)模块
**(Working on)**
-
[ ] 插件(Plugin)模块
**(Working on)**
...
...
mirai-demos/mirai-demo-1/build.gradle
View file @
e11cdf24
...
@@ -2,7 +2,7 @@ apply plugin: "kotlin"
...
@@ -2,7 +2,7 @@ apply plugin: "kotlin"
apply
plugin:
"java"
apply
plugin:
"java"
dependencies
{
dependencies
{
implementation
project
(
":mirai-core"
)
compile
project
(
":mirai-core"
)
compile
rootProject
.
ext
.
coroutine
compile
rootProject
.
ext
.
coroutine
compile
'org.jetbrains.kotlin:kotlin-stdlib:1.3.50'
compile
'org.jetbrains.kotlin:kotlin-stdlib:1.3.50'
}
}
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