text: var lcn = require("../../../../../source/lcn.js");
  
  var rs = lcn.rolesystem;
  
  module.exports = function (game, message, params) {
  
    var actions = game.actions;
    var config = game.config;
  
    // Run checks, etc
  
    var from = game.getPlayerById(message.author.id);
  
    if (params[0] === undefined) {
      message.channel.send(":x: Wrong syntax! Please use `" + config["command-prefix"] + "impart <alphabet/username/nobody>` instead!");
      return null;
    };
  
    var to = game.getPlayerMatch(params[0]);
  
    actions.delete(x => x.from === from.identifier && x.identifier === "emissary/impart");
  
    if (to.score < 0.7 || params[0].toLowerCase() === "nobody") {
      message.channel.send(":key: You have decided not to impart with anyone tonight.");
      return null;
    };
  
    to = to.player;
  
    if (!to.isAlive()) {
      message.channel.send(":x: You cannot impart with a dead player!" + rs.misc.sarcasm(true));
      return null;
    };
  
    if (to.id === message.author.id) {
  
      message.channel.send(":x: You cannot impart with yourself!" + rs.misc.sarcasm(true));
  
      return null;
  
    } else {
  
      game.addAction("emissary/impart", ["postcycle"], {
        name: "Emissary-impart",
        expiry: 1,
        from: message.author.id,
        to: to.id
      });
  
      var mention = to.getDisplayName();
  
    };
  
    message.channel.send(":key: You have decided to impart with **" + mention + "** tonight.");
  
  };
  
  module.exports.ALLOW_NONSPECIFIC = false;
  module.exports.PRIVATE_ONLY = true;
  module.exports.DEAD_CANNOT_USE = true;
  module.exports.ALIVE_CANNOT_USE = false;
  module.exports.DISALLOW_DAY = false;
  module.exports.DISALLOW_NIGHT = true;
  