mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 23:05:04 +02:00
Attempt to Add Logger Functionality
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user