Commit 0d505e51 authored by Him188's avatar Him188

Cleanup

parent 1f2d7e22
......@@ -5,4 +5,4 @@ import net.mamoe.mirai.data.LoginResult
class LoginFailedException(
val result: LoginResult,
message: String = "Login failed with reason $result"
) : Exception(message)
\ No newline at end of file
) : RuntimeException(message)
\ No newline at end of file
......@@ -63,7 +63,7 @@ suspend fun main() {
*
* @see MessageSubscribersBuilder
*/
suspend fun Bot.messageDSL() {
fun Bot.messageDSL() {
// 监听这个 bot 的来自所有群和好友的消息
this.subscribeMessages {
// 当接收到消息 == "你好" 时就回复 "你好!"
......
......@@ -32,6 +32,9 @@ dependencies {
api(project(":mirai-console"))
runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // classpath is not added correctly by IDE
implementation(group = 'com.alibaba', name = 'fastjson', version = '1.2.62')
implementation("org.jsoup:jsoup:1.12.1")
api(kotlin("stdlib", kotlinVersion))
api(kotlinx("io-jvm", kotlinXIoVersion))
api(kotlinx("io", kotlinXIoVersion))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment