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

Commit

Permalink
Merge pull request #11 from mrepol742/master
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
mrepol742 authored Jan 5, 2024
2 parents 411233a + 4ebfb69 commit 87272f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4531,16 +4531,16 @@ async function ai(api, event) {
return;
}
const login = api.getCurrentUserID();
if (settings[login].owner) {
let uid = settings[login].owner;
if (settings[login].owner && settings[login].owner != "") {
const uid = settings[login].owner;

api.getUserInfo(uid, (err, info) => {
if (err) return utils.logged(err);
let dirp = __dirname + "/cache/owner_" + utils.getTimestamp() + ".jpg";
downloadFile(getProfilePic(uid), dirp).then(async (response) => {

const fname = info[uid]["firstName"];
let message = {
body: utils.formatOutput("Account Owner", [info[uid]["firstName"], uid], "github.com/prj-orion"),
body: utils.formatOutput("Account Owner", [fname, uid], "github.com/prj-orion"),
attachment: fs.createReadStream(dirp),
};
sendMessage(api, event, message);
Expand Down

0 comments on commit 87272f9

Please sign in to comment.