Send random books in your server
// authenticates you with the API standard library
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
// Add more books for your command here -
let messagePrompts1 = [
'https://en.wikipedia.org/wiki/The_Sun_Also_Rises',
'https://en.wikipedia.org/wiki/Fear_and_Loathing_in_Las_Vegas',
'https://en.wikipedia.org/wiki/Slaughterhouse-Five',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Philosopher%27s_Stone',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Chamber_of_Secrets',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Prisoner_of_Azkaban',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Goblet_of_Fire',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Order_of_the_Phoenix',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Half-Blood_Prince',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Deathly_Hallows',
'https://en.wikipedia.org/wiki/Harry_Potter_and_the_Cursed_Child',
'https://en.wikipedia.org/wiki/War_and_Peace',
];
if (context.params.event.content.trim() === `${process.env.PREFIX}book`) {
// You can change the command
let messageChoice = Math.floor(Math.random() * messagePrompts1.length);
let message = messagePrompts1[messageChoice];
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${message}`,
});
}