Generate a possum meme with a button (use with https://autocode.com/Fr0gtato/snippets/cachsnpt_xksSdAkRgCiJaFRJEMx3MhJo5bEWg8p7Ytcm)
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let possumMemes = [
`https://cdn.discordapp.com/attachments/997589076607770624/1019011721983184956/e53b3dc05b44073a30c0e3971793b1b8.jpg`,
`no possum for you :(`,
`https://cdn.discordapp.com/attachments/997589076607770624/1019011914984079390/OIP_1.jpg`,
`https://cdn.discordapp.com/attachments/997589076607770624/1019011915189604362/OIP.jpg`,
`https://cdn.discordapp.com/attachments/997589076607770624/1019011915437052005/download.jpg`,
`the possums ran away :(`,
`https://cdn.discordapp.com/attachments/997589076607770624/1004063999584895046/unknown.png`,
`oh no! all of the possums are stuck in a dumpster!`,
`https://cdn.discordapp.com/attachments/997589076607770624/1004064481036476488/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019014574055370792/unknown.png`,
`https://cdn.discordapp.com/attachments/997589076607770624/1019015099727495179/OIP_6.jpg`,
`aw man, you scared the possums away :(`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019399339677863996/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019398390196478022/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019398702504357918/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019399091588968578/unknown.png`,
`ERROR: Possums are currently eating :sparkles: t r a s h :sparkles:`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019399775407317113/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019400990396514355/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019399891702792222/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019400990702719037/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019400990962761818/unknown.png`,
`possum went byebye`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019401347948347462/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019401435483488256/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019401742498136074/unknown.png`,
`WHERE'D ALL THE POSSUMS GO!?`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019401947582824478/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019402324235517962/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019402541253017640/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019402663466651668/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019402807087997038/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019402909781340282/unknown.png`,
`https://cdn.discordapp.com/attachments/973341934716329998/1019403371775537202/unknown.png`,
];
let RandomPossumMeme = Math.floor(Math.random() * possumMemes.length);
let PossumMeme = possumMemes[RandomPossumMeme];
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${PossumMeme}`,
components: [
{
type: 1,
components: [
{
style: 1,
label: `generate possum meme`,
custom_id: `possumgen`,
disabled: false,
type: 2,
},
],
},
],
});