Attempt to Add Logger Functionality

This commit is contained in:
Daniel Odendahl Jr
2017-04-24 01:54:06 +00:00
parent 11a610ab5e
commit b04e200c6d
2 changed files with 21 additions and 2 deletions
+16
View File
@@ -21,3 +21,19 @@ module.exports.carbon = async(count) => {
});
return text;
};
module.exports.webhook = async(description, author, color) => {
const embed = {
description: description,
author: {
name: author
},
color: color
};
await request
.post(process.env.LOGGER_URL)
.send({
embeds: [embed]
});
return null;
};