This commit is contained in:
deathbybandaid 2023-01-24 09:07:05 -05:00
parent 4655e02eee
commit 9477ec3192
2 changed files with 6 additions and 6 deletions

View File

@ -8,16 +8,16 @@ import os
import pathlib import pathlib
from .SBCore import SpiceBotCore_OBJ from .SBCore import SpiceBotCore_OBJ
# from .SBCore.config import SpiceBot_Conf from .SBCore.config import SpiceBot_Conf
SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__))) SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
sb = SpiceBotCore_OBJ(SCRIPT_DIR) sb = SpiceBotCore_OBJ(SCRIPT_DIR)
# def configure(config): def configure(config):
# config.define_section("SpiceBot", SpiceBot_Conf, validate=False) config.define_section("SpiceBot", SpiceBot_Conf, validate=False)
# config.SpiceBot_Conf.configure_setting('multi_split_key', 'key to split multi-commands') config.SpiceBot_Conf.configure_setting('multi_split_key', 'key to split multi-commands')
def setup(bot): def setup(bot):

View File

@ -176,7 +176,7 @@ class ComRun():
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 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"]: