SHARE
TWEET

Untitled

a guest Jan 20th, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require("discord.js")
  2.  
  3. module.exports.command = {
  4.   name: "mafia",
  5.   aliases: [""],
  6. }
  7.  
  8. exports.run = async (client, message, args, options) => {
  9.  
  10.   let gameRunning = "false";
  11.  
  12.     if(args[0] == "info") {
  13.      
  14.       await message.author.send("```-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nRoles-\nMafia - Every night time mafia has the ability to kill one person and aims to have the same amount of villagers as mafia alive in order to win the game. \nMedic - During night time has the ability to save someone from death , they can save themselves but they cannot save the same person 2 nights in a row including themselves.\nDetective- Investigates people in order to find out who the mafia is\nVillager- Normal person trying to find out who the mafia is and vote to kill them.\n\nCycles\nDay time:Everyone talks and discusses who they think is the mafia. You can accuse someone of being the mafia and if someone seconds you then the person gets 60 seconds to defend themselves. Everyone then votes on whether or not they want to kill the person if the vote is a majority kill the person dies if not they survive. \n\nNight time: Everyone must be silent and the Mafia kill someone. The medic saves someone and the Detective investigates someone. Once night ends if someone dies they are muted. The game ends when either all mafia are dead or the same number of mafia as villagers are left in the game.\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-```");
  15.      
  16.       message.channel.send(message.author + ", I've send you all the info!");
  17.  
  18.     } else if(args[0] == "start") {
  19.  
  20.       if (gameRunning == "false") {
  21.         gameRunning = "true";
  22.         message.channel.send("I've started the game.");
  23.         console.log(gameRunning);
  24.       } else {
  25.         message.channel.send("There's already a game going on!");
  26.         return;
  27.       }
  28.  
  29.     } else if(args[0] == "test") {
  30.       message.channel.send(gameRunning);
  31.     }
  32.  
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top