Changed some requires
This commit is contained in:
parent
dd699b459e
commit
a7746cc865
5 changed files with 13 additions and 9 deletions
|
@ -10,6 +10,6 @@ exports.run = async (message) => {
|
|||
process.exit(1);
|
||||
};
|
||||
|
||||
exports.aliases = ["reboot"];
|
||||
exports.aliases = ["reboot", "stop"];
|
||||
exports.category = 7;
|
||||
exports.help = "Restarts me";
|
|
@ -1,8 +1,10 @@
|
|||
const misc = require("../utils/misc.js");
|
||||
|
||||
exports.run = async (message, args) => {
|
||||
if (args.length === 0 || (args[0] !== "rock" && args[0] !== "paper" && args[0] !== "scissors")) return `${message.author.mention}, you need to choose whether you want to be rock, paper, or scissors!`;
|
||||
let emoji;
|
||||
let winOrLose;
|
||||
const result = require("../utils/misc.js").random(["rock", "paper", "scissors"]);
|
||||
const result = misc.random(["rock", "paper", "scissors"]);
|
||||
switch (result) {
|
||||
case "rock":
|
||||
emoji = "✊";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue