This commit is contained in:
parent
f818241731
commit
787520c98b
11
Dockerfile
11
Dockerfile
@ -1,8 +1,13 @@
|
|||||||
|
FROM maven as builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN mvn clean package
|
||||||
|
|
||||||
FROM bellsoft/liberica-openjdk-debian:17.0.11-cds
|
FROM bellsoft/liberica-openjdk-debian:17.0.11-cds
|
||||||
LABEL authors="Kane"
|
LABEL authors="Kane"
|
||||||
|
|
||||||
#ENTRYPOINT ["top", "-b"]
|
|
||||||
|
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
ADD target/Mirai-bot-0.0.1-SNAPSHOT.jar /opt/Mirai-bot.jar
|
COPY --from=builder /app/target/Mirai-bot-0.0.1-SNAPSHOT.jar /opt/Mirai-bot.jar
|
||||||
|
#ADD target/Mirai-bot-0.0.1-SNAPSHOT.jar /opt/Mirai-bot.jar
|
||||||
ENTRYPOINT java -jar /opt/Mirai-bot.jar
|
ENTRYPOINT java -jar /opt/Mirai-bot.jar
|
||||||
|
|
||||||
|
7
pom.xml
7
pom.xml
@ -154,13 +154,6 @@
|
|||||||
<artifactId>async-http-client</artifactId>
|
<artifactId>async-http-client</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>xyz.cssxsh.mirai</groupId>
|
|
||||||
<artifactId>fix-protocol</artifactId>
|
|
||||||
<version>3.3.1</version>
|
|
||||||
<scope>system</scope>
|
|
||||||
<systemPath>${project.basedir}/lib/fix-protocol-version-1.13.0.mirai2.jar</systemPath>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -7,7 +7,6 @@ import kotlinx.coroutines.async
|
|||||||
import kotlinx.coroutines.runBlocking
|
import kotlinx.coroutines.runBlocking
|
||||||
import net.mamoe.mirai.Bot
|
import net.mamoe.mirai.Bot
|
||||||
import net.mamoe.mirai.event.Event
|
import net.mamoe.mirai.event.Event
|
||||||
import net.mamoe.mirai.utils.BotConfiguration
|
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.context.annotation.Configuration
|
import org.springframework.context.annotation.Configuration
|
||||||
import top.mrxiaom.overflow.BotBuilder
|
import top.mrxiaom.overflow.BotBuilder
|
||||||
@ -55,10 +54,4 @@ class BotConfiguration {
|
|||||||
}
|
}
|
||||||
return eventMap
|
return eventMap
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun BotConfiguration.extracted() {
|
|
||||||
fileBasedDeviceInfo()
|
|
||||||
protocol = BotConfiguration.MiraiProtocol.ANDROID_PAD
|
|
||||||
enableContactCache()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -8,5 +8,4 @@ import info.alinadace.miraibot.service.drink_water.domain.DrinkWaterUser
|
|||||||
* @author Kane
|
* @author Kane
|
||||||
* @since 2024/9/18 13:39
|
* @since 2024/9/18 13:39
|
||||||
*/
|
*/
|
||||||
interface DrinkWaterMapper : BaseMapper<DrinkWaterUser> {
|
interface DrinkWaterMapper : BaseMapper<DrinkWaterUser>
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user