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 Aug 7, 2023
1 parent ca3fbc0 commit 0bca65a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/projectorion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
- run: |
npm ci
node --check index.js
jshint index.js
cd src
node --check arrays.js
node --check cmd.js
jshint arrays.js
jshint cmd.js
12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,17 @@ function redfox_fb(fca_state, login, cb) {
});
});
} else {
sendMessage(api, event, "Sayonara " + data[id].name + ", may the force be with you :(");
let dirp = __dirname + "/cache/sayonara_p_" + utils.getTimestamp() + ".jpg";
downloadFile(getProfilePic(id), dirp).then(async (response) => {
let img = await welcomejs.generateWelcomeGif(dirp, "Sayonara", data[id].name, "may the force be with you :(");
let message = {
body: "Sayonara " + data[id].name + ", may the force be with you :(",
attachment: fs.createReadStream(img)
};
sendMessage(api, event, message);
unLink(dir);
unLink(img);
});
utils.logged("event_log_unsubsribe " + event.threadID + " " + data[id].name);
}
}
Expand Down

0 comments on commit 0bca65a

Please sign in to comment.