UNPKG

la-cosa-nostra

Version:

A Mafia bot designed to run in Discord - beware the traitors and the lies!

38 lines (26 loc) 1.03 kB
var lcn = require("../../../../../source/lcn.js"); // Register heal var rs = lcn.rolesystem; module.exports = function (game, message, params) { var actions = game.actions; var config = game.config; var from = game.getPlayerById(message.author.id); actions.delete(x => x.from === from.identifier && (x.identifier === "pyrofather/douse_vote" || x.identifier === "pyrofather/ignite_vote")); message.channel.send(":fire: You have decided to vote to ignite tonight."); /*Ignition runs at a much higher priority - this is to allow Firefighter to possibly extinguish target first */ game.addAction("pyrofather/ignite_vote", ["cycle"], { name: "Pyrofather-ignition-vote", expiry: 1, from: message.author.id, to: message.author.id, priority: 6 }); }; 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 = true; module.exports.DISALLOW_NIGHT = false;