Sometimes you get bored while playing on discord. Say "Tell me a joke", and you will be cheered up!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `Here's a joke! `,
});
messages = [
'Why did two 4s skip dinner?\nBecause they already 8!',
'What do you call an elephant that doesn’t matter?\nAn irrelephant!',
'What kind of tree can fit in one hand?\nA palm tree!',
'What do you call a line of rabbits jumping backwards?\nA receding hare-line!',
"What did the triangle feel sorry for the circle?\nBecause it's pointless",
'What do you call a sad strawberry?\nA blueberry!',
'What do you call a huge pile of cats?\nA meow-ntain!',
'Why did a scarecrow win a Nobel prize?\nHe was outstanding in his field!',
'A creeper walks into a bar... everyone dies.',
'Why are zombies good at Minecraft?\n They have dead-ication!',
"What music do Minecraft players listen to?\nBedrock 'n' roll!",
'What time is it when ten ocelots chase a creeper?\nTen after one.',
"What is a ghast's favourite country?\nThe Nether-lands",
"Why didn't the enderman cross the road?\nBecause he teleported instead.",
'Why did the creeper cross the road?\nTo get to the other sssssssssssssssssssssssssid... or maybe get hit by a car.',
'How does Steve manage to chop trees down with his bare fists?\nWell, how wood I know?',
];
random = Math.floor(Math.random() * messages.length);
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: messages[random],
});