Skip to content

Commit

Permalink
Merge pull request #35 from Zedb0T/august-improvements
Browse files Browse the repository at this point in the history
oops revert
  • Loading branch information
MikeGamePro authored Aug 4, 2024
2 parents 83f8806 + 14e9220 commit 252060b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions EXAMPLE.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ PREFIX=#
CONNECT_MSG=Successfully connected! peepoHappy

# what camera settings you play on (to help restore your settings after #invertcam) check: GAME OPTIONS > INPUT OPTIONS > CAMERA OPTIONS if unsure
first-camera-vertical-inverted=True
first-camera-horizontal-inverted=False
third-camera-vertical-inverted=True
third-camera-horizontal-inverted=True
first-camera-vertical-inverted=t
first-camera-horizontal-inverted=f
third-camera-vertical-inverted=t
third-camera-horizontal-inverted=f

#command min and max values
SHIFTX_MIN=-20
Expand Down
14 changes: 7 additions & 7 deletions resources/twitchcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
DISABLED_MSG = str(os.getenv("DISABLED_MSG"))
ACTIVATE_MSG = str(os.getenv("ACTIVATE_MSG"))
DEACTIVATE_MSG = str(os.getenv("DEACTIVATE_MSG"))
PROTECT_SACRIFICE = False
PROTECT_SACRIFICE = "f"
SACRIFICE_DURATION = str(os.getenv("SACRIFICE_DURATION"))
PREFIX = str(os.getenv("PREFIX"))

Expand Down Expand Up @@ -180,7 +180,7 @@ def cd_check(cmd):
if (time.time() - last_used[command_names.index(cmd)]) > cooldowns[command_names.index(cmd)]:
last_used[command_names.index(cmd)] = time.time()
return True
elif COOLDOWN_MSG:
elif COOLDOWN_MSG != "f":
remaining_time = int(cooldowns[command_names.index(cmd)] - (time.time() - last_used[command_names.index(cmd)]))
minutes = remaining_time // 60
seconds = remaining_time % 60
Expand All @@ -193,9 +193,9 @@ def cd_check(cmd):

def on_check(cmd):
global message
if on_off[command_names.index(cmd)] and not active[command_names.index("protect")]:
if on_off[command_names.index(cmd)] != "f" and not active[command_names.index("protect")]:
return True
elif DISABLED_MSG:
elif DISABLED_MSG != "f":
sendMessage(irc, "/me @"+user+" Command '"+command_names[command_names.index(cmd)]+"' is disabled.")
message = ""
return False
Expand All @@ -217,7 +217,7 @@ def active_sweep(cmd, line):
sendForm(line)

def activate(cmd):
if ACTIVATE_MSG:
if ACTIVATE_MSG != "f":
sendMessage(irc, "/me > '"+command_names[command_names.index(cmd)]+"' activated!")
activated[command_names.index(cmd)] = time.time()
active[command_names.index(cmd)] = True
Expand All @@ -226,7 +226,7 @@ def activate(cmd):

def deactivate(cmd):
if active[command_names.index(cmd)]:
if DEACTIVATE_MSG:
if DEACTIVATE_MSG != "f":
sendMessage(irc, "/me > '"+command_names[command_names.index(cmd)]+"' deactivated!")
active[command_names.index(cmd)] = False
del active_list_times[active_list.index(cmd)]
Expand Down Expand Up @@ -588,7 +588,7 @@ def gamecontrol():
point = arg1_lower

if point:
if not TOPOINT_PAST_CRATER and (point.startswith("lavatube") or point.startswith("citadel") or point.startswith("finalboss") or point.startswith("lt")):
if TOPOINT_PAST_CRATER == "f" and (point.startswith("lavatube") or point.startswith("citadel") or point.startswith("finalboss") or point.startswith("lt")):
sendMessage(irc, "/me @"+user+" Cannot go past Volcanic Crater.")
last_used[command_names.index("topoint")] = 0
message = ""
Expand Down

0 comments on commit 252060b

Please sign in to comment.