Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

small fix: relative path for data_dir #512

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JulianDroske
Copy link

client.ts uses "require()" for config loading and "fs.writeFile()" for writing. Two functions use different basepaths ("require()" searches files under the parent dir of the current .js file while another one uses cwd), so they may not be the same path. This may cause oicq to refresh user data every time it boots, since it cannot find the original config file.

client.ts uses "require()" for config loading and "fs.writeFile()" for
writing. Two functions use different basepaths ("require()" searches
files under the parent dir of the current .js file while another one
uses cwd), so they may not be the same path. This may cause oicq to
refresh user data every time it boot, since it cannot find the original
config file.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant