When You Type wf ping the bot will respond with "@user pong" and latency (thanks to Raxlitude for helping me make this)
// authenticates you with the API standard library
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content.startsWith('wf ping')) {
let latency = new Date() - new Date(context.params.event.timestamp);
await lib.discord.channels['@0.1.1'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `<@${context.params.event.author.id}> Pong! (Time Taken: 0.${latency}s)`,
});
}