la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
24 lines (14 loc) • 797 B
JavaScript
// Routines
// Runs every cycle
// Function should be synchronous
var auxils = require("../../../systems/auxils.js");
module.exports = function (player) {
var config = player.game.config;
// Nighttime actions
var channel = player.getPrivateChannel();
var addendum = player.misc.oracle_last_target ? "Your latest chosen target is **" + player.game.getPlayerByIdentifier(player.misc.oracle_last_target).getDisplayName() + "**." : "You currently do not have a target.";
player.game.sendPeriodPin(channel, ":eye_in_speech_bubble: You may choose a player tonight.\n\nUse `" + config["command-prefix"] + "choose <alphabet/name/nobody>` to select your target.\n\n" + addendum);
};
module.exports.ALLOW_DEAD = false;
module.exports.ALLOW_NIGHT = true;
module.exports.ALLOW_DAY = false;