In this snippet you will learn how to rename console.log!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let customConsoleLog = console.log; // * You Can Change The Custom Console Log Name * /
if (context.params.event.content.startsWith('!custom-console-log')) { // * You Can Change The Command Name * /
await lib.discord.channels['@0.2.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `Your custom console.log is done check the logs now!`, // * You can Change The Message That The Bot Will Send * /
});
customConsoleLog(content); // * You Can Log Anything You Want To Log * /
}