Prefix command that responds with the current time when you type "!time". Uses Discord's built-in message timestamp format so that the message will show in local time for everyone in your server.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content === `${process.env.PREFIX}time`) {
await lib.discord.channels['@0.2.0'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `The current time is: `,
});
}