This commit is contained in:
deathbybandaid 2023-01-24 11:10:35 -05:00
parent 74b368bc1c
commit 32526e7487

View File

@ -16,7 +16,7 @@ def prerun(metadata={}):
runfunc = True runfunc = True
comrun = sbComRun(bot, trigger, function, metadata) comrun = ComRun(bot, trigger, function, 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.
@ -146,7 +146,7 @@ def rebuild_pipes(commands, trigger_str_add=None):
return repipe_trigger_dict return repipe_trigger_dict
class sbComRun(): class ComRun():
def __init__(self, bot, trigger, function, metadata): def __init__(self, bot, trigger, function, metadata):
self.bot = bot self.bot = bot
@ -176,7 +176,7 @@ class sbComRun():
recipients = self.trigger.sender recipients = self.trigger.sender
sb.osd(messages, recipients, text_method, max_messages=-1) sb.osd(messages, recipients, text_method, max_messages=-1)
@property # @property
def required_privileges(self): def required_privileges(self):
bot_level = 0 bot_level = 0
channel_level = 0 channel_level = 0
@ -192,7 +192,7 @@ class sbComRun():
"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"]:
@ -203,7 +203,7 @@ class sbComRun():
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