Send random movie suggestions in your server
// authenticates you with the API standard library
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
// Add more movies for your command here -
let messagePrompts4 = [
'https://www.imdb.com/title/tt5433138/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt6264654/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt9376612/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt7097896/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt6334354/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt10155932/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt3228774/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt3480822/?ref_=adv_li_tt',
'https://www.imdb.com/title/tt10872600/?ref_=adv_li_tt',
];
if (context.params.event.content.trim() === `${process.env.PREFIX}movie`) {
// You can change the command
let messageChoice = Math.floor(Math.random() * messagePrompts4.length);
let message = messagePrompts4[messageChoice];
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${message}`,
});
}