Get a completly random wallpaper, you can add more if you want. Also the embed has a random color
// authenticates you with the API standard library
// type `await lib.` to display API autocomplete
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let colorOptions = [
0xf13636, 0xdbee4b, 0x4b84ee, 0x644bee, 0xee4b84, 0x4b84ee, 0x4bee78,
0xee904b, 0x4b0290, 0x212760, 0x057a54, 0x85351a, 0x3ee767,
];
let selectedColor = Math.floor(Math.random() * colorOptions.length);
let color = colorOptions[selectedColor];
let wallpaperOptions = [
`https://cdn.discordapp.com/attachments/903898457511702548/908901276320931871/wp4198956-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901281790312518/wp4676622-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901285057675294/wp4676621-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901288849334272/wp4676620-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901294025085028/wp4676619-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901294025085028/wp4676619-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901305685278840/wp3163462-4k-pc-wallpapers.png`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901305723015228/wp4676613-4k-pc-wallpapers.png`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901310580011018/wp4676608-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901337465507850/wp4469633-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901342901334046/wp4676599-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901347825438720/wp4676598-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901352514658335/wp4676596-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901356650246196/wc1703725-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901367807090698/wp2560415-4k-pc-wallpapers.jpg`,
`https://cdn.discordapp.com/attachments/903898457511702548/908901374689939456/wp4676591-4k-pc-wallpapers.jpg`,
];
let selectedWallpaper = Math.floor(Math.random() * wallpaperOptions.length);
let deskWallpaper = wallpaperOptions[selectedWallpaper];
if (context.params.event.content.startsWith(`${process.env.bot_prefix}deskwallpaper`)) {
await lib.discord.channels[`@0.2.1`].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: ``,
tts: false,
embeds: [
{
type: `rich`,
title: `Random Desktop Wallpaper`,
description: ``,
color: color,
image: {
url: `${deskWallpaper}`,
height: 0,
width: 0,
},
},
],
});
}