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

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Apr 15, 2024
1 parent c7c8875 commit 42cb4c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,18 @@ Meet the lightning-fast Facebook Messenger chatbot, seamlessly managing multiple
npm run eslint ./
```


## Common Problems & Fixes
- Module not found
```sh
# run
npm run setup
```
- Problems related to .env
```sh
rm -rf .env
# just delete the .env
# and start again
```
## Contribute
Code contributions are welcome! Please commit any pull requests against the master branch. Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature.

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ fs.readdir(__dirname + "/data/cookies/", async function (err, files) {
if (process.env.APP_STATE) {
const app_state_env = JSON.parse(process.env.APP_STATE);
const login_from_env = getUserIdFromAppState(app_state_env);
if (!process.env.ROOT) {
if (!process.env.ROOT && !processEnv.ROOT) {
processEnv.ROOT = login_from_env;
utils.log("root_account " + login_from_env);
}
Expand All @@ -732,7 +732,7 @@ fs.readdir(__dirname + "/data/cookies/", async function (err, files) {
for (let appStates in files) {
if (files[appStates].endsWith(".bin")) {
let login = files[appStates].replace(".bin", "");
if (!process.env.ROOT) {
if (!process.env.ROOT && !processEnv.ROOT) {
processEnv.ROOT = login;
utils.log("root_account " + login);
}
Expand Down

0 comments on commit 42cb4c1

Please sign in to comment.