This commit is contained in:
deathbybandaid 2023-01-24 09:50:26 -05:00
parent a191dd7b21
commit 91b3c1efd5

View File

@ -21,8 +21,7 @@ def prerun(metadata={}):
# Check that nick has the correct bot or channel privileges # Check that nick has the correct bot or channel privileges
# to run the command. # to run the command.
if not comrun.is_nick_privileged(): if not comrun.is_nick_privileged():
comrun.osd("is broken here") comrun.osd(comrun.required_privileges_text())
# comrun.osd(comrun.required_privileges_text())
return return
# Since there was more than one command, # Since there was more than one command,
@ -193,7 +192,7 @@ class ComRun():
"channel": channel_level "channel": channel_level
} }
@property() # @property()
def required_privileges_text(self): def required_privileges_text(self):
ret_text = "This command requries privileges of/above the following" ret_text = "This command requries privileges of/above the following"
if self.required_privileges["bot"]: if self.required_privileges["bot"]:
@ -204,7 +203,7 @@ class ComRun():
ret_text += "." ret_text += "."
return ret_text return ret_text
@property # @property
def is_nick_privileged(self): def is_nick_privileged(self):
has_bot_priv = True has_bot_priv = True
has_channel_priv = True has_channel_priv = True