This commit is contained in:
parent
84c2a7d82d
commit
7d36b6d9dc
@ -8,11 +8,11 @@ jobs:
|
|||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
# - run: |
|
||||||
rm -rf ./*
|
# rm -rf ./*
|
||||||
git clone $BARE_REPO_DIR $CLONED_REPO_DIR
|
# git clone $BARE_REPO_DIR $CLONED_REPO_DIR
|
||||||
- run: pwd
|
- run: pwd
|
||||||
- run: ls -sl
|
# - run: ls -sl
|
||||||
- run: chmod +x ./mvnw
|
# - run: chmod +x ./mvnw
|
||||||
- run: sh ./mvnw -DskipTests=true clean package -P prod
|
# - run: sh ./mvnw -DskipTests=true clean package -P prod
|
||||||
- run: docker build -t mirai-bot:latest
|
# - run: docker build -t mirai-bot:latest
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
package info.alinadace.miraibot
|
package info.alinadace.miraibot
|
||||||
|
|
||||||
import net.mamoe.mirai.utils.BotConfiguration
|
|
||||||
import org.mybatis.spring.annotation.MapperScan
|
import org.mybatis.spring.annotation.MapperScan
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||||
import org.springframework.boot.runApplication
|
import org.springframework.boot.runApplication
|
||||||
import org.springframework.scheduling.annotation.EnableScheduling
|
import org.springframework.scheduling.annotation.EnableScheduling
|
||||||
import xyz.cssxsh.mirai.tool.FixProtocolVersion
|
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@EnableScheduling
|
@EnableScheduling
|
||||||
@ -13,7 +11,5 @@ import xyz.cssxsh.mirai.tool.FixProtocolVersion
|
|||||||
class MiraiBotApplication
|
class MiraiBotApplication
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
// FixProtocolVersion.fetch(BotConfiguration.MiraiProtocol.ANDROID_PHONE, "8.9.96")
|
|
||||||
FixProtocolVersion.load(BotConfiguration.MiraiProtocol.ANDROID_PAD)
|
|
||||||
runApplication<MiraiBotApplication>(*args)
|
runApplication<MiraiBotApplication>(*args)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user