chore: move root path
This commit is contained in:
2 files changed
+3
-6
No files matched your search
@@ -116,7 +116,7 @@ class FancyBot : OneBotListener {
|
||||
}
|
||||
|
||||
override suspend fun onGroupFileUpload(event: FileEvent) {
|
||||
event.saveTo("./files")
|
||||
event.saveTo("$ROOT_PATH/caches/")
|
||||
}
|
||||
|
||||
override suspend fun onLeaveEvent(groupId: Long, userId: Long, operator: Long, time: Long) {
|
||||
|
||||
@@ -7,10 +7,7 @@
|
||||
|
||||
package cn.rtast.fancybot.util
|
||||
|
||||
import cn.rtast.fancybot.commands
|
||||
import cn.rtast.fancybot.itemManager
|
||||
import cn.rtast.fancybot.items
|
||||
import cn.rtast.fancybot.tasks
|
||||
import cn.rtast.fancybot.*
|
||||
import cn.rtast.rob.ROneBotFactory
|
||||
import cn.rtast.rob.util.ob.OneBotListener
|
||||
import java.io.File
|
||||
@@ -34,5 +31,5 @@ fun initCommandAndItem(rob: ROneBotFactory) {
|
||||
}
|
||||
|
||||
fun initFilesDir() {
|
||||
File("./files/images").also { it.mkdirs() }
|
||||
File("./$ROOT_PATH/caches/images").also { it.mkdirs() }
|
||||
}
|
||||
Reference in New Issue
Block a user