UNPKG

cosa-nostra-backstabbers

Version:
29 lines (17 loc) 542 B
var auxils = require("../auxils.js"); module.exports = async function (message, params, config) { if (!process.game || !["playing"].includes(process.game.state)) { await message.channel.send(":x: No game in progress."); return null; }; var game = process.game; for (var i = 0; i < game.players.length; i++) { game.players[i].clearVotes(); }; game.clearNoLynchVotes(); if (game.isDay()) { game.__reloadTrialVoteMessage(); }; game.save(); await message.channel.send(":ok: All votes cleared."); };