la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
21 lines (15 loc) • 559 B
JavaScript
module.exports = async function (message, params, config) {
if (!process.timer || !["pre-game", "playing"].includes(process.timer.game.state)) {
await message.channel.send(":x: No game going on.");
return null;
};
var game = process.timer.game;
var config = game.config;
if (!game.isDay()) {
await message.channel.send(":x: You may only reload the trial vote message during the day.");
return null;
};
game.__reloadTrialVoteMessage();
await message.channel.send(":ok: Reloaded the trial vote message.");
return null;
};