This makes a request to the Blockly Code API were it will give you some cool stats and puts them into an embed message for you!
// authenticates you with the API standard library
// type `await lib.` to display API autocomplete
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let info = await lib.magma69.blockly['@dev']['get-info']();
await lib.discord.channels['@0.3.0'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: '',
tts: false,
embeds: [
{
type: 'rich',
title: `Here is some information on Blockly Code!`,
description: `Link: ${info.link}\nVersion: ${info.version}\nGenerators: ${info.generators}\nLabs: ${info.labs}\nPeople: ${info.people}\nBlocks: ${info.blocks}`,
color: 0x00ffff,
},
],
});