remove FORTUNE_CHANCE, wasn't interesting / could error
This commit is contained in:
parent
c8145571e0
commit
7bbffd3e61
@ -344,7 +344,6 @@ DISABLED_COMMANDS = frozenset()
|
|||||||
ROLE_COMMAND_EXCEPTIONS = set()
|
ROLE_COMMAND_EXCEPTIONS = set()
|
||||||
|
|
||||||
GIF_CHANCE = 1/50
|
GIF_CHANCE = 1/50
|
||||||
FORTUNE_CHANCE = 1/25
|
|
||||||
|
|
||||||
ALL_FLAGS = frozenset("AaDdFgjmNSsw")
|
ALL_FLAGS = frozenset("AaDdFgjmNSsw")
|
||||||
|
|
||||||
|
@ -3696,17 +3696,6 @@ def transition_day(cli, gameid=0):
|
|||||||
"https://i.imgur.com/PIIfL15.gifv",
|
"https://i.imgur.com/PIIfL15.gifv",
|
||||||
"https://i.imgur.com/eJiMG5z.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:
|
# Priorities:
|
||||||
# 1 = harlot/succubus visiting victim
|
# 1 = harlot/succubus visiting victim
|
||||||
|
Loading…
x
Reference in New Issue
Block a user