now fstart doesn't require the admin to actually be in the game.
This commit is contained in:
parent
91e656847e
commit
875466e5d8
@ -360,7 +360,7 @@ def fleave(cli, nick, chan, rest):
|
|||||||
def fstart(cli, nick, chan, rest):
|
def fstart(cli, nick, chan, rest):
|
||||||
var.CAN_START_TIME = datetime.now()
|
var.CAN_START_TIME = datetime.now()
|
||||||
cli.msg(chan, "\u0002{0}\u0002 has forced the game to start.".format(nick))
|
cli.msg(chan, "\u0002{0}\u0002 has forced the game to start.".format(nick))
|
||||||
start(cli, nick, chan, rest)
|
start(cli, chan, chan, rest)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1597,9 +1597,12 @@ def start(cli, nick, chan, rest):
|
|||||||
if var.PHASE != "join":
|
if var.PHASE != "join":
|
||||||
cli.notice(nick, "Werewolf is already in play.")
|
cli.notice(nick, "Werewolf is already in play.")
|
||||||
return
|
return
|
||||||
if nick not in villagers:
|
if nick not in villagers and nick != chan:
|
||||||
cli.notice(nick, "You're currently not playing.")
|
cli.notice(nick, "You're currently not playing.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if nick == chan:
|
||||||
|
chan = botconfig.CHANNEL
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
var.GAME_START_TIME = now # Only used for the idler checker
|
var.GAME_START_TIME = now # Only used for the idler checker
|
||||||
dur = int((var.CAN_START_TIME - now).total_seconds())
|
dur = int((var.CAN_START_TIME - now).total_seconds())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user