|
|
@ -658,6 +658,7 @@ def del_player(cli, nick, forced_death = False): |
|
|
|
if not is_fake_nick(nick): |
|
|
|
if not is_fake_nick(nick): |
|
|
|
cmode.append(("+q", nick)) |
|
|
|
cmode.append(("+q", nick)) |
|
|
|
mass_mode(cli, cmode) |
|
|
|
mass_mode(cli, cmode) |
|
|
|
|
|
|
|
if nick not in var.DEAD: |
|
|
|
var.DEAD.append(nick) |
|
|
|
var.DEAD.append(nick) |
|
|
|
ret = not chk_win(cli) |
|
|
|
ret = not chk_win(cli) |
|
|
|
if var.PHASE in ("night", "day") and ret: |
|
|
|
if var.PHASE in ("night", "day") and ret: |
|
|
@ -772,6 +773,7 @@ def goat(cli, nick, chan, rest): |
|
|
|
cli.msg(chan, ("\u0002{0}\u0002's goat walks by "+ |
|
|
|
cli.msg(chan, ("\u0002{0}\u0002's goat walks by "+ |
|
|
|
"and kicks \u0002{1}\u0002.").format(nick, |
|
|
|
"and kicks \u0002{1}\u0002.").format(nick, |
|
|
|
rest.strip())) |
|
|
|
rest.strip())) |
|
|
|
|
|
|
|
var.GOATED = True |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1875,7 +1877,7 @@ def show_rules(cli, nick, chan, rest): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pmcmd("help", raw_nick = True) |
|
|
|
@pmcmd("help", raw_nick = True) |
|
|
|
def help(cli, rnick, rest): |
|
|
|
def get_help(cli, rnick, rest): |
|
|
|
"""Gets help.""" |
|
|
|
"""Gets help.""" |
|
|
|
nick, mode, user, cloak = parse_nick(rnick) |
|
|
|
nick, mode, user, cloak = parse_nick(rnick) |
|
|
|
fns = [] |
|
|
|
fns = [] |
|
|
@ -1919,9 +1921,9 @@ def help(cli, rnick, rest): |
|
|
|
def help2(cli, nick, chan, rest): |
|
|
|
def help2(cli, nick, chan, rest): |
|
|
|
"""Gets help""" |
|
|
|
"""Gets help""" |
|
|
|
if rest.strip(): # command was given |
|
|
|
if rest.strip(): # command was given |
|
|
|
help(cli, chan, rest) |
|
|
|
get_help(cli, chan, rest) |
|
|
|
else: |
|
|
|
else: |
|
|
|
help(cli, nick, rest) |
|
|
|
get_help(cli, nick, rest) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@hook("invite", raw_nick = False, admin_only = True) |
|
|
|
@hook("invite", raw_nick = False, admin_only = True) |
|
|
@ -1964,6 +1966,16 @@ def coin(cli, nick, chan, rest): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if botconfig.DEBUG_MODE: |
|
|
|
if botconfig.DEBUG_MODE: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@cmd("set", admin_only=True) |
|
|
|
|
|
|
|
def set(cli, nick, chan, rest): |
|
|
|
|
|
|
|
rest = re(" +",rest, 1) |
|
|
|
|
|
|
|
if len(rest) != 2 or not rest[0] or not rest[1]: |
|
|
|
|
|
|
|
cli.msg(chan, "Invalid syntax.") |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
cli.msg(chan, "Not implemented yet.") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@cmd("revealroles", admin_only=True) |
|
|
|
@cmd("revealroles", admin_only=True) |
|
|
|
def revroles(cli, nick, chan, rest): |
|
|
|
def revroles(cli, nick, chan, rest): |
|
|
|
cli.msg(chan, str(var.ROLES)) |
|
|
|
cli.msg(chan, str(var.ROLES)) |
|
|
|