Changed some requires

This commit is contained in:
TheEssem 2020-02-19 16:46:50 -06:00
parent dd699b459e
commit a7746cc865
5 changed files with 13 additions and 9 deletions

View file

@ -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";

View file

@ -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 = "✊";