Send random place suggestions in your server
// authenticates you with the API standard library
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
// Add more places for your command here -
let messagePrompts5 = [
'https://unsplash.com/s/photos/newzealand',
'https://unsplash.com/images/travel/paris',
'https://unsplash.com/s/photos/maui',
'https://unsplash.com/s/photos/london',
'https://unsplash.com/s/photos/rome',
'https://unsplash.com/s/photos/phuket%2C-thailand',
'https://unsplash.com/s/photos/tokyo-city',
'https://unsplash.com/s/photos/barcelona',
'https://unsplash.com/s/photos/maldives',
'https://unsplash.com/s/photos/banff',
'https://unsplash.com/images/travel/grand-canyon',
'https://unsplash.com/s/photos/sydney',
'https://unsplash.com/s/photos/machu-picchu',
'https://unsplash.com/s/photos/dubai',
'https://unsplash.com/s/photos/yosemite',
'https://unsplash.com/s/photos/yellowstone-national-park',
];
if (context.params.event.content.trim() === `${process.env.PREFIX}place`) {
// You can change the command
let messageChoice = Math.floor(Math.random() * messagePrompts5.length);
let message = messagePrompts5[messageChoice];
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${message}`,
});
}