Mercurial > irccd
changeset 48:ce3e96deb9e4
Plugin roulette: document missing keywords and fix count, #392
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 29 Feb 2016 13:13:56 +0100 |
parents | 798093d4c176 |
children | b16a07cb5b41 |
files | plugins/roulette/roulette.js plugins/roulette/roulette.md |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/roulette/roulette.js Mon Feb 29 13:13:33 2016 +0100 +++ b/plugins/roulette/roulette.js Mon Feb 29 13:13:56 2016 +0100 @@ -121,7 +121,7 @@ command: server.info().commandChar + Plugin.info().name, nickname: Util.splituser(origin), origin: origin, - server: server, + server: server.toString(), plugin: Plugin.info().name }; @@ -134,7 +134,7 @@ server.kick(Util.splituser(origin), channel, Util.format(Gun.formats["shot"], kw)); Gun.remove(game); } else { - kw.count = game.index; + kw.count = (6 - game.index).toString(); server.message(channel, Util.format(Gun.formats["lucky"], kw)); } }
--- a/plugins/roulette/roulette.md Mon Feb 29 13:13:33 2016 +0100 +++ b/plugins/roulette/roulette.md Mon Feb 29 13:13:56 2016 +0100 @@ -42,10 +42,10 @@ The following keywords are supported: -| Format | Keywords | Notes | -|------------------|-----------------------------------|-----------------------------------| -| (any) | server, channel, nickname, origin | all formats | -| **format-lucky** | count | the number of cylinder count left | +| Format | Keywords | Notes | +|------------------|----------------------------------------------------|-----------------------------------| +| (any) | channel, command, nickname, origin, plugin, server | all formats | +| **format-lucky** | count | the number of cylinder count left | Example: