Browse Source

added updated the function documentation for some commands

master
jcao219 13 years ago
parent
commit
3390e40a40
  1. 4
      wolfgame.py

4
wolfgame.py

@ -269,6 +269,7 @@ def fpinger(cli, nick, chan, rest): @@ -269,6 +269,7 @@ def fpinger(cli, nick, chan, rest):
@cmd("join")
def join(cli, nick, chan, rest):
"""Either starts a new game of Werewolf or joins an existing game that has not started yet."""
pl = var.list_players()
if var.PHASE == "none":
cli.mode(chan, "+v", nick, nick+"!*@*")
@ -355,6 +356,7 @@ def on_kicked(cli, nick, chan, victim, reason): @@ -355,6 +356,7 @@ def on_kicked(cli, nick, chan, victim, reason):
@cmd("stats")
def stats(cli, nick, chan, rest):
"""Display the player statistics"""
if var.PHASE == "none":
cli.notice(nick, "No game is currently running.")
return
@ -459,6 +461,7 @@ def chk_decision(cli): @@ -459,6 +461,7 @@ def chk_decision(cli):
@cmd("votes")
def show_votes(cli, nick, chan, rest):
"""Displays the voting statistics."""
if var.PHASE in ("none", "join"):
cli.notice(nick, "No game is currently running.")
return
@ -697,6 +700,7 @@ def on_join(cli, raw_nick, chan): @@ -697,6 +700,7 @@ def on_join(cli, raw_nick, chan):
@cmd("goat")
def goat(cli, nick, chan, rest):
"""Use a goat to interact with anyone in the channel during the day"""
if var.PHASE in ("none", "join"):
cli.notice(nick, "No game is currently running.")
return

Loading…
Cancel
Save