la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
16 lines (10 loc) • 491 B
JavaScript
var lcn = require("../../../../../source/lcn.js");
module.exports = function (actionable, game, params) {
var player = game.getPlayerByIdentifier(actionable.from);
// Check if exists
var investigating = game.actions.exists(x => x.from === player.identifier && x.identifier === "cop/investigate");
var previously_roleblocked = player.getStatus("roleblocked");
if (investigating && !previously_roleblocked) {
game.addMessage(player, ":mag: You got __No Result__.");
};
};