Send random game suggestions in your server
// authenticates you with the API standard library
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
// Add more games for your command here -
let messagePrompts3 = [
'https://www.minecraft.net/',
'https://supercell.com/en/games/brawlstars/',
'https://www.roblox.com/',
'https://www.innersloth.com/games/among-us/',
'https://playvalorant.com/en-us/',
'https://genshin.mihoyo.com/',
'https://www.ea.com/games/apex-legends',
'https://terraria.org/',
'https://www.fortnite.com/',
'http://slither.io/',
];
if (context.params.event.content.trim() === `${process.env.PREFIX}game`) {
// You can change the command
let messageChoice = Math.floor(Math.random() * messagePrompts3.length);
let message = messagePrompts3[messageChoice];
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${message}`,
});
}