Drop Reply in most cases

This commit is contained in:
dragonfire535
2017-03-03 12:19:13 -05:00
parent d6ad30caf9
commit bb9a8b3e0d
42 changed files with 83 additions and 83 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class MagicBall extends commando.Command {
if(question === "") {
question = "Not Specified."
}
message.channel.sendMessage(username + " asked: " + question + "\n:8ball: " + coin + " :8ball:");
message.channel.sendMessage(username.username + " asked: " + question + "\n:8ball: " + coin + " :8ball:");
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ class RandomCat extends commando.Command {
}
console.log("[Command] " + message.content);
let cat = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.jpg", "9.jpg", "10.jpg", "11.jpeg", "12.jpg", "13.jpeg", "14.png", "15.jpg", "16.jpg", "17.jpg", "18.jpg", "19.jpg", "20.jpg"][Math.floor(Math.random() * 20)];
message.reply("Meow!");
message.channel.sendMessage("Meow!");
message.channel.sendFile("./images/Cat" + cat);
}
}
+2 -2
View File
@@ -21,9 +21,9 @@ class ChooseCommand extends commando.Command {
let choice2 = message.content.split("|").slice(1).join(" ");
let choice1 = " " + message.content.replace(choice2, "").split(" ").slice(1).join(" ");
let coin = [choice1, choice2][Math.floor(Math.random() * 2)];
message.reply("I choose" + coin.replace("|", ""));
message.channel.sendMessage("I choose" + coin.replace("|", ""));
} else {
message.reply(":x: Split your two choices with a ' | '!");
message.channel.sendMessage(":x: Split your two choices with a ' | '!");
}
}
}
+1 -1
View File
@@ -18,7 +18,7 @@ class CoinFlipCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let coin = ['Heads', 'Tails'][Math.floor(Math.random() * 2)];
message.reply("It landed on " + coin);
message.channel.sendMessage("It landed on " + coin);
}
}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -18,7 +18,7 @@ class FishyCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let coin = [':fish:', ':tropical_fish:', ':blowfish:'][Math.floor(Math.random() * 3)];
message.reply("You caught a: " + coin);
message.channel.sendMessage("You caught a: " + coin);
}
}
+3 -3
View File
@@ -22,11 +22,11 @@ class RandomNameGen extends commando.Command {
let randomlast = ["Walker", "Tworni", "Ross", "Smith", "Odendahl", "Deere", "Brown", "Williams", "Jones", "Miles", "Moss", "Roberto", "McFly", "McDonald", "Lewis", "Armstrong", "Stevenson", "Schwarzenegger", "Robinson", "Parker", "Piper", "Johnson", "Brantley", "Stewart", "Ree", "Talbot", "Seville", "Peace", "Spielberg", "Baggins", "Wilborn", "Vankirk", "Shireman", "Jimerson", "Masters", "Hack", "Satcher", "Younkin", "Aguila", "Duffey", "Burgin", "Highfall", "Wee", "Solari", "Tomaselli", "Basler", "Difranco", "Latch", "Rives", "Dolan", "Abraham", "Holter", "Portugal", "Lininger", "Holst", "Mccroy", "Follmer", "Hotchkiss", "Gassaway", "Wang", "Agron", "Raasch", "Gourd", "Czaja", "Marquart", "Papadopoulos", "Ringer", "Lax", "Sperling", "Galusha", "Alston"][Math.floor(Math.random() * 71)];
let randomfirstboth = [randomfirstmale, randomfirstfemale][Math.floor(Math.random() * 2)];
if(message.content.toLowerCase().split(" ").slice(1).includes("male")) {
message.reply(randomfirstmale + " " + randomlast);
message.channel.sendMessage(randomfirstmale + " " + randomlast);
} else if(message.content.toLowerCase().split(" ").slice(1).includes("female")) {
message.reply(randomfirstfemale + " " + randomlast);
message.channel.sendMessage(randomfirstfemale + " " + randomlast);
} else {
message.reply(randomfirstboth + " " + randomlast);
message.channel.sendMessage(randomfirstboth + " " + randomlast);
}
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ class PotatoCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let potato = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.gif", "6.png", "7.jpg", "8.jpg", "9.jpg"][Math.floor(Math.random() * 9)];
message.reply("Potatoes!");
message.channel.sendMessage("Potatoes!");
message.channel.sendFile("./images/Potato" + potato);
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ class RandomPun extends commando.Command {
console.log("[Command] " + message.content);
let pun = ["Pun1.jpg", "Pun2.jpg", "Pun3.jpg", "Pun4.jpg", "Pun5.jpg", "Pun6.jpg", "Pun7.jpg", "Pun8.png", "Pun9.jpg", "Pun10.jpg", "Pun11.jpg", "Pun12.jpg", "Pun13.jpg", "Pun14.jpg", "Pun15.jpg", "Pun16.jpg", "Pun17.jpg", "Pun18.jpg", "Pun19.jpg", "Pun20.jpg", "Pun21.jpg", "Pun22.jpg", "Pun23.jpg", "Pun24.jpg", "Pun25.jpg", "Pun26.jpg", "Pun27.jpg", "Pun28.jpg", "Pun29.jpg", "Pun30.jpeg", "Pun31.jpg", "Pun32.jpg", "Pun33.jpg", "Pun34.png", "Pun35.jpg", "Pun36.jpg", "Pun37.jpg", "Pun38.jpg", "Pun39.jpg", "Pun40.jpg", "Pun41.jpg", "Pun42.jpg", "Pun43.jpg", "Pun44.jpg", "Pun45.gif", "Pun46.jpg", "Pun47.jpg", "Pun48.jpg", "Pun49.jpg", "Pun50.jpg", "Pun51.jpg", "Pun52.jpg", "Pun53.jpg"][Math.floor(Math.random() * 53)];
let punresponse = ["These are just punderful.", "Have a pun day!", "Puns aren't that punny, okay?", "But it's not Punday!"][Math.floor(Math.random() * 4)];
message.reply(punresponse);
message.channel.sendMessage(punresponse);
message.channel.sendFile("./images/" + pun);
}
}
+1 -1
View File
@@ -18,7 +18,7 @@ class QuantumCoin extends commando.Command {
}
console.log("[Command] " + message.content);
let qcoin = ['on nothing', 'on NaN', 'on 0', 'in the air', 'on null'][Math.floor(Math.random() * 5)];
message.reply("It landed " + qcoin);
message.channel.sendMessage("It landed " + qcoin);
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ class RateWaifuCommand extends commando.Command {
console.log("[Command] " + message.content);
let username = message.content.split(" ").slice(1).join(" ");
let percentage = Math.floor(Math.random() * 10) + 1;
message.reply("I'd give " + username + " a " + percentage + "/10!");
message.channel.sendMessage("I'd give " + username + " a " + percentage + "/10!");
}
}
+11 -11
View File
@@ -20,39 +20,39 @@ class RockPaperScissors extends commando.Command {
let [rps] = message.content.toLowerCase().split(" ").slice(1);
let response = ['Paper', 'Rock', 'Scissors'][Math.floor(Math.random() * 3)];
if(rps === undefined) {
message.reply(":x: Error! Your message contains nothing!");
message.channel.sendMessage(":x: Error! Your message contains nothing!");
} else if(rps.includes("rock")) {
if(response === "Rock") {
message.reply("Rock! Aw, it's a tie!");
message.channel.sendMessage("Rock! Aw, it's a tie!");
}
if(response === "Paper") {
message.reply("Paper! Yes! I win!");
message.channel.sendMessage("Paper! Yes! I win!");
}
if(response === "Scissors") {
message.reply("Scissors! Aw... I lose...");
message.channel.sendMessage("Scissors! Aw... I lose...");
}
} else if(rps.includes("paper")) {
if(response === "Rock") {
message.reply("Rock! Aw... I lose...");
message.channel.sendMessage("Rock! Aw... I lose...");
}
if(response === "Paper") {
message.reply("Paper! Aw, it's a tie!");
message.channel.sendMessage("Paper! Aw, it's a tie!");
}
if(response === "Scissors") {
message.reply("Scissors! Yes! I win!");
message.channel.sendMessage("Scissors! Yes! I win!");
}
} else if(rps.includes("scissors")) {
if(response === "Rock") {
message.reply("Rock! Yes! I win!");
message.channel.sendMessage("Rock! Yes! I win!");
}
if(response === "Paper") {
message.reply("Paper! Aw... I lose...");
message.channel.sendMessage("Paper! Aw... I lose...");
}
if(response === "Scissors") {
message.reply("Scissors! Aw, it's a tie!");
message.channel.sendMessage("Scissors! Aw, it's a tie!");
}
} else {
message.reply(":x: Error! Your choice is not Rock, Paper, or Scissors!");
message.channel.sendMessage(":x: Error! Your choice is not Rock, Paper, or Scissors!");
}
}
}
+3 -3
View File
@@ -20,12 +20,12 @@ class RollChooseCommand extends commando.Command {
let [value] = message.content.split(" ").slice(1);
if(value === undefined) {
let roll = Math.floor(Math.random() * 6) + 1;
message.reply("You rolled a " + roll)
message.channel.sendMessage("You rolled a " + roll)
} else if(value.match("^[0-9]+$")) {
let roll = Math.floor(Math.random() * value) + 1;
message.reply("You rolled a " + roll);
message.channel.sendMessage("You rolled a " + roll);
} else {
message.reply(":x: Error! Your message either contains a number but the number is invalid, or the number is in the wrong place.\n:notepad_spiral: (Note: When using numbers such as 1,000, do not use a comma)");
message.channel.sendMessage(":x: Error! Your message either contains a number but the number is invalid, or the number is in the wrong place.\n:notepad_spiral: (Note: When using numbers such as 1,000, do not use a comma)");
}
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ class FishyCommand extends commando.Command {
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
message.reply("I choose " + message.guild.members.random() + "!");
message.channel.sendMessage("I choose " + message.guild.members.random() + "!");
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ class ShipCommand extends commando.Command {
console.log("[Command] " + message.content);
let ship = message.content.split(" ").slice(1).join(" ");
let percentage = Math.floor(Math.random() * 100) + 1;
message.reply("I'd give " + ship + " a " + percentage + "%!");
message.channel.sendMessage("I'd give " + ship + " a " + percentage + "%!");
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ class VocaloidSongRndm extends commando.Command {
console.log("[Command] " + message.content);
let coin = ["https://www.youtube.com/watch?v=ebAKoRcYFTA", "https://www.youtube.com/watch?v=Mqps4anhz0Q", "https://www.youtube.com/watch?v=AUEiHQOCQ2M", "https://www.youtube.com/watch?v=oyteTOBxRm8", "https://www.youtube.com/watch?v=uwwU55zBYlQ", "https://www.youtube.com/watch?v=sSYoz0JmnZo", "https://www.youtube.com/watch?v=NpU4dsXW6EI", "https://www.youtube.com/watch?v=MzyXD8bNbvk", "https://www.youtube.com/watch?v=hyV4qGAPKac", "https://www.youtube.com/watch?v=pywNi6gD1FA", "https://www.youtube.com/watch?v=17FEtaiWdVg", "https://www.youtube.com/watch?v=fmrA-gxJxgQ", "https://www.youtube.com/watch?v=yOBWgSPrYVA", "https://www.youtube.com/watch?v=nCaqf9WhqOY", "https://www.youtube.com/watch?v=cQKGUgOfD8U", "https://www.youtube.com/watch?v=sK92X82T3Sk", "https://www.youtube.com/watch?v=AH5_sKwDw1E", "https://www.youtube.com/watch?v=dw-KJNqcK-Q", "https://www.youtube.com/watch?v=X47JmmqbMvc", "https://www.youtube.com/watch?v=ojQPpYVQt7U", "https://www.amazon.com/Gogatsu-Yamai-feat-Kagamine-Len/dp/B00P1BG27S", "https://www.youtube.com/watch?v=N1-Z8uslIsI", "https://www.youtube.com/watch?v=EAgk-t2zzqw", "https://www.youtube.com/watch?v=uLBC2kWYFo8", "https://www.youtube.com/watch?v=OXHYIlkZLUU", "https://www.youtube.com/watch?v=ObIa9wXbyMQ", "https://www.youtube.com/watch?v=dGNoCICGmo0", "https://www.youtube.com/watch?v=LcoyEZkTKfY", "https://www.youtube.com/watch?v=mKHaW0qd5Mw", "https://www.youtube.com/watch?v=GG627DYk_E4", "https://www.youtube.com/watch?v=jTm6Q5Pj_Jo", "https://www.youtube.com/watch?v=TVeIDmk3rBo", "https://www.youtube.com/watch?v=1K3in6w9tt4", "https://www.youtube.com/watch?v=07r67gGbtLQ", "https://www.youtube.com/watch?v=243vPl8HdVk", "https://www.youtube.com/watch?v=zweVJrnE1uY", "https://www.youtube.com/watch?v=RKtoreimcQ8", "https://www.youtube.com/watch?v=Je6dCVfHvkU", "https://www.youtube.com/watch?v=UxFv12y_evM", "https://www.youtube.com/watch?v=2HegQtmJeto", "https://www.youtube.com/watch?v=8-Epnpruww0"
][Math.floor(Math.random() * 42)];
message.reply(coin);
message.channel.sendMessage(coin);
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ class RandomXiaoPai extends commando.Command {
}
console.log("[Command] " + message.content);
let XiaoPai = ["1.png", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.png", "9.png", "10.png", "11.png", "12.png", "13.jpg", "14.jpg", "15.png", "16.jpg", "17.png", "18.gif", "19.png", "20.jpg", "21.jpg"][Math.floor(Math.random() * 21)];
message.reply("It's me, yes?");
message.channel.sendMessage("It's me, yes?");
message.channel.sendFile("./images/Xiao" + XiaoPai);
}
}