diff --git a/.github/workflows/projectorion.yml b/.github/workflows/projectorion.yml index d2c9821f..44636e7b 100644 --- a/.github/workflows/projectorion.yml +++ b/.github/workflows/projectorion.yml @@ -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 diff --git a/index.js b/index.js index 7852f447..dcff4a2f 100644 --- a/index.js +++ b/index.js @@ -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); } }