la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
17 lines (10 loc) • 511 B
JavaScript
var rs = require("../../../rolesystem/rolesystem.js");
module.exports = function (actionable, game, params) {
game.execute("visit", {visitor: actionable.from,
target: actionable.to,
priority: actionable.priority,
reason: "Mailman-send"});
var target = game.getPlayerByIdentifier(actionable.to);
game.addMessage(target, ":exclamation: You received an anonymous message last night:\n```fix\n" + actionable.message + "```");
};
module.exports.TAGS = ["drivable", "roleblockable", "visit"];