cli.notice(nick,"You now receive simple role instructions.")
ifnotvar.OPT_IN_PING:
@cmd("away",raw_nick=True)
@pmcmd("away",raw_nick=True)
defaway(cli,nick,*rest):
"""Use this to activate your away status (so you aren't pinged)."""
cloak=parse_nick(nick)[3]
nick=parse_nick(nick)[0]
ifcloakinvar.AWAY:
var.AWAY.remove(cloak)
var.remove_away(cloak)
cli.notice(nick,"You are no longer marked as away.")
return
var.AWAY.append(cloak)
var.add_away(cloak)
cli.notice(nick,"You are now marked as away.")
@cmd("back",raw_nick=True)
@pmcmd("back",raw_nick=True)
defback_from_away(cli,nick,*rest):
"""Unmarks away status"""
cloak=parse_nick(nick)[3]
nick=parse_nick(nick)[0]
ifcloaknotinvar.AWAY:
cli.notice(nick,"You are not marked as away.")
return
var.AWAY.remove(cloak)
var.remove_away(cloak)
cli.notice(nick,"You are no longer marked as away.")
else:# if OPT_IN_PING setting is on
@cmd("in",raw_nick=True)
@pmcmd("in",raw_nick=True)
defget_in(cli,nick,*rest):
"""Get yourself in the ping list"""
nick,_,_,cloak=parse_nick(nick)
ifcloakinvar.PING_IN:
cli.notice(nick,"You are already on the list")
return
var.PING_IN.append(cloak)
var.add_ping(cloak)
cli.notice(nick,"You are now on the list.")
@cmd("out",raw_nick=True)
@pmcmd("out",raw_nick=True)
defget_out(cli,nick,*rest):
"""Removes yourself from the ping list"""
nick,_,_,cloak=parse_nick(nick)
ifcloakinvar.PING_IN:
var.PING_IN.remove(cloak)
var.remove_ping(cloak)
cli.notice(nick,"You are no longer in the list.")
return
cli.notice(nick,"You are not in the list.")
@cmd("fping",admin_only=True)
deffpinger(cli,nick,chan,rest):
var.LAST_PING=None
@ -2903,4 +2940,4 @@ if botconfig.ALLOWED_NORMAL_MODE_COMMANDS and not botconfig.DEBUG_MODE:
@@ -2903,4 +2940,4 @@ if botconfig.ALLOWED_NORMAL_MODE_COMMANDS and not botconfig.DEBUG_MODE:
NIGHT_TIME_WARN=0# should be less than NIGHT_TIME_LIMIT
DAY_TIME_LIMIT_WARN=780
DAY_TIME_LIMIT_CHANGE=120# seconds after DAY_TIME_LIMIT_WARN has passed
START_WITH_DAY=False
WOLF_STEALS_GUN=False
KILL_IDLE_TIME=300
WARN_IDLE_TIME=180
PART_GRACE_TIME=7
@ -80,6 +78,13 @@ RULES = ("#wolfgame channel rules: 1) Be nice to others. 2) Do not share informa
@@ -80,6 +78,13 @@ RULES = ("#wolfgame channel rules: 1) Be nice to others. 2) Do not share informa
"family-friendly. 7) Do not paste PM's from the bot during the game. "+
"8) Use common sense. 9) Waiting for timeouts is discouraged.")
# Other settings:
START_WITH_DAY=False
WOLF_STEALS_GUN=False# at night, the wolf can steal steal the victim's bullets
OPT_IN_PING=False# instead of !away/!back, users can opt-in to be pinged
PING_IN=[]# cloaks of users who have opted in for ping