Skip to content

Commit

Permalink
fix: fs
Browse files Browse the repository at this point in the history
  • Loading branch information
yayacat committed Jan 27, 2025
1 parent 229f36a commit b8ac4b0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Binary file added eew-logger/EEW-Logger.trem
Binary file not shown.
10 changes: 6 additions & 4 deletions eew-logger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,18 @@ class Plugin {
const configDir = utils.path.join(info.pluginDir, "./EEW-Logger/config.yml");

this.logger = logger;
this.#config = new config("EEW-Logger", this.logger, defaultDir, configDir);
this.#config = new config("EEW-Logger", this.logger, utils.fs, defaultDir, configDir);
this.config = this.#config.getConfig();

const args_info_path = utils.path.join(__dirname, "logger");

if (!utils.fs.existsSync(args_info_path)) utils.fs.mkdirSync(args_info_path);

TREM.variable.events.on("EewRelease", (ans) => this.runEEWLogger(TREM, utils, args_info_path, ans));
TREM.variable.events.on("EewUpdate", (ans) => this.runEEWLogger(TREM, utils, args_info_path, ans));
TREM.variable.events.on("EewEnd", (ans) => this.runEEWLogger(TREM, utils, args_info_path, ans));
const event = (event, callback) => TREM.variable.events.on(event, callback);

// event("EewRelease", (ans) => this.runEEWLogger(TREM, utils, args_info_path, ans));
// event("EewUpdate", (ans) => this.runEEWLogger(TREM, utils, args_info_path, ans));
// event("EewEnd", (ans) => this.runEEWLogger(TREM, utils, args_info_path, ans));
}
}

Expand Down
11 changes: 11 additions & 0 deletions eew-logger/signature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"timestamp": 1737973785515,
"version": "1.0.5",
"fileHashes": {
"index.js": "37a275fba088ca48e73b4cc4fe962ade8de6f425aa2199b8fa3df0c8788aee03",
"info.json": "3d6d4edccbc9a6ac6b6cf776e000ebef9ca84b0065a710ee465cb8f3f0c60b2b",
"resource/default.yml": "bd39b92f0fbc502f0bafd08368294c8ec13e85aad9e9c8fb39e13ed9299f3df7"
},
"signature": "UADWBGNS8rapmRdimZyWTzS2/xXWUzzlNlFU3l3WUlzOe7xnCgZm64VBaXKOAaaY0eJacntpYDWslh6Dq2vJ0TAX3y6W/L7pFrRwN4es94E4Z73HDYLAxWI23pJzpruN+GxXZPzeecwlab1IeAKJ/FHPhJcSV2W8fzBSZC8xyddxuKG+dJTkheQ4qfldpT17hcXNav7su1Emarp4B6+5TyWg/skhLzvFnuQVgHKt/+1+pgNbPTxxGy8IjleHG/4j1MIni3cImc/+6jLKDijiGThmp305VnZonoy13mf11IPxQo+pkX5TXNOYYi5FR8wBySl0jGId3smcXj528gfZ4Q==",
"keyId": "official"
}

0 comments on commit b8ac4b0

Please sign in to comment.