|
| 1 | +const minecraftCommand = require("../../contracts/minecraftCommand.js"); |
| 2 | + |
| 3 | +class JokeCommand extends minecraftCommand { |
| 4 | + constructor(minecraft) { |
| 5 | + super(minecraft); |
| 6 | + |
| 7 | + this.name = "joke"; |
| 8 | + this.aliases = []; |
| 9 | + this.description = "Tells a Minecraft joke."; |
| 10 | + this.options = []; |
| 11 | + } |
| 12 | + |
| 13 | + async onCommand(username, message) { |
| 14 | + try { |
| 15 | + const minecraftJokes = [ |
| 16 | + "Why did the Creeper break up with the Ghast? Because it found someone a little more explosive!", |
| 17 | + "What do you call a sheep who can play guitar? A baa-and!", |
| 18 | + "Why don\'t skeletons fight each other? They don\'t have the guts!", |
| 19 | + "What\'s a Minecraft player\'s favorite type of music? Block and roll!", |
| 20 | + "Why did the Enderman bring a ladder? To reach new heights!", |
| 21 | + "Why did Steve go to therapy? He had too many issues with his blocks!", |
| 22 | + "What did the zombie say to the player? \'You\'re a real blockhead!\'", |
| 23 | + "Why do pigs make terrible comedians? Their jokes are always a bit boar-ing!", |
| 24 | + "What did one redstone torch say to the other? \'I\'m feeling a little off!\'", |
| 25 | + "How do you make a tissue dance? You put a little boogie in it... just like a Minecraft spider!", |
| 26 | + "What do you call a Minecraft wizard who\'s always making bad decisions? A noob-ender!", |
| 27 | + "Why was the skeleton so calm? Because nothing gets under its skin!", |
| 28 | + "What do you call a snowman with a six-pack? An abdominal snowman!", |
| 29 | + "How do you organize a Minecraft party? You block it out!", |
| 30 | + "What\'s the hardest part about crafting a Minecraft joke? Making it *block*buster material!", |
| 31 | + "Why did the Minecraft chicken cross the road? To get to the other biome!", |
| 32 | + "What did the Minecraft player say to their friend at the crafting table? \'I\'m feeling a little *pick*-y today!\'", |
| 33 | + "Why don\'t Endermen ever tell jokes? Because they don\'t like to *look* silly!", |
| 34 | + "Why was the Minecraft tree so good at playing soccer? Because it had a lot of *roots* in the game!", |
| 35 | + "What\'s a Creeper\'s favorite type of music? Anything with a good *blast* beat!", |
| 36 | + "Why don\'t players ever tell secrets in Minecraft? Because the blocks are always *listening*!", |
| 37 | + "What\'s a Minecraft player\'s favorite type of bread? *Loaf*-ers!", |
| 38 | + "What do you call a cat that\'s always lazy in Minecraft? A *meow*-l! (pronounced like \'mail\')", |
| 39 | + "Why do Minecraft players make terrible bakers? Because they can\'t *knead* dough!", |
| 40 | + "Why did the pig bring a suitcase to the game? It was ready to go on a *boar*-ing adventure!", |
| 41 | + "How do you know if a zombie is a good musician? It can *rock* the night away!", |
| 42 | + "What do you get when you cross a Creeper and a snowman? Frostbite!", |
| 43 | + "Why did the Minecraft chicken start a band? Because it was great at *egg*stra special performances!", |
| 44 | + "What did one player say to the other in Minecraft when they found diamonds? \'This is *mint*!\'", |
| 45 | + "How do you build a house in Minecraft? With lots of *block*-ed-in ideas!", |
| 46 | + "Why did the Minecraft player go to the nether? To *nether* the less, they needed more resources!", |
| 47 | + "What\'s a zombie\'s favorite game? *Minecraft*, of course, because it\'s full of brains!", |
| 48 | + "What\'s Steve\'s favorite cereal? *Block* flakes!", |
| 49 | + "Why are Minecraft players always so good at math? Because they know how to *cube* things!", |
| 50 | + "Why did the Minecraft player break up with their sword? Because it was too *sharp* for comfort!", |
| 51 | + "Why did the skeleton go to the party alone? Because he had no *body* to go with!", |
| 52 | + "Why don\'t Minecraft players ever get lost? Because they always follow the *blocks* in the road!", |
| 53 | + "How does a Minecraft player make a decision? They *block* out all the options!", |
| 54 | + "What did the Creeper say when it was feeling down? \'I need some *space* to explode!\'", |
| 55 | + "How do you cheer up a Minecraft player? Just give them a *diamond*—they\'ll be happy for *life*!", |
| 56 | + "What do you get when you combine an Enderman with a Creeper? A *teleporting explosion*!", |
| 57 | + "Why don\'t Minecraft players ever go to the beach? Because the sand always gives them *block*ed sinuses!" |
| 58 | + ]; |
| 59 | + |
| 60 | + |
| 61 | + const randomJoke = minecraftJokes[Math.floor(Math.random() * minecraftJokes.length)]; |
| 62 | + |
| 63 | + this.send(`/gc ${randomJoke}`); |
| 64 | + |
| 65 | + } catch (error) { |
| 66 | + this.send(`/gc [ERROR] ${error ?? "Something went wrong.."}`); |
| 67 | + } |
| 68 | + } |
| 69 | +} |
| 70 | + |
| 71 | +module.exports = JokeCommand; |
0 commit comments