Here's an command for bot to get random spoiler word.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const axios = require('axios')
const { data } = await axios("https://random-word-api.herokuapp.com/word?number=1&swear=0").catch(err => {}) //If ypu want more than 1 word just change number from 1-10 in the API-link
// To add more words for your command, simply add them to this list!
let messagePrompts = [
`${data}`
];
if (
context.params.event.content.split(' ')[0].toLowerCase() ===
`${process.env.PREFIX}word`
) {
let messageChoice = Math.floor(Math.random() * messagePrompts.length);
let message = messagePrompts[messageChoice];
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `<@!${context.params.event.author.id}> random word for u~ \n ||${message}||\n`
});
}
//------------------------------ShaunNoob-------------------------------------//