Skip to content

Commit cfc51dc

Browse files
committed
Added Joke and Quote Command
1 parent e56cfcb commit cfc51dc

File tree

2 files changed

+125
-0
lines changed

2 files changed

+125
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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;
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
const minecraftCommand = require("../../contracts/minecraftCommand.js");
2+
3+
class QuotesCommand extends minecraftCommand {
4+
constructor(minecraft) {
5+
super(minecraft);
6+
7+
this.name = "quote";
8+
this.aliases = [];
9+
this.description = "Sends an inspirational quote.";
10+
this.options = [];
11+
}
12+
13+
async onCommand(username, message) {
14+
try {
15+
const inspirationalQuotes = [
16+
"The only way to do great work is to love what you do. – Steve Jobs",
17+
"Success is not final, failure is not fatal: It is the courage to continue that counts. – Winston Churchill",
18+
"Don\’t watch the clock; do what it does. Keep going. – Sam Levenson",
19+
"The future belongs to those who believe in the beauty of their dreams. – Eleanor Roosevelt",
20+
"It does not matter how slowly you go as long as you do not stop. – Confucius",
21+
"You miss 100% of the shots you don\’t take. – Wayne Gretzky",
22+
"Believe you can and you\’re halfway there. – Theodore Roosevelt",
23+
"Act as if what you do makes a difference. It does. – William James",
24+
"The best time to plant a tree was 20 years ago. The second best time is now. – Chinese Proverb",
25+
"Success usually comes to those who are too busy to be looking for it. – Henry David Thoreau",
26+
"Hardships often prepare ordinary people for an extraordinary destiny. – C.S. Lewis",
27+
"Opportunities don\’t happen, you create them. – Chris Grosser",
28+
"What you get by achieving your goals is not as important as what you become by achieving your goals. – Zig Ziglar",
29+
"Don\’t be afraid to give up the good to go for the great. – John D. Rockefeller",
30+
"I find that the harder I work, the more luck I seem to have. – Thomas Jefferson",
31+
"The only limit to our realization of tomorrow is our doubts of today. – Franklin D. Roosevelt",
32+
"It always seems impossible until it\’s done. – Nelson Mandela",
33+
"Do what you can, with what you have, where you are. – Theodore Roosevelt",
34+
"Everything you\’ve ever wanted is on the other side of fear. – George Addair",
35+
"We may encounter many defeats, but we must not be defeated. – Maya Angelou",
36+
"Success is not how high you have climbed, but how you make a positive difference to the world. – Roy T. Bennett",
37+
"Your limitation—it\’s only your imagination.",
38+
"Push yourself, because no one else is going to do it for you.",
39+
"Great things never come from comfort zones.",
40+
"Dream it. Wish it. Do it.",
41+
"Success doesn\’t just find you. You have to go out and get it."
42+
];
43+
44+
const randomQuote = inspirationalQuotes[Math.floor(Math.random() * inspirationalQuotes.length)];
45+
46+
this.send(`/gc ${randomQuote}`);
47+
48+
} catch (error) {
49+
this.send(`/gc [ERROR] ${error ?? "Something went wrong.."}`);
50+
}
51+
}
52+
}
53+
54+
module.exports = QuotesCommand;

0 commit comments

Comments
 (0)