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
7b9e6e53
Commit
7b9e6e53
authored
Dec 20, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unresolved package
parent
21696cbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt
...rai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt
+2
-2
No files found.
mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt
View file @
7b9e6e53
...
@@ -7,6 +7,7 @@ import kotlinx.coroutines.GlobalScope
...
@@ -7,6 +7,7 @@ import kotlinx.coroutines.GlobalScope
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.withContext
import
kotlinx.coroutines.withContext
import
net.mamoe.mirai.Bot
import
net.mamoe.mirai.BotAccount
import
net.mamoe.mirai.BotAccount
import
net.mamoe.mirai.alsoLogin
import
net.mamoe.mirai.alsoLogin
import
net.mamoe.mirai.contact.MemberPermission
import
net.mamoe.mirai.contact.MemberPermission
...
@@ -22,7 +23,6 @@ import net.mamoe.mirai.message.data.Image
...
@@ -22,7 +23,6 @@ import net.mamoe.mirai.message.data.Image
import
net.mamoe.mirai.message.data.buildXMLMessage
import
net.mamoe.mirai.message.data.buildXMLMessage
import
net.mamoe.mirai.message.data.getValue
import
net.mamoe.mirai.message.data.getValue
import
net.mamoe.mirai.message.sendAsImageTo
import
net.mamoe.mirai.message.sendAsImageTo
import
net.mamoe.mirai.timpc.TIMPC
import
java.io.File
import
java.io.File
import
java.util.*
import
java.util.*
import
javax.swing.filechooser.FileSystemView
import
javax.swing.filechooser.FileSystemView
...
@@ -44,7 +44,7 @@ private fun readTestAccount(): BotAccount? {
...
@@ -44,7 +44,7 @@ private fun readTestAccount(): BotAccount? {
@Suppress
(
"UNUSED_VARIABLE"
)
@Suppress
(
"UNUSED_VARIABLE"
)
suspend
fun
main
()
{
suspend
fun
main
()
{
val
bot
=
TIMPC
.
Bot
(
val
bot
=
Bot
(
readTestAccount
()
?:
BotAccount
(
readTestAccount
()
?:
BotAccount
(
id
=
913366033
,
id
=
913366033
,
password
=
"a18260132383"
password
=
"a18260132383"
...
...
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