This snippet allows the bot to send a random anime quotes.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const aniquote = require('aniquotes-npm');
const { channel_id } = context.params.event;
const { quote, anime, name } = aniquote.randomQuote();
return lib.discord.channels['@release'].messages.create({
channel_id,
content: '',
tts: false,
embeds: [{
type: 'rich',
title: '',
description: [
`Quote: \`${quote}\``,
``,
`By: \`${name}\``,
`From: \`${anime}\``,
].join('\n'),
color: 0x000000,
},
],
});