Skip to content

Commit

Permalink
Update panagrams.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan0132 authored Oct 28, 2018
1 parent 21fe764 commit 0844c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom-plugins/panagrams.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Panagram {
} while (this.mixed === toId(this.answer.species));

this.room.add(
`|html|<div class = "broadcast-purple"><center>A game of Panagram was started! Scrambled Pokemon: <strong>${this.mixed}</strong><br /> (Remaining Sessions: ${this.sessions})<br />` +
`|html|<div class = "broadcast-green"><center>A game of Panagram was started! Scrambled Pokemon: <strong>${this.mixed}</strong><br /> (Remaining Sessions: ${this.sessions})<br />` +
`<small>Use /gp [pokemon] to guess!</small></center>`
);
this.guessed = {};
Expand Down Expand Up @@ -103,7 +103,7 @@ exports.commands = {
panagram: function (target, room, user, connection, cmd) {
if (pGames[room.id]) return this.errorReply("There is currently a game of panagram going on in this room.");
if (!this.can('declare', null, room)) return this.errorReply("You must be ranked # or higher to start a game of panagram in this room.");
if (room.id !== 'gamingclub') return this.sendReply('|html|You can only start a game of Panagram in the <button name = "send" value = "/join casino">Casino</button>');
if (room.id !== 'gamingclub') return this.sendReply('|html|You can only start a game of Panagram in the <button name = "send" value = "/join gamingclub">Gaming Club</button>');
if (!target || isNaN(target)) return this.errorReply("Usage: /panagram [number of sessions]");
if (target < 20) return this.errorReply("The minimum number of sessions you can have at a time is 20.");
if (~target.indexOf('.')) return this.errorReply("The number of sessions cannot be a decimal value.");
Expand Down

0 comments on commit 0844c5f

Please sign in to comment.