mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-04-28 03:45:29 +00:00
Allow relative paths for mjolnir data
These are relative to the project directory.
This commit is contained in:
+2
-1
@@ -45,7 +45,8 @@ if (config.health.healthz.enabled) {
|
||||
}
|
||||
|
||||
(async function () {
|
||||
const storage = new SimpleFsStorageProvider(path.join(config.dataPath, "bot.json"));
|
||||
const storagePath = path.isAbsolute(config.dataPath) ? config.dataPath : path.join(__dirname, '../', config.dataPath)
|
||||
const storage = new SimpleFsStorageProvider(path.join(storagePath, "bot.json"));
|
||||
|
||||
let client: MatrixClient;
|
||||
if (config.pantalaimon.use) {
|
||||
|
||||
Reference in New Issue
Block a user