Tildewait do not inform timeskip state

It doesn't make sense for tildewait to show the timeskip state if it is
purposefully hidden from a file.
master
jmjl 2023-09-02 17:38:09 +00:00
parent 44377a58e9
commit 1d3622d0cb
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python3
import pinhook.plugin
import util.tilde
#import util.tilde
import importlib
import subprocess
@ -11,8 +11,8 @@ def tilde_wait(msg):
found = False
if msg.arg: nicktouse = ''.join(msg.arg.split(' '))
else: nicktouse = msg.nick
if util.tilde.TIMESKIP:
return pinhook.plugin.message(f"{msg.nick}: You don't have to wait, timeskip is on")
# if util.tilde.TIMESKIP:
# return pinhook.plugin.message(f"{msg.nick}: You don't have to wait, timeskip is on")
with open("/home/jmjl/dev/juju/data/tildescores.txt", "r") as scorefile:
scores = scorefile.readlines()
for score in scores: