remove FORTUNE_CHANCE, wasn't interesting / could error

This commit is contained in:
jacob1 2017-09-26 19:49:58 -04:00
parent c8145571e0
commit 7bbffd3e61
2 changed files with 0 additions and 12 deletions

View File

@ -344,7 +344,6 @@ DISABLED_COMMANDS = frozenset()
ROLE_COMMAND_EXCEPTIONS = set()
GIF_CHANCE = 1/50
FORTUNE_CHANCE = 1/25
ALL_FLAGS = frozenset("AaDdFgjmNSsw")

View File

@ -3696,17 +3696,6 @@ def transition_day(cli, gameid=0):
"https://i.imgur.com/PIIfL15.gifv",
"https://i.imgur.com/eJiMG5z.gifv"]
))
elif random.random() < var.FORTUNE_CHANCE:
try:
out = subprocess.check_output(("fortune", "-s"))
except FileNotFoundError:
pass
else:
out = out.decode("utf-8", "replace")
out = out.replace("\n", " ")
out = re.sub(r"\s+", " ", out) # collapse whitespace
out = out.strip() # remove surrounding whitespace
revt.data["message"].append(out)
# Priorities:
# 1 = harlot/succubus visiting victim